PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old October 23rd, 2008, 11:05 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Oct 2006
Posts: 426
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?
KenDude is offline   Reply With Quote
Old October 23rd, 2008, 02:25 PM   #2 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
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

Last edited by Luciano; October 23rd, 2008 at 02:32 PM.
Luciano is offline   Reply With Quote
Old October 23rd, 2008, 04:46 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Oct 2006
Posts: 426
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 is offline   Reply With Quote
Old October 23rd, 2008, 04:49 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Oct 2006
Posts: 426
Line 164 btw is the very last line in the module file, it is simply a blank line.
KenDude is offline   Reply With Quote
Old October 23rd, 2008, 05:59 PM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
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
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 25th, 2008, 10:36 AM   #6 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
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
Luciano is offline   Reply With Quote
Old October 27th, 2008, 12:43 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: Oct 2006
Posts: 426
Quote:
Originally Posted by Luciano View Post
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?
KenDude is offline   Reply With Quote
Old October 27th, 2008, 04:58 AM   #8 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
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 is offline   Reply With Quote
Old October 27th, 2008, 05:40 AM   #9 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
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
Luciano is offline   Reply With Quote
Old October 27th, 2008, 06:23 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
<- 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.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old October 27th, 2008, 08:40 AM   #11 (permalink)
Member
Verified Customer
 
Join Date: Oct 2006
Posts: 426
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.
KenDude is offline   Reply With Quote
Old October 27th, 2008, 10:05 AM   #12 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
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

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)

Luc
Luciano is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Error Emak How Do I? - vBulletin 3.6x 1 February 25th, 2008 09:49 AM
Strange error Yellowspurs Photopost Pro Bug Reports 5 October 18th, 2007 09:30 AM
Strange error.... bo0oost Photopost Pro Bug Reports 8 January 21st, 2007 03:46 AM
Strange error hani Installs and Upgrade - vBulletin 3.0.X 4 May 7th, 2005 11:09 AM
strange error Lizard King Installs and Upgrade - vBulletin 3.0.X 1 April 24th, 2005 07:12 AM


All times are GMT -5. The time now is 05:23 PM.

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