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  

Most view and Newalbums error

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

Novice
Novice


Joined: Aug 01, 2003
Posts: 21

PostPosted: Fri Aug 01, 2003 2:28 pm    Post subject: Most view and Newalbums error Reply with quote

When activating block-newAlbums.php and block-mostViewed.php together the following error occurs:

Fatal error: Cannot redeclare fs_copy() (previously declared in /home/www/public_html/modules/gallery/platform/fs_unix.php:22) in /home/www/public_html/modules/gallery/platform/fs_unix.php on line 22

Just so you know the blocks work fine independantly of each other.

Can this be fixed so both will run without an error?

Thanks Crying or Very sad
----
Gallery version: 1.3.4pl1
Apache version: Apache/1.3.28
PHP version 4.3.2
Graphics Toolkit: imageMagick
Operating system: XP Pro
Web browser/version (if applicable): IE6 and NS7.1
Back to top
Offline View user's profile Send private message Visit poster's website
AdBot
   Post subject: Most view and Newalbums error  

Back to top
dari

Site Admin
Site Admin


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

PostPosted: Fri Aug 01, 2003 2:31 pm    Post subject: Re: Most view and Newalbums error Reply with quote

check that both files use:
Code: ›
require_once($GALLERY_BASEDIR."init.php");


near the top of the files. this is the only thing that can be causing the error.
Back to top
Offline View user's profile Send private message Visit poster's website
yourtoby

Novice
Novice


Joined: Aug 01, 2003
Posts: 21

PostPosted: Fri Aug 01, 2003 4:03 pm    Post subject: Reply with quote

Yes, the line is in both.
Back to top
Offline View user's profile Send private message Visit poster's website
dari

Site Admin
Site Admin


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

PostPosted: Fri Aug 01, 2003 5:03 pm    Post subject: Reply with quote

what's the URL?
Back to top
Offline View user's profile Send private message Visit poster's website
yourtoby

Novice
Novice


Joined: Aug 01, 2003
Posts: 21

PostPosted: Tue Aug 05, 2003 10:04 pm    Post subject: Reply with quote

dari wrote: › what's the URL?
Sorry it has been so long answering you. Had other more pressing issues to take care of.

I disabled the mostviewed block so the newalbums would continue.

About the url, with the script being turned off, how will it help you to go to the site?

Will send it to you if you need it. Embarassed
Back to top
Offline View user's profile Send private message Visit poster's website
dari

Site Admin
Site Admin


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

PostPosted: Wed Aug 06, 2003 7:28 am    Post subject: Reply with quote

do you have the most recent versions of both blocks? if so, there shouldn't be any problem... http://phpnuke.nukedgallery.net has all the blocks running with no issues.
Back to top
Offline View user's profile Send private message Visit poster's website
yourtoby

Novice
Novice


Joined: Aug 01, 2003
Posts: 21

PostPosted: Wed Aug 06, 2003 11:54 am    Post subject: Reply with quote

I know, I know. phpnuked.....looks great!!!

I got the blocks from here, but will check that I got the latest ones.

Thanks.
Back to top
Offline View user's profile Send private message Visit poster's website
yourtoby

Novice
Novice


Joined: Aug 01, 2003
Posts: 21

PostPosted: Wed Aug 06, 2003 10:23 pm    Post subject: Reply with quote

Downloaded the newAlbums, mostViewed, the new random.php, edited and uploaded them.

Each one works fine independent of each other. Currently I have newAlbums and the new random.php active.

However, I am getting a new error message now from the random.php block.

Quote: ›
Warning: fopen(/block-random.cache): failed to open stream: Permission denied in /home/public_html/modules/gallery/platform/fs_unix.php on line 53


Refreshing the page causes the error to go away and the random pic shows up.

Do you think this is something to do with my host? Confused

I ran conntest and analyze from nukecops and found no errors.

I'm running gallery 1.3.4pl1
php 4.3.2
phpnuke 6.8
Apache/1.3.28
IE 6 and NS 7.1

with the same errors.

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

Site Admin
Site Admin


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

PostPosted: Thu Aug 07, 2003 7:22 am    Post subject: Reply with quote

open the random_support.php file.
find the function get_random_photo_id()

find the following line of code:
Code: ›
                // Check the cache file to see if it's up to date
                $rebuild = 1;


make sure that $rebuild is set to 1.
Back to top
Offline View user's profile Send private message Visit poster's website
yourtoby

Novice
Novice


Joined: Aug 01, 2003
Posts: 21

PostPosted: Thu Aug 07, 2003 11:22 am    Post subject: Reply with quote

Great! That appears to have fixed that one!

This is how it looked:

Quote: ›
// Check the cache file to see if it's up to date
$rebuild = 0;
if (fs_file_exists(CACHE_FILE)) {
$stat = fs_stat(CACHE_FILE);
$mtime = $stat[9];
if (time() - $mtime < CACHE_EXPIRED) {
$rebuild = 1;


This is the only way it would stop the error

Quote: ›
// Check the cache file to see if it's up to date
$rebuild = 1;
if (fs_file_exists(CACHE_FILE)) {
$stat = fs_stat(CACHE_FILE);
$mtime = $stat[9];
if (time() - $mtime < CACHE_EXPIRED) {
$rebuild = 1;


Doesn't having both $rebuild = 1; pretty much void out the if statement?

Don't care! It works now. (At least I didn't get the error when loading the page) It usually happens on the first load.

U da man! Laughing
Back to top
Offline View user's profile Send private message Visit poster's website
yourtoby

Novice
Novice


Joined: Aug 01, 2003
Posts: 21

PostPosted: Sat Aug 23, 2003 1:02 am    Post subject: Reply with quote

No more answers?
Back to top
Offline View user's profile Send private message Visit poster's website
dari

Site Admin
Site Admin


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

PostPosted: Sat Aug 23, 2003 6:42 am    Post subject: Reply with quote

this issue was discussed some time ago on the gallery forums, and i can't recall off the top of my head what the best solution was. i'm not too sure why having it set to 0 will give you the error... Confused
Back to top
Offline View user's profile Send private message Visit poster's website
yourtoby

Novice
Novice


Joined: Aug 01, 2003
Posts: 21

PostPosted: Sat Aug 23, 2003 10:26 am    Post subject: Reply with quote

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