Topic Title: Random Block for 1.4.3 Error ~ Failed to open stream

Forum Index » Blocks » Random Block for 1.4.3 Error ~ Failed to open stream
Topic URL: http://www.nukedgallery.net/postt849.html

AuthorMessage
Post Title: Random Block for 1.4.3 Error ~ Failed to open stream
Fortissimo
Joined: Dec 08, 2003
Posts: 2

Posted: Wed Apr 28, 2004 2:30 pm
I am running 1.4.3 Gallery on phpNuke 7.1. I just downloaded and installed the newest Random Block module (downloaded it less than 30 minute ago, so I'm assuming it's the latest). I did the editing:

NG-RandomPhotoFunctions I changed the following:

Quote: › /*******************************************************************/
/* Full path to your Gallery, don't forget the trailing / */
/*******************************************************************/
$GALLERY_BASEDIR = "home/webattit/www/www/modules/gallery/";

/*******************************************************************/
/* The module name of your Gallery, default is "gallery" */
/*******************************************************************/
$GALLERY_MODULENAME = "gallery";

/*******************************************************************/
/* Time, in seconds, to refresh random photo cache. Default is */
/* 86400 (check it daily) */
/*******************************************************************/
define(CACHE_EXPIRED, 10);

/*******************************************************************/
/* Full path to your albums directory, don't forget the trailing / */
/*******************************************************************/
define(ALBUM_DIRECTORY,"home/webattit/www/www/modules/gallery/albums/");


I uploaded blocks to the block folder, Functions file to root, and activated the block in the left hand bar and get the following error code:

Quote: › Warning: main(home/webattit/www/www/modules/gallery/init.php): failed to open stream: No such file or directory in /home/webattit/www/www/NG-RandomPhoto_functions.php on line 61

Fatal error: main(): Failed opening required 'home/webattit/www/www/modules/gallery/init.php' (include_path='.:/usr/local/lib/php') in /home/webattit/www/www/NG-RandomPhoto_functions.php on line 61


Any ideas on what went wrong? The gallery is running perfectly, all albums were properly upgraded..

AuthorMessage
Post Title: Re: Random Block for 1.4.3 Error ~ Failed to open stream
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Wed Apr 28, 2004 2:44 pm
you left a leading / on your paths in your config:
define(ALBUM_DIRECTORY,"/home/webattit/www/www/modules/gallery/albums/");
$GALLERY_BASEDIR = "/home/webattit/www/www/modules/gallery/";

AuthorMessage
Post Title: Re: Random Block for 1.4.3 Error ~ Failed to open stream
Fortissimo
Joined: Dec 08, 2003
Posts: 2

Posted: Thu Apr 29, 2004 12:22 am
Thank you Dari. Smile Feel silly for taking your time for me missing that one!

AuthorMessage
Post Title: Re: Random Block for 1.4.3 Error ~ Failed to open stream
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Thu Apr 29, 2004 7:05 am
no worries Smile

All times are GMT - 5 Hours
Powered by PHPNuke and phpBB2 © 2006 phpBB Group