| Author |
Message |
aviceda
Beginner


Joined: Apr 28, 2003 Posts: 8 Location: Brisbane, Australia
|
Posted: Sat May 17, 2003 10:30 pm Post subject: Block-Random-Improved Problem again! |
|
|
Hi Dari,
Sorry if I'm going over old ground again, just tried to get your 'block-random_improved' working. I've been thru some recent postings however I couldn't see why I'm getting the following error.
Fatal error: Cannot redeclare fs_copy() (previously declared in /home/aviceda/public_html/phpnuke/modules/gallery/platform/fs_unix.php:22) in /home/aviceda/public_html/phpnuke/modules/gallery/platform/fs_unix.php on line 22
It's probably something do do with my paths, I uploaded block-random.php to the 'blocks' in the 'phpnuke' dir and the random_support.php file into 'gallery' in 'modules' and changed paths in both first.
Hopefully that was correct!
Tom |
|
| Back to top |
|
|
AdBot
|
| Post subject: Block-Random-Improved Problem again! |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sun May 18, 2003 9:42 am Post subject: |
|
|
make sure you don't have an old copy of the block-random.php file lying around somewhere. this error should be fixed by the line "require_once(....)" in the block-random.php file in the improved version.
post the top couple of lines for each of those files here so i can make sure you have the paths set correctly, etc. |
|
| Back to top |
|
|
aviceda
Beginner


Joined: Apr 28, 2003 Posts: 8 Location: Brisbane, Australia
|
Posted: Tue May 20, 2003 11:24 pm Post subject: |
|
|
Hi Dari,
Had a bit of a disaster with my gallery (v1.3.4cvs) module and am going to re-install, would it be a good idea to add these improved files from your site before I start to install? I would like to get your Random-blocks to work with it.
gallery/init.php
gallery/classes/nuke5/AdminUser.php
gallery/classes/nuke5/User.php
gallery/classes/nuke5/UserDB.php
Tom |
|
| Back to top |
|
|
aviceda
Beginner


Joined: Apr 28, 2003 Posts: 8 Location: Brisbane, Australia
|
Posted: Wed May 21, 2003 4:07 am Post subject: |
|
|
OK Dari,
re-installed Gallery 1.3.4cvs in Nuke6.5, added your improved Random Block (block-random.php and random_support.php)
Edited the $HTTP_GET_VARS to $_GET etc in all PHP files
Changed the paths in block-random.php to
$GALLERY_BASEDIR = "/home/aviceda/public_html/phpnuke/modules/gallery/";
define(ALBUM_BASEADDR, "http://www.aviceda.org/nu65image/");
define(SERVER_ADDR, "http://www.aviceda.org/");
in random_support.php to
$GALLERY_BASEDIR = "/home/aviceda/public_html/phpnuke/modules/gallery/";
Get these errors:
Warning: fopen(/home/aviceda/public_html/nu65image/block-random.cache) [function.fopen]: failed to create stream: No such file or directory in /home/aviceda/public_html/phpnuke/modules/gallery/platform/fs_unix.php on line 53
Warning: Invalid argument supplied for foreach() in /home/aviceda/public_html/phpnuke/modules/gallery/random_support.php on line 230
Warning: copy(/home/aviceda/public_html/nu65image//.thumb.jpg) [function.copy]: failed to create stream: No such file or directory in /home/aviceda/public_html/phpnuke/modules/gallery/platform/fs_unix.php on line 24
Any ideas?
 |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed May 21, 2003 7:17 am Post subject: |
|
|
define(SERVER_ADDR, "http://www.aviceda.org/");
should probably be:
define(SERVER_ADDR, "http://www.aviceda.org/phpnuke/"); |
|
| Back to top |
|
|
aviceda
Beginner


Joined: Apr 28, 2003 Posts: 8 Location: Brisbane, Australia
|
Posted: Wed May 21, 2003 1:44 pm Post subject: |
|
|
Similar error:
Warning: fopen(/home/aviceda/public_html/nu65image/block-random.cache) [function.fopen]: failed to create stream: No such file or directory in /home/aviceda/public_html/phpnuke/modules/gallery/platform/fs_unix.php on line 53
Warning: Invalid argument supplied for foreach() in /home/aviceda/public_html/phpnuke/modules/gallery/random_support.php on line 230
Warning: copy(/home/aviceda/public_html/nu65image//.thumb.jpg) [function.copy]: failed to create stream: No such file or directory in /home/aviceda/public_html/phpnuke/modules/gallery/platform/fs_unix.php on line 24 |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Wed May 21, 2003 1:49 pm Post subject: |
|
|
aviceda wrote: › Warning: fopen(/home/aviceda/public_html/nu65image/block-random.cache) [function.fopen]: failed to create stream: No such file or directory in /home/aviceda/public_html/phpnuke/modules/gallery/platform/fs_unix.php on line 53
is that path ( /home/aviceda/public_html/nu65image/ ) the path of your albums?
those other two errors stem from this one. |
|
| Back to top |
|
|
aviceda
Beginner


Joined: Apr 28, 2003 Posts: 8 Location: Brisbane, Australia
|
Posted: Fri May 23, 2003 5:15 am Post subject: |
|
|
This is a tough one, I cannot see that there should be a problem with the directory called nu65image, all the uploaded pics appear to be in there. Just created it (with this name) when re-installing Gallery to avoid conflicting with the albums dir.
Wish I new!
Tom |
|
| Back to top |
|
|
bummie
Beginner


Joined: Apr 14, 2003 Posts: 4
|
Posted: Tue Jun 24, 2003 4:03 am Post subject: |
|
|
hey, i'm having exactly the same error as aviceda. here's mine:
Code: ›
Warning: Invalid argument supplied for foreach() in /home/yuttic/public_html/modules/gallery/session.php on line 55
Warning: fopen(/home/yuttic/public_html/albums/block-random.cache) [function.fopen]: failed to create stream: No such file or directory in /home/yuttic/public_html/modules/gallery/platform/fs_unix.php on line 53
Warning: Invalid argument supplied for foreach() in /home/yuttic/public_html/modules/gallery/random_support.php on line 230
Warning: copy(/home/yuttic/public_html/albums//.thumb.jpg) [function.copy]: failed to create stream: No such file or directory in /home/yuttic/public_html/modules/gallery/platform/fs_unix.php on line 24
please help, dari. i really need this great block on my site. |
|
| Back to top |
|
|
bummie
Beginner


Joined: Apr 14, 2003 Posts: 4
|
Posted: Tue Jun 24, 2003 4:31 am Post subject: |
|
|
okay, i fixed the above error by manually creating a random_block.cache file and chmoding it to 777. now the block seems to be working for the first time.
still, i'm having one error:
Code: › Warning: Invalid argument supplied for foreach() in /home/yuttic/public_html/modules/gallery/session.php on line 55
any thought? ... |
|
| Back to top |
|
|
bummie
Beginner


Joined: Apr 14, 2003 Posts: 4
|
|
| Back to top |
|
|
|
|
|
|
|