PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |
Old December 18th, 2007, 10:27 AM   #1 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2007
Posts: 12
Exclamation vB_Datastore_XCache

Hi,

Im getting error after 2.41 upgrading like this,

"Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 1067"

How can I fix this?

regards,
alpozdemir is offline   Reply With Quote
Old December 18th, 2007, 11:08 AM   #2 (permalink)
Registered User
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,244
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
This deals w/ moderators.
- Is this error on every page ?
- only on pages with a category moderator ?
Zachariah is offline   Reply With Quote
Old December 18th, 2007, 12:24 PM   #3 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2007
Posts: 12
only in vbgallery homepage, the other pages is normal..
alpozdemir is offline   Reply With Quote
Old December 23rd, 2007, 03:23 AM   #4 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2007
Posts: 12
also have this error on vbgallery 2.41 with un registered users

/home/eugene/public_html/galeri/gallery_global.php on line 352
alpozdemir is offline   Reply With Quote
Old December 23rd, 2007, 05:39 AM   #5 (permalink)
Registered User
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,244
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
Perhaps there is a problems w/ guest permission.
- I have not ran into it my self.

Do you have custom permissions to guests on the gallery ?
- If so, what ?
Zachariah is offline   Reply With Quote
Old December 23rd, 2007, 07:37 AM   #6 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2007
Posts: 12
No, Im using standart "usergroup permission"
by the way a lot of my error messy in same page now

Warning: Invalid argument supplied for foreach() in /home/eugene/public_html/galeri/gallery_global.php on line 352

Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 1067

Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 1067

Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 1067

Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 1067

Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 1067

Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 1067
alpozdemir is offline   Reply With Quote
Old December 23rd, 2007, 07:23 PM   #7 (permalink)
Registered User
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,244
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
1st try and upload all the files in the package and replace the old files.

Do you have any older gallery templates that may have custom changes?
If so revert.

What was the old gallery version before update ?
Zachariah is offline   Reply With Quote
Old December 24th, 2007, 04:22 AM   #8 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2007
Posts: 12
Hi Zachariah,

Unfortunatelt, nothing changes I have upgrade from version 2.3
alpozdemir is offline   Reply With Quote
Old December 24th, 2007, 07:03 AM   #9 (permalink)
Registered User
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,244
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
PM me some ftp and AdminCP access I'll take a look.
Zachariah is offline   Reply With Quote
Old December 24th, 2007, 07:25 AM   #10 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2007
Posts: 12
please check it out PM box
alpozdemir is offline   Reply With Quote
Old December 24th, 2007, 08:07 AM   #11 (permalink)
Registered User
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,244
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
XCache is cause. I'll have to do some testing and find out the fix.

Quick Fix:

In your forums/includes/config.php
I added a if statement to disable when on the gallery pages.
Code:
Content visible to verified customers only.
- if you want to experiment around on your own you can limit to only the front page of the gallery.

Code:
Content visible to verified customers only.
Moving this thread to Bugs area.
Zachariah is offline   Reply With Quote
Old December 24th, 2007, 08:10 AM   #12 (permalink)
Junior Member
Verified Customer
 
Join Date: Aug 2007
Posts: 12
Ok, I understood. thanks for all.. vbgallery rulaz!!!
alpozdemir is offline   Reply With Quote
Old January 9th, 2008, 10:10 PM   #13 (permalink)
Member
Verified Customer
 
Join Date: Dec 2004
Posts: 78
I am not using xcache for the datastore, but for the opcodes. Is this why I am not having this problem? (php 5.1.6, xcache & 2.4.2)
bulbasnore is offline   Reply With Quote
Old January 9th, 2008, 10:15 PM   #14 (permalink)
Registered User
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,244
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
Quote:
Originally Posted by bulbasnore View Post
I am not using xcache for the datastore, but for the opcodes. Is this why I am not having this problem? (php 5.1.6, xcache & 2.4.2)
What is your configuration setting and it sill run ?
Zachariah is offline   Reply With Quote
Old January 10th, 2008, 04:36 AM   #15 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2007
Posts: 19
I'm having this exact same problem with the xcache datastore. I disabled it only for the gallery.
info5538 is offline   Reply With Quote
Old January 10th, 2008, 06:58 PM   #16 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2007
Posts: 19
The following code worked for the gallery -- thank you. (edited in config.php)
Quote:
if (PP_SCRIPT != 'vBGallery'){
$config['Datastore']['class'] = 'vB_Datastore_XCache';
}

However, users are experiencing a similar error with the "Geek Gallery Popup" insertion window.
Quote:
Warning: Invalid argument supplied for foreach() in zzremovedzz/gallery_global.php on line 356

Warning: Invalid argument supplied for foreach() in /includes/functions_gallery.php on line 1048
(geek gallery popup was working fine with security patched 2.3)
http://www.vbulletin.org/forum/showthread.php?t=99011

Thanks!
info5538 is offline   Reply With Quote
Old January 10th, 2008, 07:27 PM   #17 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2007
Posts: 19
I got the geek gallery popup problem fixed by modifying config.php to this

Quote:
if ((PP_SCRIPT != 'vBGallery') && (THIS_SCRIPT != 'Geek-Gallery')){
$config['Datastore']['class'] = 'vB_Datastore_XCache';
}

Last edited by info5538; January 10th, 2008 at 09:08 PM.
info5538 is offline   Reply With Quote
Old January 10th, 2008, 07:56 PM   #18 (permalink)
Junior Member
Verified Customer
 
Join Date: Feb 2007
Posts: 19
---delete me---

Last edited by info5538; January 10th, 2008 at 09:08 PM.
info5538 is offline   Reply With Quote
Old April 18th, 2008, 09:40 AM   #19 (permalink)
Member
Verified Customer
 
Join Date: Mar 2005
Posts: 54
The following code worked for the gallery.
Quote:
if (PP_SCRIPT != 'vBGallery'){
$config['Datastore']['class'] = 'vB_Datastore_XCache';
}
Could this problem be resolved in the next release?
Fenriz is offline   Reply With Quote
Old May 9th, 2008, 07:51 AM   #20 (permalink)
hydn
Guest
 
Posts: n/a
thanks that works for memcached as well folks.

Code:
Content visible to verified customers only.
If this problem is with both memcached AND xcache I would like to belive the fix will have to be on PP's side as all of vb forums and other php add-ons etc works without having to exclude.
  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



All times are GMT -5. The time now is 12:10 AM.

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