foreach() error in Nuke 6.0

marcc

Joined: 2003-02-07
Posts: 7
Posted: Sun, 2003-03-02 03:47

Greetings,

I did a search and nothing came up. I get a random photo and all in the block, but above it says:

Warning: Invalid argument supplied for foreach() in /home/virtual/site1/fst/var/www/html/modules/gallery/session.php on line 55

I believe they are talking about this (in session.php):

<!-- BBCode Start --><TABLE BORDER=0 ALIGN=CENTER WIDTH=85%><TR><TD><font class="pn-sub">Code:</font><HR></TD></TR><TR><TD><FONT class="pn-sub"><PRE> /* emulate register_globals for sessions */
if (!$gallery->register_globals) {
foreach($HTTP_SESSION_VARS as $key => $value) {
eval("$$key = &amp; $HTTP_SESSION_VARS["$key"];");
}
} </TD></TR></TABLE><!-- BBCode End -->

Many thanks for taking the time to read.

Marc

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Mon, 2003-03-24 13:15
 
daveburley

Joined: 2003-10-01
Posts: 3
Posted: Fri, 2003-10-03 12:41

I Did the fix on that page i.e. swapped $_HTTP_SESSION_VARS with $_SESSION. It cleared my first error GREAT i thought, now instead og an error message i get
the reconfigure gallery page comes up inside my block now !!!!!! instead of the featured photo !!

Any pointers please ?