Support Forums | Demo Gallery [1.x] [2.x] | Downloads | News | Site Map ]
Nuked Gallery
  Create a FREE account or Login   As a guest, you don't have access to our FULL navigation system.
 Forum FAQForum FAQ   StatisticsStatistics   SearchSearch   UsergroupsUsergroups   FavoritesFavorites  

Block-Random-Improved Problem again!

 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks View previous topicPrinter friendly versionView next topic
Author Message
aviceda

Beginner
Beginner


Joined: Apr 28, 2003
Posts: 8
Location: Brisbane, Australia

PostPosted: Sat May 17, 2003 10:30 pm    Post subject: Block-Random-Improved Problem again! Reply with quote

Embarassed
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
Offline View user's profile Send private message
AdBot
   Post subject: Block-Random-Improved Problem again!  

Back to top
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Sun May 18, 2003 9:42 am    Post subject: Reply with quote

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
Offline View user's profile Send private message Visit poster's website
aviceda

Beginner
Beginner


Joined: Apr 28, 2003
Posts: 8
Location: Brisbane, Australia

PostPosted: Tue May 20, 2003 11:24 pm    Post subject: Reply with quote

Embarassed
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
Offline View user's profile Send private message
aviceda

Beginner
Beginner


Joined: Apr 28, 2003
Posts: 8
Location: Brisbane, Australia

PostPosted: Wed May 21, 2003 4:07 am    Post subject: Reply with quote

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?

Sad
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Wed May 21, 2003 7:17 am    Post subject: Reply with quote

define(SERVER_ADDR, "http://www.aviceda.org/");


should probably be:

define(SERVER_ADDR, "http://www.aviceda.org/phpnuke/");
Back to top
Offline View user's profile Send private message Visit poster's website
aviceda

Beginner
Beginner


Joined: Apr 28, 2003
Posts: 8
Location: Brisbane, Australia

PostPosted: Wed May 21, 2003 1:44 pm    Post subject: Reply with quote

Sad

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
Offline View user's profile Send private message
dari

Site Admin
Site Admin


Joined: Mar 03, 2003
Posts: 6287
Location: Washington Township, NJ, USA

PostPosted: Wed May 21, 2003 1:49 pm    Post subject: Reply with quote

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
Offline View user's profile Send private message Visit poster's website
aviceda

Beginner
Beginner


Joined: Apr 28, 2003
Posts: 8
Location: Brisbane, Australia

PostPosted: Fri May 23, 2003 5:15 am    Post subject: Reply with quote

Sad

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
Offline View user's profile Send private message
bummie

Beginner
Beginner


Joined: Apr 14, 2003
Posts: 4

PostPosted: Tue Jun 24, 2003 4:03 am    Post subject: Reply with quote

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
Offline View user's profile Send private message
bummie

Beginner
Beginner


Joined: Apr 14, 2003
Posts: 4

PostPosted: Tue Jun 24, 2003 4:31 am    Post subject: Reply with quote

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
Offline View user's profile Send private message
bummie

Beginner
Beginner


Joined: Apr 14, 2003
Posts: 4

PostPosted: Tue Jun 24, 2003 4:50 am    Post subject: Reply with quote

fixed the last error. the answer lies in this topics : http://www.nukedgallery.net/modules.php ... ed+foreach

thanks.
Back to top
Offline View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks View previous topicPrinter friendly versionView next topic

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours

Powered by phpBB © phpBB Group



Sponsors: Dedicated ServersDomain NamesWeb HostingDomain Name RegistrationDedicated Web HostingWeb Design New YorkCompare VoIPseo packagesSEO CompanyNew York Yellow PagesFind LocationsVOIP Phone ServiceNeckermannOnline internetSEORestaurant Locator • Get great HP coupons from CouponSnapshot • Search for great dell coupons at CouponSnapshot.com.au • Graduation DressesAndroid TabletSEO IndiaBuy Phen375fuel filterWorld Meds Direct

8th year online! 2003-2011
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia