Home | Support Forums | Your Account | Gallery [2] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Random Pic Block Error

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Blocks View previous topicPrinter friendly versionView next topic
Author Message
djreality

Beginner
Beginner


Joined: Aug 09, 2003
Posts: 6

PostPosted: Wed Aug 13, 2003 9:59 am    Post subject: Random Pic Block Error Reply with quote

Warning: Invalid argument supplied for foreach() in /home/drockwell/www/danielrockwell.com/modules/Gallery/session.php on line 55

Im getting this error when block is activated. I have done a search of the forums and have done all the suggested fixes. It worked for a bit, but the error is back. Any help is appreciated....

http://www.danielrockwell.com/index.php [danielrockwell.com]
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Random Pic Block Error  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Wed Aug 13, 2003 11:35 am    Post subject: Reply with quote

the only change that is needed is changed both of the $HTTP_SESSION_VAR instances to just $_SESSION . that will fix that error. it might also be related to the fact that you've disabled your gallery module (it shouldn't make a difference, but who knows).
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
djreality

Beginner
Beginner


Joined: Aug 09, 2003
Posts: 6

PostPosted: Wed Aug 13, 2003 12:00 pm    Post subject: Reply with quote

dari wrote: › the only change that is needed is changed both of the $HTTP_SESSION_VAR instances to just $_SESSION . that will fix that error. it might also be related to the fact that you've disabled your gallery module (it shouldn't make a difference, but who knows).


I found no instances of $HTTP_SESSION_VAR, and i also activated the gallery to no avail......
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Wed Aug 13, 2003 12:36 pm    Post subject: Reply with quote

ok, make sure you've gotten the latest random block code (the improved random block). it is a lot more robust than the older one. secondly, make sure that it says, somewhere near the top of the file:
Code: › require_once(GALLERY_BASEDIR."/init.php");


secondly, that line should have read: $_HTTP_SESSION_VARS.

thirdly, please post the chunk of code around line 55 on your session.php file.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
djreality

Beginner
Beginner


Joined: Aug 09, 2003
Posts: 6

PostPosted: Wed Aug 13, 2003 1:07 pm    Post subject: Re: Random Pic Block Error Reply with quote

here is the code near around line 55 in sessions.php

Code: › /* Start a new session, or resume our current one */
session_start();

/* emulate register_globals for sessions */
if (!$gallery->register_globals) {
    foreach($HTTP_SESSION_VARS as $key => $value) {
        eval("\$$key = & \$HTTP_SESSION_VARS[\"$key\"];");
    }
}

Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Wed Aug 13, 2003 1:08 pm    Post subject: Reply with quote

ok, you didn't make the change. change those $HTTP_SESSION_VARS to $_SESSION .
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Wed Aug 13, 2003 1:14 pm    Post subject: Reply with quote

More importantly - how do I get to meet the Yummy Girls! Laughing Shocked Cool
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
djreality

Beginner
Beginner


Joined: Aug 09, 2003
Posts: 6

PostPosted: Wed Aug 13, 2003 1:18 pm    Post subject: Reply with quote

dari wrote: › ok, you didn't make the change. change those $HTTP_SESSION_VARS to $_SESSION .


Where does it need to be changed? I looked in the block code and the random_support code and didnt find it.....
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6271
Location: Washington Township, NJ, USA

PostPosted: Wed Aug 13, 2003 1:19 pm    Post subject: Reply with quote

in sessions.php, in that chunk of code that you just posted.
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
djreality

Beginner
Beginner


Joined: Aug 09, 2003
Posts: 6

PostPosted: Wed Aug 13, 2003 1:19 pm    Post subject: Reply with quote

slackbladder wrote: › More importantly - how do I get to meet the Yummy Girls! Laughing Shocked Cool


They should probably be on there once the site is up and operational....heh
Back to top
Offline View user's profile Send private message
djreality

Beginner
Beginner


Joined: Aug 09, 2003
Posts: 6

PostPosted: Wed Aug 13, 2003 1:24 pm    Post subject: Reply with quote

dari wrote: › in sessions.php, in that chunk of code that you just posted.


fixed.....thanks dari!!!
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Issues » Blocks View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSearch Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaSEO

6th year online! 2003-2008
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia