PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Bugs - vBulletin 3.6x (http://www.photopost.com/forum/bugs-vbulletin-3-6x/)
-   -   vB_Datastore_XCache (http://www.photopost.com/forum/bugs-vbulletin-3-6x/134670-vb_datastore_xcache.html)

alpozdemir December 18th, 2007 10:27 AM

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,

Zachariah December 18th, 2007 11:08 AM

This deals w/ moderators.
- Is this error on every page ?
- only on pages with a category moderator ?

alpozdemir December 18th, 2007 12:24 PM

only in vbgallery homepage, the other pages is normal..

alpozdemir December 23rd, 2007 03:23 AM

also have this error on vbgallery 2.41 with un registered users

/home/eugene/public_html/galeri/gallery_global.php on line 352

Zachariah December 23rd, 2007 05:39 AM

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 ?

alpozdemir December 23rd, 2007 07:37 AM

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

Zachariah December 23rd, 2007 07:23 PM

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 ?

alpozdemir December 24th, 2007 04:22 AM

Hi Zachariah,

Unfortunatelt, nothing changes :( I have upgrade from version 2.3

Zachariah December 24th, 2007 07:03 AM

PM me some ftp and AdminCP access I'll take a look.

alpozdemir December 24th, 2007 07:25 AM

please check it out PM box

Zachariah December 24th, 2007 08:07 AM

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.

alpozdemir December 24th, 2007 08:10 AM

Ok, I understood. thanks for all.. vbgallery rulaz!!! :)

bulbasnore January 9th, 2008 10:10 PM

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)

Zachariah January 9th, 2008 10:15 PM

Quote:

Originally Posted by bulbasnore (Post 1214269)
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 ?

info5538 January 10th, 2008 04:36 AM

I'm having this exact same problem with the xcache datastore. I disabled it only for the gallery.

info5538 January 10th, 2008 06:58 PM

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 January 10th, 2008 07:27 PM

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';
}

info5538 January 10th, 2008 07:56 PM

---delete me---

Fenriz April 18th, 2008 09:40 AM

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?

hydn May 9th, 2008 07:51 AM

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.


All times are GMT -5. The time now is 03:31 AM.

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