PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Installs and Upgrade - vBulletin 4 (http://www.photopost.com/forum/installs-upgrade-vbulletin-4/)
-   -   Having errors and images not showing. (http://www.photopost.com/forum/installs-upgrade-vbulletin-4/144323-having-errors-images-not-showing.html)

NUTNDUN October 23rd, 2010 09:55 PM

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 October 23rd, 2010 10:20 PM

It is working now. I don't really know what fixed it other then waiting for vbgallery cache to clear out.

NUTNDUN October 30th, 2010 09:38 PM

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 October 30th, 2010 09:49 PM

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 November 3rd, 2010 07:50 AM

Any suggestions or help on this? Would really like to enable apc again on vb.

NUTNDUN November 6th, 2010 10:02 PM

Quote:

Originally Posted by NUTNDUN (Post 1278966)
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.

Luciano November 6th, 2010 11:37 PM

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

NUTNDUN November 7th, 2010 06:32 AM

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.


All times are GMT -5. The time now is 09:06 PM.

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