Topic Title: Random Photo V2 error

Forum Index » Blocks » Random Photo V2 error
Topic URL: http://www.nukedgallery.net/postt614.html

AuthorMessage
Post Title: Random Photo V2 error
dcasmr
Joined: Nov 14, 2003
Posts: 5

Posted: Tue Jan 27, 2004 12:28 am
I can't figure out these errors. Gasllery is working, however, whenever the block is enabled, I get these errors. The files are in the block directory.

Warning: main(block-NG-RandomPhoto_functions.php): failed to open stream: No such file or directory in /home/blocks/block-NG-RandomPhoto.php on line 30

Fatal error: main(): Failed opening required 'block-NG-RandomPhoto_functions.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/blocks/block-NG-RandomPhoto.php on line 30
----

I used for GALLERYBASEDIR modules/gallery, and all kind including http://www.site.com/modules/gallery to no avail.

Using gallery 1.4.1 pl1.
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version:
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):
The CONFIG lines from the top of your block file(s):

AuthorMessage
Post Title: Re: Random Photo V2 error
slackbladder
Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK
Posted: Tue Jan 27, 2004 1:43 am
It would seem that your PATHS are wrong. Plz post the CONFIG lines from your BLOCK

AuthorMessage
Post Title: Re: Random Photo V2 error
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Tue Jan 27, 2004 8:16 am
sorry, that was my mistake..i forgot to edit the include line in the block file. just change the include line to read:
PHP: › <?php require_once("NG-RandomPhoto_functions.php"); ?>

AuthorMessage
Post Title: Re: Random Photo V2 error
dcasmr
Joined: Nov 14, 2003
Posts: 5

Posted: Wed Jan 28, 2004 12:50 am
Dari: It worked after I put in your suggestions, I also had a slight mistake forgetting to append the forward slash to the path.

Thanks for putting out that great block. Smile

AuthorMessage
Post Title: Re: Random Photo V2 error
dari
Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA
Posted: Wed Jan 28, 2004 7:54 am
glad you like it Smile ..i aim to please

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