| Author |
Message |
switch
Novice


Joined: Jul 09, 2003 Posts: 23
|
Posted: Tue Jul 29, 2003 10:20 am Post subject: session error. |
|
|
Hi i'm getting this error at my block-random
Warning: Invalid argument supplied for foreach() in /home/punkrider/public_html/flipzcrew/modules/photos/session.php on line 55 |
|
| Back to top |
|
|
AdBot
|
| Post subject: session error. |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Tue Jul 29, 2003 10:23 am Post subject: Re: session error. |
|
|
please use the "search" function on these forums, this question has been asked and answered at least a dozen times.
open session.php, go to line 55, you will find 2 instances of $_HTTP_SESSION_VARS (one on line 55, one either above or below it). Change both to just $_SESSION _________________
 |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Tue Jul 29, 2003 10:28 am Post subject: |
|
|
Sry man! beat me to it!  |
|
| Back to top |
|
|
switch
Novice


Joined: Jul 09, 2003 Posts: 23
|
Posted: Tue Jul 29, 2003 4:06 pm Post subject: tnx |
|
|
that fix it but now i'm getting this error messages.
Warning: Invalid argument supplied for foreach() in /home/punkrider/public_html/flipzcrew/modules/gallery/random_support.php on line 219
Warning: copy(/home/punkrider/public_html/flipzcrew/modules/gallery/albums//.thumb.jpg): failed to open stream: No such file or directory in /home/punkrider/public_html/flipzcrew/modules/gallery/platform/fs_unix.php on line 24
 |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Tue Jul 29, 2003 7:03 pm Post subject: Re: session error. |
|
|
again, search the forums, this has been answered several times before.
check the paths that you've specified in your block-random and random-support.php files, etc, etc etc _________________
 |
|
| Back to top |
|
|
switch
Novice


Joined: Jul 09, 2003 Posts: 23
|
Posted: Tue Jul 29, 2003 11:16 pm Post subject: Re: session error. |
|
|
ok thanks i was able to fix that i think. It was workin fine for an hour then i got another error
Warning: rand() expects parameter 2 to be long, string given in /home/punkrider/public_html/flipzcrew/modules/gallery/random_support.php on line 192
ERROR: requested index [] out of bounds [6]
Fatal error: Call to a member function on a non-object in /home/punkrider/public_html/flipzcrew/modules/gallery/classes/Album.php on line 675
 |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Wed Jul 30, 2003 1:24 am Post subject: |
|
|
Try deleting your block-random.cache file that is in your your albums directory.  |
|
| Back to top |
|
|
switch
Novice


Joined: Jul 09, 2003 Posts: 23
|
Posted: Wed Jul 30, 2003 10:12 am Post subject: Re: session error. |
|
|
thanks for the help slackbladder.that workedout to fine for an hour that is. unfortunately an hour later I get same problem again urggggg.
i dont want to connect to my unix or ftp just to delete the block-randome.cache file every 30mins  |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Wed Jul 30, 2003 10:24 am Post subject: Re: session error. |
|
|
I had a similar prob! I had moved all my albums from one server to another and during the process some photos got corrupted!
When the cache file was generated - it got stuck on the albums that had the broken images in them. However it still worked just not on those albums (got the usual error!)
To fix my problem I first deleted the knackered images, then got the latest version of both the random block MOD and gallery. Installed both, deleted the block-random.cache file and let the MOD generate a new file.
All was well then! Maybe try new the new ver of the MOD and gallery - might clear the fault.
Cheers |
|
| Back to top |
|
|
switch
Novice


Joined: Jul 09, 2003 Posts: 23
|
Posted: Wed Jul 30, 2003 11:48 am Post subject: Re: session error. |
|
|
| hmmm well i'm using phpnuke6.5, gallery1.3.4 and the improved random pic block. is there a updated/latest/newest gallery for phpnuke? if there is can u please give me the link? tnx |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Wed Jul 30, 2003 12:57 pm Post subject: |
|
|
Gallery is currently @ 1.3.5b53 (30/7) (http://jpmullan.com/galleryupdates/) but I run nuke 6.7 with 1.3.4 and Dari's MOD with no problem.
Have you found any broken images in your albums?
Try deleting block-random.cache - wait till the MOD generates a new file - then have a look inside the file. Compare the list against your current albums (easy on a small gallery, bloody impossible on a large one!!)
I normally find errors can be 'got rid of' after a clean install. Sometimes I miss some of the instructions the first time round. |
|
| Back to top |
|
|
switch
Novice


Joined: Jul 09, 2003 Posts: 23
|
Posted: Wed Jul 30, 2003 7:54 pm Post subject: Re: session error. |
|
|
no i havent found any broken images. i only kept on getting same error messages.i already tried that the latest random block file still the same error messages  |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Wed Jul 30, 2003 8:53 pm Post subject: Re: session error. |
|
|
actually, the current version of gallery is 1.3.5-cvs-b69 (the version in the changelog is incorrect, look at version.php). i am running 1.3.5-cvs-b61 at phpnuke.nukedgallery.net with no issues on any of my blocks. _________________
 |
|
| Back to top |
|
|
switch
Novice


Joined: Jul 09, 2003 Posts: 23
|
Posted: Thu Jul 31, 2003 2:13 am Post subject: running 1.3.5-cvs-b61 |
|
|
| Dari can u please post the link where i can download the current version of the gallery and the instuctions how to upgrade? |
|
| Back to top |
|
|
|
|
|
|
|