PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Bugs - vBulletin 3.6x (http://www.photopost.com/forum/bugs-vbulletin-3-6x/)
-   -   Strange Cookie Error (http://www.photopost.com/forum/bugs-vbulletin-3-6x/138259-strange-cookie-error.html)

KenDude October 23rd, 2008 11:05 AM

Strange Cookie Error
 
Chuck,
Starting this morning my members have been reporting instances of this error:

Code:

Content visible to verified customers only.
I have not many ANY changes to the website or vbgallery in some time.

Members who have cleared their cookies have had the problem go away, except for one with FireFox who claims he still has the problem.

Any idea why?

Luciano October 23rd, 2008 02:25 PM

no idea just gessing...
from the url... modules/vbgallery.php I assume you are using vbadvanced portal.. there seems to an error within the portal software (or the module)
try to disable the module.. and see if the error persists..

if it persists, are you sure you did not update the portal software?

did you change configuration of vbgallery module in portal?

If you have not updated portal software.. there might be some special character or a corrupt image.. that causes an error(or warning) in php.
usually thats why the errors get sent..
try to delete the last upload.. or last post in gallery..

-----------------

there are some strange behaviours of the vbadvanced cmps modules..
to debug the module open it in your editor and add exit; at the end.. you should then be able to read the error message..

hope that helps

Luc

KenDude October 23rd, 2008 04:46 PM

I haven't changed anything with the module but I suppose someone could have uploaded an image to the gallery that was corrupted or posted a message in the gallery area that has a problem, I'm not sure but I'll go look.

The vbgallery module is the one from here and it has been running for many months without issue and I haven't touched its configuration in many months either...

Thanks for the pointers, I'll take a look...

KenDude October 23rd, 2008 04:49 PM

Line 164 btw is the very last line in the module file, it is simply a blank line.

Chuck S October 23rd, 2008 05:59 PM

You can try deleting that line but it looks to me like your talking about a hack or something here because there is no file in our supported code called vbgallery.php

Luciano October 25th, 2008 10:36 AM

well just stumbled into someone having a similar problem... the thread is 2 long and i dont have the time reading all...

check out in the middle of the page...
http://www.photopost.com/forum/vb-3-...-module-7.html

good luck..
Luc

KenDude October 27th, 2008 12:43 AM

Quote:

Originally Posted by Luciano (Post 1234763)
well just stumbled into someone having a similar problem... the thread is 2 long and i dont have the time reading all...

check out in the middle of the page...
http://www.photopost.com/forum/vb-3-...-module-7.html

good luck..
Luc

Thanks for that, yes this comes from Zach's hack to put random pages in a module for VBA CMPS. It had been working fine for months and then all of a sudden starting producing that error. I'm going to reinstall the hack and see if that fixes anything...

Is Zach still around?

Luciano October 27th, 2008 04:58 AM

Make sure on reinstall that you delete the old version of vbgallery.php manually!!
Long time ago I explained someone how to debug that file..
It was not your problem.. but similar..(a blank page)
Check it out.. maybe it helps
http://www.photopost.com/forum/1207759-post104.html

good luck

Luc..
PS:
I will install the module sometime tomorow..
if i get that error.. I will let you know

Luciano October 27th, 2008 05:40 AM

Just installed and works as a charm.. i checked your error code and the line is beyond the end of file in my vbgallery.php... actually its 2 lines after the closing ?> sign.. some servers dont like whitespace and carriage return outside of php and interpret them as html.. but once html is sent.. you cannot send a header (with cookies)

so try the following..
open vbgallery.php in your editor and delete the whitespace.. the 2 or 3 extra lines after the end of the php part.. ( after the ?> )
make sure your cursor is right after the ?> sign and nothing after it!!!!

then add a @ in front of the unset command.. (if a variable doesnt exist .. unset can throw a warning - this is suppressed by the @)

so in brief.. open vbgallery.php and go to the end of the file..
replace:
Code:

Content visible to verified customers only.
with:
Code:

Content visible to verified customers only.
so that the ?> is REALLY the last sign in the file..!!!!
I think this could solve your problem...
Luc

Chuck S October 27th, 2008 06:23 AM

<- whitespace and carriage return
<- carriage return (line 164)

Yep Luciano is correct there can not be empty lines or characters after your closing php tag.

KenDude October 27th, 2008 08:40 AM

Well I installed version 2.8 of the mod from Zach after uninstalling 2.6 and so far it seems to be working, no reports of problems in the last 8 hours thus far.

Luciano October 27th, 2008 10:05 AM

well yes.. strage enough.. i installed the version 2.6 and it worked like a charm.. BUT as i read your post.. i upgraded to 2.8..

main difference.. there is no ?> at the end of vbgallery.php :eek:

this is correct.. it is NOT needed there..
SO it seems that usually CMPS doesnt care if the ?> is there or not.. BUT probably throws a hidden error under some circumstances.. so IF you are using CMPS version 3 or 3++ it is advisable to upgrade to 2.8 for that addon!!!
(I just did) :cool:

Luc


All times are GMT -5. The time now is 03:07 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97