PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old November 29th, 2010, 12:05 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 169
Invalid argument supplied for foreach for guests

I just realized that guests are receiving an error if they try to browse the gallery, don't know what could it be. Hope someone can give it a try and check it.

Code:
Content visible to verified customers only.
This is the live site:
Wall Depot BETA

Registered users are not having any issues.

thanks
myuption is offline   Reply With Quote
Old December 7th, 2010, 10:24 AM   #2 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 169
help?
myuption is offline   Reply With Quote
Old December 29th, 2010, 04:55 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 169
A whole month and no reply, i'm still having this problem.

Does this means vbG will be abandoned as before?
myuption is offline   Reply With Quote
Old January 5th, 2011, 03:48 AM   #4 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
Nope not abandoned... only this should be in bug reports, and not in install...
actually i dont know why this happens... this error should no longer be in 3.0..
fix is quite easy.. (if its what I think it is)
add a moderator to one of the categegories...
check if the error persists.. if its gone, you should be able to remove the moderator..
and the error will be gone ..
luc
Luciano is offline   Reply With Quote
Old January 8th, 2011, 02:27 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 169
Yeah, if it has a moderator there is no issue, but if you delete the mod after the same error comes back.

Welcome back Luc, a nice year!
myuption is offline   Reply With Quote
Old January 8th, 2011, 04:35 PM   #6 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
Well this error should have been fixed in gold.. it definetely is in 3.01 (micheal should post very soon)
in gallery_global.php
arround line 312 there is in old version:

else if (!empty($gallery_modcache))

in 3.01 (and in my gold version also) it has been replaced by:

else if (isset($gallery_modcache) AND is_array($gallery_modcache) AND !empty($gallery_modcache))

so if there is no mod defined, it should skip the for each loop...

so either replace that line of code or wait till new version is out...

Luc
Luciano is offline   Reply With Quote
Old January 10th, 2011, 11:25 AM   #7 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 169
OK, thanks Luc.
myuption 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
mysql_num_rows(): supplied argument is not a valid DefenceTalk.com Photopost Pro Bug Reports 11 July 27th, 2010 06:33 PM
PHP Warning: Invalid argument supplied for foreach() yahoooh Installs and Upgrade - vBulletin 3.6x 2 August 28th, 2008 06:21 AM
Error: Invalid argument supplied on upgrade wential Photopost Pro Installation & Upgrades 2 October 20th, 2005 07:31 AM
Warning: Invalid argument supplied for foreach() trulylowcarb Installs and Upgrade - vBulletin 3.0.X 2 February 8th, 2005 05:52 PM


All times are GMT -5. The time now is 11:13 PM.

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