| Author |
Message |
petzlux
Beginner


Joined: Jul 27, 2003 Posts: 4
|
Posted: Sun Jul 27, 2003 6:27 am Post subject: Random Block and 5 New Albums Blocks = Problems |
|
|
Hi , I just installed the 5 newest albums block ,but my random block doesnt like it. When both are active , the random block just puts out a error message :
Fatal error: Cannot redeclare fs_copy() (previously declared in /var/www/html/modules/gallery/platform/fs_unix.php:22) in /var/www/html/modules/gallery/platform/fs_unix.php on line 22
Whats the matter . Changing left right or center for the 2 blocks doesnt change a thing.
Thanks for the help |
|
| Back to top |
|
|
AdBot
|
| Post subject: Random Block and 5 New Albums Blocks = Problems |
|
|
|
|
|
| Back to top |
|
 |
petzlux
Beginner


Joined: Jul 27, 2003 Posts: 4
|
Posted: Sun Jul 27, 2003 7:22 am Post subject: |
|
|
Get a new error message now, after installing another version of block-random, had before the earlier version without the ability to use hourly or daily.
It works alone, but if i use newest album with it, the thumb is still displayed but clicking on it produces an error and the following error message is also displayed along the thumb:
Warning: fopen("/block-random.cache", "w") - Permission denied in /var/www/html/modules/gallery/platform/fs_unix.php on line 53 |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sun Jul 27, 2003 12:33 pm Post subject: Re: Random Block and 5 New Albums Blocks = Problems |
|
|
hmm..check to make sure that the "require" lines at the top all read "require_once (STUFF HERE ."init.php");"
are you using any other block that calls gallery funtions on your page? what side are the blocks on?
as for the other error, make sure that the permissions on the block-random.cache file are set to allow writing. |
|
| Back to top |
|
|
petzlux
Beginner


Joined: Jul 27, 2003 Posts: 4
|
Posted: Sun Jul 27, 2003 1:45 pm Post subject: |
|
|
| I did set the permission for the block-random.cache to 777. What exact file does the require_once statement stand in ? |
|
| Back to top |
|
|
petzlux
Beginner


Joined: Jul 27, 2003 Posts: 4
|
Posted: Sun Jul 27, 2003 1:47 pm Post subject: |
|
|
$GALLERY_BASEDIR = "/var/www/html/modules/gallery/";
define(ALBUM_BASEADDR, "http://www.petz.lu/albums/");
define(SERVER_ADDR, "http://www.petz.lu/");
require_once($GALLERY_BASEDIR . "init.php");
require_once($GALLERY_BASEDIR . "random_support.php");
Thats what my block-random.php reads concerning the statements |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sun Jul 27, 2003 9:19 pm Post subject: Re: Random Block and 5 New Albums Blocks = Problems |
|
|
hmm...OS? web server? PHP version?
search through the forums, i know that others have had this issue as well. your block-random.php file looks fine. check the top of your random_support.php file (it should be in your modules/gallery directory) and make sure that the require_once for the init.php line is at/near the top (and that there isn't a line requiring random_support.php. |
|
| Back to top |
|
|
casper
Beginner


Joined: May 24, 2003 Posts: 6
|
Posted: Mon Jul 28, 2003 4:16 am Post subject: |
|
|
I got the following errors with the newsest album block..
Warning: Division by zero in /public_html/php-nuke/html/modules/gallery/classes/Image.php on line 152
and the thumbnail is not resized to fit the block colum width..
anyone knows why? and any fix available?
Thanks!  |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Jul 28, 2003 7:10 am Post subject: Re: Random Block and 5 New Albums Blocks = Problems |
|
|
| that sounds more like a general Gallery issue. you might want to check this forum: Troubleshooting & Problems [menalto.com] |
|
| Back to top |
|
|
|
|
|
|
|