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, 2010, 09:55 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Feb 2010
Posts: 41
Having errors and images not showing.

I am having issues with vbgallery. I am getting this error:
Warning: Invalid argument supplied for foreach() in [path]/gallery/gallery_global.php on line 314

I was running beta 3 and the errors were worse so I upgraded to the stable release. I am running 4.04 currently. Line 314 in gallery_global.php is this line:
foreach ($gallery_modcache AS $moderator)

I have recently had APC cache installed on my server and vb4 is setup to use it. I need to get this fixed asap as our members use the gallery a lot.

Thanks,
NUTNDUN is offline   Reply With Quote
Old October 23rd, 2010, 10:20 PM   #2 (permalink)
Member
Verified Customer
 
Join Date: Feb 2010
Posts: 41
It is working now. I don't really know what fixed it other then waiting for vbgallery cache to clear out.
NUTNDUN is offline   Reply With Quote
Old October 30th, 2010, 09:38 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Feb 2010
Posts: 41
I am still having trouble with this now. I did the 4.08 update to the live site yesterday and I am having the same error on line 314. It doesn't show for administrators, just everyone else.

Here is the exact error that gets printed out:
Warning: Invalid argument supplied for foreach() in [path]/gallery/gallery_global.php on line 314

I have reuploaded the file also and still no go.
NUTNDUN is offline   Reply With Quote
Old October 30th, 2010, 09:49 PM   #4 (permalink)
Member
Verified Customer
 
Join Date: Feb 2010
Posts: 41
It definitely has to do with having cache. I disabled apc via the vb config file and the error went away. Can someone tell me what to update so I can turn the cache back on?
NUTNDUN is offline   Reply With Quote
Old November 3rd, 2010, 07:50 AM   #5 (permalink)
Member
Verified Customer
 
Join Date: Feb 2010
Posts: 41
Any suggestions or help on this? Would really like to enable apc again on vb.
NUTNDUN is offline   Reply With Quote
Old November 6th, 2010, 10:02 PM   #6 (permalink)
Member
Verified Customer
 
Join Date: Feb 2010
Posts: 41
Quote:
Originally Posted by NUTNDUN View Post
Any suggestions or help on this? Would really like to enable apc again on vb.
Nobody has any ideas? I would really like to be able to enable apc again on vb4. Every little bit helps.
NUTNDUN is offline   Reply With Quote
Old November 6th, 2010, 11:37 PM   #7 (permalink)
Registered User
 
Join Date: Aug 2005
Posts: 1,229
Well there have been some errors with xcache, but they were of completely different nature, the whole vbgallery datastore was vanishing on every cache update...


IF that line is the only issue, it could be, (i dont know) that the cache sets an empty array to '' or simply unsets it.
To see if its that issue.. define a moderator for any category. then the array should not be empty.


If the error persists with a moderator defined, do following:
open gallery/gallery_global.php
find:
Code:
Content visible to verified customers only.
replace with:
Code:
Content visible to verified customers only.
Luc

Last edited by Luciano; November 6th, 2010 at 11:43 PM.
Luciano is offline   Reply With Quote
Old November 7th, 2010, 06:32 AM   #8 (permalink)
Member
Verified Customer
 
Join Date: Feb 2010
Posts: 41
Thank you for the response. I did notice the error wasn't showing for me as admin and thought everything was alright until members started pointing it out and then I logged in as a normal user and seen the error. I will check also with a moderator user. Will let you know the results.
NUTNDUN 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
404 errors for images crewstart Photopost Pro Bug Reports 27 February 16th, 2011 05:01 PM
Images not showing Gri_ Photopost Pro Bug Reports 3 May 26th, 2007 08:50 PM
Ad images are no longer showing along with category images, got any ideas why not? theprofessional Classifieds How do I...? 6 March 2nd, 2007 07:51 AM
Recent Photos, Random Images and Most Popular Images blocks showing even in category criscokid Photopost Pro How Do I...? 2 November 8th, 2005 02:58 PM
Images Upload But Errors Given dlangley Photopost Pro Installation & Upgrades 11 March 21st, 2005 11:15 AM


All times are GMT -5. The time now is 05:13 AM.

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