| Author |
Message |
djreality
Beginner


Joined: Aug 09, 2003 Posts: 6
|
Posted: Wed Aug 13, 2003 9:59 am Post subject: Random Pic Block Error |
|
|
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 |
|
|
AdBot
|
| Post subject: Random Pic Block Error |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6275 Location: Washington Township, NJ, USA
|
Posted: Wed Aug 13, 2003 11:35 am Post subject: |
|
|
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 |
|
|
djreality
Beginner


Joined: Aug 09, 2003 Posts: 6
|
Posted: Wed Aug 13, 2003 12:00 pm Post subject: |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6275 Location: Washington Township, NJ, USA
|
|
| Back to top |
|
|
djreality
Beginner


Joined: Aug 09, 2003 Posts: 6
|
Posted: Wed Aug 13, 2003 1:07 pm Post subject: Re: Random Pic Block Error |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6275 Location: Washington Township, NJ, USA
|
Posted: Wed Aug 13, 2003 1:08 pm Post subject: |
|
|
ok, you didn't make the change. change those $HTTP_SESSION_VARS to $_SESSION . _________________
 |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Wed Aug 13, 2003 1:14 pm Post subject: |
|
|
More importantly - how do I get to meet the Yummy Girls!  |
|
| Back to top |
|
|
djreality
Beginner


Joined: Aug 09, 2003 Posts: 6
|
Posted: Wed Aug 13, 2003 1:18 pm Post subject: |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6275 Location: Washington Township, NJ, USA
|
Posted: Wed Aug 13, 2003 1:19 pm Post subject: |
|
|
in sessions.php, in that chunk of code that you just posted. _________________
 |
|
| Back to top |
|
|
djreality
Beginner


Joined: Aug 09, 2003 Posts: 6
|
Posted: Wed Aug 13, 2003 1:19 pm Post subject: |
|
|
They should probably be on there once the site is up and operational....heh |
|
| Back to top |
|
|
djreality
Beginner


Joined: Aug 09, 2003 Posts: 6
|
Posted: Wed Aug 13, 2003 1:24 pm Post subject: |
|
|
dari wrote: › in sessions.php, in that chunk of code that you just posted.
fixed.....thanks dari!!! |
|
| Back to top |
|
|
|
|
|
|
|