| Author |
Message |
dcasmr
Beginner


Joined: Nov 14, 2003 Posts: 5
|
Posted: Tue Jan 27, 2004 12:28 am Post subject: Random Photo V2 error |
|
|
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): |
|
| Back to top |
|
|
AdBot
|
| Post subject: Random Photo V2 error |
|
|
|
|
|
| Back to top |
|
 |
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Tue Jan 27, 2004 1:43 am Post subject: Re: Random Photo V2 error |
|
|
| It would seem that your PATHS are wrong. Plz post the CONFIG lines from your BLOCK |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6318 Location: Washington Township, NJ, USA
|
Posted: Tue Jan 27, 2004 8:16 am Post subject: Re: Random Photo V2 error |
|
|
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"); ?> |
|
| Back to top |
|
|
dcasmr
Beginner


Joined: Nov 14, 2003 Posts: 5
|
Posted: Wed Jan 28, 2004 12:50 am Post subject: Re: Random Photo V2 error |
|
|
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.  |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6318 Location: Washington Township, NJ, USA
|
Posted: Wed Jan 28, 2004 7:54 am Post subject: Re: Random Photo V2 error |
|
|
glad you like it ..i aim to please |
|
| Back to top |
|
|
|
|
|
|
|