PhotoPlog

PhotoPlog (http://www.photoplog.com/forum/index.php)
-   Troubleshooting & Problems (http://www.photoplog.com/forum/forumdisplay.php?f=6)
-   -   permissions error on upload (http://www.photoplog.com/forum/showthread.php?t=2811)

pattycake 02-28-2009 07:47 PM

permissions error on upload
 
Brand new installation of VB3.6.12, no products, no addons, etc

Installed photoplog underneath forums directory
forum is in /var/www/html/vb368
photoplog is in /var/www/html/vb368/photoplog
link to photoplog is:
http://173.74.246.29/vb368/photoplog

photoplog config has:
// define('PHOTOPLOG_FWD','/full/path/to/forum');
define('PHOTOPLOG_FWD','/var/www/html/vb368');

Any attempt by me (admin with all rights ON) to upload any file of any size results in:

-------------
Your submission could not be processed because a security token was missing or mismatched.

If this occurred unexpectedly, please inform the administrator and describe the action you performed before you received this error.
-----------------

and the link to "inform the admninsitrator" is:
http://173.74.246.29/vb368/photoplog/sendmessage.php
which is obvioulsy wrong

tried cookies at default "/" and tried cookies at "/vb368/"

Any advice or should I just go suck an egg??

.

pattycake 03-01-2009 12:26 AM

Ok, after a bazillion "ECHO" statements planted throughout photoplog and vb, I am getting closer... or at least I'm close to the problem - it's a cookie problem in vb's init.php:

Code:

if ($vbulletin->userinfo['userid'] > 0 AND defined('CSRF_PROTECTION') AND CSRF_PROTECTION === true)
{
        if (!in_array($vbulletin->GPC['do'], $vbulletin->csrf_skip_list))
        {
                if ($vbulletin->GPC['securitytoken'] !== $vbulletin->userinfo['securitytoken'])
                {
                        $vbphrase = init_language();
                        $_tmp = NULL;
                        $stylevar = fetch_stylevars($_tmp, $vbulletin->userinfo);
                        exec_headers();
                                die(fetch_error('security_token_missing', $stylevar['textdirection'], $vbulletin->options['contactuslink']));
                }
        }
}

I see it in settings.php:
define('CSRF_PROTECTION',true);

sooooo... besides turning it off, what do I need to add to make the lite version work???



.


.

Morgan 03-04-2009 01:23 PM

> Your submission could not be processed because a security token was missing or mismatched.

That sounds like vB 3.6.12 now makes use of security tokens, so try the vB 3.7 product-photoplog.xml file instead of the vB 3.6 one.


All times are GMT. The time now is 06:40 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.