 | |  | |
May 29th, 2009, 11:45 AM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Apr 2002 Location: Clovis, CA
Posts: 118
| Gallery error: functions_gallery.php on line 1071
Is there a fix for this error? Warning: Invalid argument supplied for foreach() in [path]/includes/functions_gallery.php on line 1071
Oddly it just started today.
|
| |
May 29th, 2009, 01:25 PM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,667
|
Interesting there my friend! HMM have you made any recent changes that would help here?
The line your referring to has to do with caching gallery moderators Code: Content visible to verified customers only.
This is taken right from our latest code. Have you changed any moderators done anything of the sort as far as actions so I can test and see if I can get this error?
Try running the vbgallery install script and select the update settings cache and see if this helps as well.
|
| |
May 29th, 2009, 01:41 PM
|
#3 (permalink)
| | Member Verified Customer
Join Date: Apr 2002 Location: Clovis, CA
Posts: 118
| Quote:
Originally Posted by Chuck S Interesting there my friend! HMM have you made any recent changes that would help here?
The line your referring to has to do with caching gallery moderators Code: Content visible to verified customers only.
This is taken right from our latest code. Have you changed any moderators done anything of the sort as far as actions so I can test and see if I can get this error?
Try running the vbgallery install script and select the update settings cache and see if this helps as well. | I did run the maintenance item to update the users post count the other day. This error may have started right after that. I ran the install script again and selected "This will add setting and update setting cache" as directed. Unfortunately the error remains in the Photo Gallery.
|
| |
May 29th, 2009, 01:55 PM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,667
|
Okay can you tell me where you get this error?
I have done the action you are referring to and am not seeing any errors so I need some more information.
You can also post information here or email us through the contact us in the header for us to look at things for you.
|
| |
May 29th, 2009, 02:05 PM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Apr 2002 Location: Clovis, CA
Posts: 118
| Quote:
Originally Posted by Chuck S Okay can you tell me where you get this error?
I have done the action you are referring to and am not seeing any errors so I need some more information.
You can also post information here or email us through the contact us in the header for us to look at things for you. | Sure, I posted to the contact form.
|
| |
May 29th, 2009, 02:08 PM
|
#6 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,667
|
Sure thing my friend I will take a look once the email arrives in our helpdesk. It usually takes a few minutes to show up there but will respond when I get a change to look at things.
|
| |
May 31st, 2009, 09:27 PM
|
#7 (permalink)
| | Junior Member Verified Customer
Join Date: Oct 2007
Posts: 19
|
I am getting the same error, as are users from multiple different usergroups. Code: Content visible to verified customers only.
Logged in as myself, I get it only once.
Coming in as a guest, it is repeated MANY times, and preceded by: Code: Content visible to verified customers only.
This is occurring at the vBGallery home page for my site: Photo Gallery
I have ran the "update settings cache" component of the install script, to no avail.
Help....
P.S.: This did not happen upon the initial installation of vBGallery 2.5, and began manifesting a few days later (nearly a week possibly). I have made no other modifications to the board since this install. Oh yeah, running XCache 1.2.2 on the server.
__________________ A Saltwater Fishing Community, where there is No BS about it !!
Last edited by PossumX; May 31st, 2009 at 09:42 PM.
|
| |
May 31st, 2009, 09:49 PM
|
#8 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,667
|
Lets do a little test since you dont use moderators in vbgallery. try editing functions_gallery.php and line 283 comment this line out
$gallery_modcache = cache_gallery_mods();
like so
//$gallery_modcache = cache_gallery_mods();
lets see if the error goes away
|
| |
May 31st, 2009, 09:51 PM
|
#9 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,667
|
What is interesting here is if you have no moderators why is the moderator cache returning bogus results. Why is this not evident on other installs. Lots of people are running 2.5 having upgraded myself included and do not see this error. So at this point I am just trying to break things trying to find out how this error is being thrown.
|
| |
May 31st, 2009, 09:54 PM
|
#10 (permalink)
| | Junior Member Verified Customer
Join Date: Oct 2007
Posts: 19
|
Will try that edit now....and report back shortly.
__________________ A Saltwater Fishing Community, where there is No BS about it !! |
| |
May 31st, 2009, 10:00 PM
|
#11 (permalink)
| | Junior Member Verified Customer
Join Date: Oct 2007
Posts: 19
|
Unfortunately, no change.  This is puzzling, to say the least, especially since it was working for the first few days without any reports of errors. I am going to scan the logs as well now.
__________________ A Saltwater Fishing Community, where there is No BS about it !! |
| |
May 31st, 2009, 11:57 PM
|
#12 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,667
|
That line most definately should stop your error it did for the gentleman in this thread.
|
| |
June 1st, 2009, 05:25 AM
|
#13 (permalink)
| | Junior Member Verified Customer
Join Date: Oct 2007
Posts: 19
| Quote:
Originally Posted by Chuck S Lets do a little test since you dont use moderators in vbgallery. try editing functions_gallery.php and line 283 comment this line out
$gallery_modcache = cache_gallery_mods();
like so
//$gallery_modcache = cache_gallery_mods();
lets see if the error goes away | At line 1095 in the same file, there is another reference to the same variable definition, when I comment the second reference to the above, as noted for line 283, the error seems to abate.
line 1095 $gallery_modcache = cache_gallery_mods();
to
line 1095 //$gallery_modcache = cache_gallery_mods();
To get rid of the line 352 error, I had to comment out line 344 from gallery_global.php:
//$gallery_modcache =& $vbulletin->gal_mod_cache;
I am befuddled as to why this mod caching function is inducing this problem.
__________________ A Saltwater Fishing Community, where there is No BS about it !! |
| |
June 1st, 2009, 05:41 AM
|
#14 (permalink)
| | Junior Member Verified Customer
Join Date: Oct 2007
Posts: 19
|
It is much improved from before, yet, not fully remediated.
Now, upon upload, deletion, edit of a photo, the same is received:
Warning: Invalid argument supplied for foreach() in [path]/includes/functions_gallery.php on line 1071 aarrrghhh.....
Now, it doesn't stop function, but these errors are worrisome, as I cannot figure out WHY they are continuing to recur.
__________________ A Saltwater Fishing Community, where there is No BS about it !! |
| |
June 1st, 2009, 10:08 AM
|
#15 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,667
|
Feel free to send information on your site for me to take a look. It is befuddling to me as well after all the people whom upgraded to 2.5 there are two users with this issue. Finding the right combinations of settings etc that may cause the issue are exhausting.  The site in this thread I worked with was heaving laden with plugins.
|
| |
June 1st, 2009, 05:49 PM
|
#16 (permalink)
| | Junior Member Verified Customer
Join Date: Oct 2007
Posts: 19
|
I may do that Chuck (get you the information), but let me poke around a bit more this week and see if I can determine the source (I'm a pro g33k too, of 20+ years, just not a PHP expert).
My site has a number of plugins too, however, I can typically figure a way around these types of problems when I am alert enough after a full workday.
I do appreciate your responses, as they have assisted me greatly in what to look for.
If only vB would come with more "flavor" out of the box, many of the plugins I use wouldn't be needed.
__________________ A Saltwater Fishing Community, where there is No BS about it !! |
| |
June 1st, 2009, 08:12 PM
|
#17 (permalink)
| | Junior Member Verified Customer
Join Date: Oct 2007
Posts: 19
|
OK, now, the error is gone. Not occurring anywhere, under any function. Made no more changes that what I stated above, but today, all seems normal again, for all functions.
__________________ A Saltwater Fishing Community, where there is No BS about it !! |
| |
June 1st, 2009, 10:06 PM
|
#18 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 52,667
|
Just let me know if you need anything else.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 03:43 PM. | |