Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
Posted: Wed Aug 13, 2003 5:41 am Post subject: Re: [RELEASE] - Improved New Albums Block
techmike wrote: › Warning: Invalid argument supplied for foreach() in /var/www/mikenet/php/html/gallery-1.3.4/session.php on line 55
In sessions.php change the section around line 55 to
Code: ›
/* emulate register_globals for sessions */
if (!$gallery->register_globals) {
foreach($_SESSION as $key => $value) {
eval("\$$key = & \$_SESSION[\"$key\"];");
}
}
techmike wrote: ›
Fatal error: Failed opening required '/var/www/mikenet/php/html//var/www/mikenet/php/html/gallery-1.3.4/ML_files/ML_settings.inc' (include_path='.:/usr/share/pear') in /var/www/mikenet/php/html/gallery-1.3.4/ML_files/ML_config.php on line 108
Hmn - plz post the config lines from your block.
EXAMPLE:
/* CHANGE THESE VARIABLES */
$GALLERY_BASEDIR = "/path/to/modules/gallery/";
define(WEB_BASE_ADDR,"http://yoursite.com/");
define(GALLERY_NAME,"gallery");
define(USE_THUMBS,1); // Set to 1 to show thumbnails, 0 to just list albums.
define(HOROZONTAL,1); //Set to 1 to list horozontally, 0 for vertically. If USE_THUMBS is 0,
//this is ignored, and albums will be listed vertically.
define(ALBUM_DIRECTORY,"/path/to/albums/");
/* CHANGE THESE VARIABLES */
$GALLERY_BASEDIR = "/var/www/mikenet/php/html/gallery-1.3.4/";
define(WEB_BASE_ADDR,"http://mikenet.mine.nu/php/html/");
define(GALLERY_NAME,"MikeNet");
define(USE_THUMBS,0); // Set to 1 to show thumbnails, 0 to just list albums.
define(HOROZONTAL,0); //Set to 1 to list horozontally, 0 for vertically. If USE_THUMBS is 0,
//this is ignored, and albums will be listed vertically.
define(ALBUM_DIRECTORY,"/var/www/mikenet/php/html/gallery-1.3.4/albums/");
/* DON"T CHANGE ANYTHING BELOW HERE */
Thanks for your help!
Now I have changed this, and moved it so the module is called "Galleri", I have also made a fresh install of the 1.3.4-pl1 ML (but using the old config and album dir). The lines in your block looks like this now:
/* CHANGE THESE VARIABLES */
$GALLERY_BASEDIR = "/var/www/mikenet/php/html/modules/Galleri/";
define(WEB_BASE_ADDR,"http://mikenet.mine.nu/php/html/");
define(GALLERY_NAME,"Galleri");
define(USE_THUMBS,0); // Set to 1 to show thumbnails, 0 to just list albums.
define(HOROZONTAL,0); //Set to 1 to list horozontally, 0 for vertically. If USE_THUMBS is 0,
//this is ignored, and albums will be listed vertically.
define(ALBUM_DIRECTORY,"/var/www/mikenet/albums/");
/* DON"T CHANGE ANYTHING BELOW HERE */
But now I get an error that says:
Fatal error: Failed opening required '/var/www/mikenet/php/html//var/www/mikenet/php/html/modules/Galleri/ML_files/ML_settings.inc' (include_path='.:/usr/share/pear') in /var/www/mikenet/php/html/modules/Galleri/ML_files/ML_config.php on line 109
after trying to change this on my own (I simply removed "$stripped . "/". " from line 109) i get the following error:
Fatal error: Call to undefined function: numaccessiblealbums() in /var/www/mikenet/php/html/blocks/block-newAlbums.php on line 48
guess this wasn't as easy as i thought it would be. Maybe the trouble is that I'm using the Multilanguage version? Is anybody else doing this successfully?
Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
Posted: Wed Aug 13, 2003 8:36 am Post subject: Re: [RELEASE] - Improved New Albums Block
grab the new version [nukedgallery.net] in the download. it has a couple of bugfixes that may address your issues.
i'm using gallery 1.3.5-cvs-b115 (which is ML capable) at http://phpnuke.nukegallery.net and don't have any problems with it.[/url] _________________
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