PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old May 29th, 2009, 10:45 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Posts: 145
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.
TundraSoul is offline   Reply With Quote
Old May 29th, 2009, 12:25 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
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.
__________________
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 May 29th, 2009, 12:41 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Posts: 145
Quote:
Originally Posted by Chuck S View Post
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.
TundraSoul is offline   Reply With Quote
Old May 29th, 2009, 12:55 PM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
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.
__________________
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 May 29th, 2009, 01:05 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: Apr 2002
Posts: 145
Quote:
Originally Posted by Chuck S View Post
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.
TundraSoul is offline   Reply With Quote
Old May 29th, 2009, 01:08 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
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.
__________________
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 May 31st, 2009, 08:27 PM   #7 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2007
Posts: 25
Exclamation

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.

Last edited by PossumX; May 31st, 2009 at 08:42 PM.
PossumX is offline   Reply With Quote
Old May 31st, 2009, 08:49 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
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
__________________
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 May 31st, 2009, 08:51 PM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
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.
__________________
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 May 31st, 2009, 08:54 PM   #10 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2007
Posts: 25
Will try that edit now....and report back shortly.
PossumX is offline   Reply With Quote
Old May 31st, 2009, 09:00 PM   #11 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2007
Posts: 25
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.
PossumX is offline   Reply With Quote
Old May 31st, 2009, 10:57 PM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
That line most definately should stop your error it did for the gentleman in this thread.
__________________
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 June 1st, 2009, 04:25 AM   #13 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2007
Posts: 25
Quote:
Originally Posted by Chuck S View Post
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.
PossumX is offline   Reply With Quote
Old June 1st, 2009, 04:41 AM   #14 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2007
Posts: 25
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.
PossumX is offline   Reply With Quote
Old June 1st, 2009, 09:08 AM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
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.
__________________
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 June 1st, 2009, 04:49 PM   #16 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2007
Posts: 25
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.
PossumX is offline   Reply With Quote
Old June 1st, 2009, 07:12 PM   #17 (permalink)
Junior Member
Verified Customer
 
Join Date: Oct 2007
Posts: 25
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.
PossumX is offline   Reply With Quote
Old June 1st, 2009, 09:06 PM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
Just let me know if you need anything else.
__________________
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 July 15th, 2010, 10:11 AM   #19 (permalink)
Junior Member
Verified Customer
 
Join Date: Dec 2005
Posts: 24
I am getting this exact same error on my forums running vBull v3.8.5. We moved hosts earlier this week and we are now getting the error. Some users see an entire page with this error, some in other groups only see it displayed once (such as admins).

Chuck, can you take a look? Let me know where to send you my login/db credentials.


Warning: Invalid argument supplied for foreach() in [path]/includes/functions_gallery.php on line 1071

Thanks,

Last edited by packetattack; July 15th, 2010 at 10:17 AM.
packetattack is offline   Reply With Quote
Old July 17th, 2010, 11:09 PM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,941
what version of the gallery are you running?
__________________
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
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
gallery_global.php on line 85 error Delw Installs and Upgrade - vBulletin 3.6x 3 March 9th, 2008 07:23 PM
Fatal error: functions_gallery.php on line 1085 WhatChaMissin Installs and Upgrade - vBulletin 3.5.X 0 April 3rd, 2006 02:25 PM
Error: pp-inc.php on line 129 fpoole ReviewPost Installation & Upgrades 14 September 8th, 2005 11:15 AM
Error in functions_gallery.php after vba 1.0.1 upgrade detalhe Installs and Upgrade - vBulletin 3.0.X 1 February 26th, 2005 09:24 AM
Upgrade init.php conflicting with functions_gallery.php golfrewind Installs and Upgrade - vBulletin 3.0.X 2 January 12th, 2005 03:17 AM


All times are GMT -5. The time now is 09:27 AM.

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