Strange session error with featured-photo hack

daveburley

Joined: 2003-10-01
Posts: 3
Posted: Wed, 2003-10-01 23:56

I have applied becketts excellent hack which worked fine on one of my phpnuke sites but not on this one !!!

the site in question is www.motorhomefacts.com

the block should be displayed in the top right
but at the moment i am getting the folllowing errors:-

Warning: Invalid argument supplied for foreach() in /home/mhadmin/public_html/modules/gallery/session.php on line 63

Warning: main(errors/configure_instructions.php): failed to open stream: No such file or directory in /home/mhadmin/public_html/modules/gallery/errors/reconfigure.php on line 13

Fatal error: main(): Failed opening required 'errors/configure_instructions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mhadmin/public_html/modules/gallery/errors/reconfigure.php on line 13

Line 63 of session.php is as follows:-
foreach($HTTP_SESSION_VARS as $key => $value) {

Any pointers ??

Also does anyone have a copy of their phpnuke block file for featured photo that i can use ?

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Thu, 2003-10-02 15:30

Moved from Customizing Gallery

 
daveburley

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

Bump:
Can anyone point me in the right direction with this ?
I have disabled the block at the mo to prevent users seeing the error, but would LOVE to have this feature available

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Sat, 2003-10-11 16:50

Make sure you've set $GALLERY_BASEDIR properly near the top of featured-photo.php.

-Beckett (

)