View Full Version : usercp error
January 29th, 2009, 08:08 AM
I get this error when I click on usercp when logged in.
Warning: Invalid argument supplied for foreach() in [path]/includes/functions_gallery.php on line 1037
Here is the line in functions_gallery.php it does not like.
foreach ($categoryopts AS $option => $value)
I am using vBgallery 2.43 with vBulletin 3.8 and vBadvanced 3.1.0 with a custom style called blueburst.
January 29th, 2009, 11:24 AM
Does this error happen with the default style?
January 29th, 2009, 11:33 AM
I made blueburst the default style. I installed it over the top of the default after I had tested it.
January 29th, 2009, 11:39 AM
what happens if you turn off under vbgallery admin addons the profile photos thing?
January 29th, 2009, 12:19 PM
I turned off the gallery and the error went away. I went to the gallery settings and clicked the forum active button to off. Is that what you wanted me to try?
January 29th, 2009, 12:24 PM
I was referring to the gallery addon settings the profile display turn that off. It is right under the option to show photos on the forumhome in the addon section.
January 29th, 2009, 02:00 PM
Here is a screen shot of my vBgallery addon section. I don't seem to have a profile display to turn off. I did try disabling the forumhome and the navbar without any improvement.
January 29th, 2009, 03:19 PM
Reeftalk Forums - View Profile: Chuck S (http://www.reeftalk.com/forums/member.php?u=1)
Reeftalk Forums (http://www.reeftalk.com/forums/usercp.php)
I just installed a standard vbgallery 2.43 on vb 3.80 and am not seeing any issues.
If you did an upgrade from an older version I would suggest making sure you reupload all the files especially the forum includes directory.
January 29th, 2009, 03:43 PM
My install was not an upgrade it was a fresh install. I just tried 2 other styles with the site and threw the same error. I did not notice this earlier but the first line to error out is this one.
Warning: Invalid argument supplied for foreach() in [path]/modules/vbgallery.php on line 91
Here is line 91 from vbgallery.php
foreach ($gallerypermissionsbit AS $option => $value)
Does this help narrow the problem down?
Thanks for your help,
January 29th, 2009, 04:03 PM
okay your using a mod that would explain things. We dont have a modules/vbgallery.php file in our downloaded code so there is your issue. I am sure if you remove that mod your site will be fine.
January 29th, 2009, 04:33 PM
Yes, I have a mod that shows 4 gallery photos on the homepage of vBadvanced.
I wish I would have seen that error earlier, I could have saved us both a lot of time.
January 29th, 2009, 04:35 PM
Not a problem once we get the full picture of errors solving things are pretty easy. ;)
January 30th, 2009, 04:14 AM
very strange.. I also use the cmps and have that gallery module active.. but i get no errors..
Are you sure u are using the latest version of the cmps block for vbgallery? it can be found here in the mod corner.. it works with 3.81
January 30th, 2009, 06:28 AM
I decided to re-enable the cmps block but only on my home page and now it works fine. Before I had it enabled on my cmps integration wrapper page and my home page.
Thanks for making me think about it a little more, and thanks to Chuck for his hard work and quick response.
That's why photopost is the only gallery we will use here at the hbc noc. ;)
January 30th, 2009, 09:53 AM
No problem Jimb have a good day we are all here to help out. ;)
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.