Please HELP?!

lexo
lexo's picture

Joined: 2003-01-17
Posts: 4
Posted: Sat, 2003-01-18 01:14

I'm using the script that is found at: <!-- BBCode Start --><A HREF="http://www.prism.gatech.edu/~dm168/block-random.php.html" TARGET="_blank">This Page</A><!-- BBCode End -->. I am using Nuke 6 and Gallery 1.3.3 and am getting the picture to display and the text to display with it.. only problem is this error:

Warning: Invalid argument supplied for foreach() in /usr/home/v1/a0019576/html/modules/photos/session.php on line 55

Any ideas on what might be causing it and how I might go about fixing it?

Thanks!!
--Jerad :grin:

 
lexo
lexo's picture

Joined: 2003-01-17
Posts: 4
Posted: Sat, 2003-01-18 02:20

Took out this code in session.php to get it to work:

/* 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 = &amp; $HTTP_SESSION_VARS["$key"];");
* }
*}
*/

Now, however, when I click on the picture from the block, it gives me this error:
Sorry, this Module isn't active!

http://www.sigepcadelta.com

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Sat, 2003-01-18 17:16

look at step 2 (or 3) of the code I posted on that page, it tells you to remove the $HTTP_SESSION_VARS and replace it with just $_SESSION (this is for new versions of PHP...all $HTTP_xxx_VARS have been replaced by simply $_xxxx, where xxxx could be COOKIE, SERVER, SESSION, GET, POST, ENV, FILES). you need to add that chunk of code back in the session.php file for proper operation.

also, make sure you activate the module from the admin section of PHPNuke..

 
lexo
lexo's picture

Joined: 2003-01-17
Posts: 4
Posted: Sun, 2003-01-19 18:48

Actually I found that and changed it around, fixed that minor problem. Yet now when I go to click on the link on the site it goes to the directory "gallery" rather than "photos." I believe this is built into the code somewhere, and I found a line with the string: &amp;op=modload&amp;name=gallery&amp;file=index&amp;include=view_photo.php and tried changing &amp;name=photos, yet it still isn't pointing to the "photos" directory. Any ideas?

 
dmolavi
dmolavi's picture

Joined: 2002-12-05
Posts: 573
Posted: Sun, 2003-01-19 19:22

the op command tells PHP what operation to execute, in this case, "modload" (ie load a module), the "name" command gives the name of the module to load (for me, it was "gallery"). if your gallery module name is different, rename it to yours (i.e. "mycoolgallery", etc).

-dm