| Author |
Message |
mantog
Beginner


Joined: Jul 01, 2003 Posts: 4
|
Posted: Tue Jul 01, 2003 10:28 am Post subject: random block errors |
|
|
I get the following error when I run .../modules/Blocks/block-random.php
Code: › Warning: fopen("/home/mantog/armoniabay-www/albumsblock-random.cache", "r") - No such file or directory in /home/mantog/armoniabay-www/postnuke/html/modules/gallery/platform/fs_unix.php on line 53
Warning: Invalid argument supplied for foreach() in /home/mantog/armoniabay-www/postnuke/html/modules/gallery/random_support.php on line 230
Warning: Unable to open '/home/mantog/armoniabay-www/albums//.thumb.jpg' for reading: No such file or directory in /home/mantog/armoniabay-www/postnuke/html/modules/gallery/platform/fs_unix.php on line 24
I have read the posts but I was not able to get rid of the errors. I lost the whole day and I am almost ready to give up without having this nice feature on my site.
Unless someone can help with step by step instructions of what exactly I must do...
I use the latest postnuke and gallery files.
Thanks |
|
| Back to top |
|
|
AdBot
|
| Post subject: random block errors |
|
|
|
|
|
| Back to top |
|
 |
jmelcher
Beginner


Joined: Jun 10, 2003 Posts: 7
|
Posted: Tue Jul 01, 2003 12:20 pm Post subject: Re: random block errors |
|
|
It looks like you're missing a "/", and blocks-random.php is looking for "/home/mantog/armoniabay-www/albumsblock-random.cache" ... notice there is no "/" between albums and the file name.
Try this...
(1) Edit your blocks-random.php file and add either a "/" at the end of the string you have for define(ALBUM_BASEADDR,
OR
(2) Add the "/" to the blocks-random.cache . In other words, make it look like below, but substitute for your own information:
Code: ›
$GALLERY_BASEDIR = "/www/j/jmelcher/htdocs/modules/Gallery/";
define(ALBUM_BASEADDR, "http://www.melcherfamily.org/modules/Gallery/albums");
define(SERVER_ADDR, "http://www.melcherfamily.org/");
require_once($GALLERY_BASEDIR . "init.php");
require_once($GALLERY_BASEDIR . "random_support.php");
define(CACHE_FILE, $gallery->app->albumDir . "/block-random.cache");
That should take care of it. If (1) doesn't work, try (2) or vice versa. |
|
| Back to top |
|
|
mantog
Beginner


Joined: Jul 01, 2003 Posts: 4
|
Posted: Tue Jul 01, 2003 3:30 pm Post subject: Re: random block errors |
|
|
Thanks for the suggestion. It has taken care of previous errors. But now I am facing a new error
Code: › Warning: Unable to open '/home/mantog/armoniabay-www/albums/album17/unknown.thumb.jpg' for reading: No such file or directory in /home/mantog/armoniabay-www/postnuke/html/modules/gallery/platform/fs_unix.php on line 24
Any suggestions on that? Notice that my albums directory is not located under .../modules but on the same directory as postnuke. Could this create the problem?
Thanks |
|
| Back to top |
|
|
mantog
Beginner


Joined: Jul 01, 2003 Posts: 4
|
Posted: Tue Jul 01, 2003 3:57 pm Post subject: |
|
|
Now do not get the errors when I run .../modules/Blocks/block-random.php
But still I cannot see this block in administaotion menu of postnuke. How can I install the block in postnuke?
Thanks |
|
| Back to top |
|
|
jmelcher
Beginner


Joined: Jun 10, 2003 Posts: 7
|
Posted: Wed Jul 02, 2003 12:31 pm Post subject: |
|
|
Not sure about PostNuke as I use PHPNuke, but you will need to make sure "block-random.php" is located in your BLOCKS directory, then from your Admin menu, add the block. In PHPNuke, there is a place to add new blocks by selecting from a drop-down box.
Can anyone else with PostNuke answer this any better?
As for the errors you were/are getting... are the errors gone now? I think it does not matter where your albums directory is located, so long as the config.php in Gallery is pointed to the right location. You can either manually edit this file, or run through the setup procedure. I find it much easier to edit manually and then upload the edited file. |
|
| Back to top |
|
|
mantog
Beginner


Joined: Jul 01, 2003 Posts: 4
|
Posted: Thu Jul 03, 2003 3:51 am Post subject: |
|
|
| Thank you for the answer. I have solved the problem by installing another version of random block made specificaly for postnuke. |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Jul 07, 2003 7:39 am Post subject: |
|
|
sorry for the delayed reply, i was out of town and away from internet access for the 4th of July weekend. all of the files made here are for PHPNuke, as I do not have a PostNuke setup available for test. However, if there are people out there who have been able to tweak the code from this site to work with postnuke, please email me and we can make the files available here and at http://www.nukedgallery.net
thanks,
dm |
|
| Back to top |
|
|
|
|
|
|
|