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  

Error: Sorry, such file doesn't exist...

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

Beginner
Beginner


Joined: Aug 21, 2003
Posts: 1

PostPosted: Wed Aug 27, 2003 9:13 pm    Post subject: Error: Sorry, such file doesn't exist... Reply with quote

http://blueboy.wilpig.org/nuke/modules. ... _photo.php

I just installed the random image block and am having some difficulty with being able to click on the image and it opening.

When you click the image you get "Sorry, such file doesn't exist..." here is the header of block-NG-random.php

$GALLERY_BASEDIR = "/var/www/html/nuke/modules/Gallery/";
define(ALBUM_BASEADDR, "http://blueboy.wilpig.org/nuke/modules/Gallery/albums/");
define(SERVER_ADDR, "http://blueboy.wilpig.org/nuke/");
require_once($GALLERY_BASEDIR . "init.php");
require_once($GALLERY_BASEDIR . "random_support.php");

gallery works just fine if I goto http://blueboy.wilpig.org/nuke/modules/Gallery/
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version: v1.4-RC2-b3
Apache version: Apache/2.0.47
PHP version (don't just say PHP 4, please): 4.3.2
Graphics Toolkit:
Operating system: Linux
Web browser/version (if applicable): NS7.1 and IE6 SP1
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Error: Sorry, such file doesn't exist...  

Back to top
slackbladder

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Thu Aug 28, 2003 2:10 am    Post subject: Reply with quote

define(ALBUM_BASEADDR, "http://blueboy.wilpig.org/nuke/modules/Gallery/albums/");

Try using your canonical address instead?

define(ALBUM_BASEADDR, "http://gallery.wilpig.org/albums/");
or
define(ALBUM_BASEADDR, "http://gallery.wilpig.org/");
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
dari

Site Admin
Site Admin


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

PostPosted: Thu Aug 28, 2003 8:14 am    Post subject: Reply with quote

also, i neglected to fix a bug in the code (it has since been fixed and will be released soon) that asks you for the name of your gallery module. most people just leave it as "gallery" (lowercase "g"), though some change it. so, go into the random_support.php file and find the instances of:
Code: › &op=modload&name=gallery&

and replace "gallery" with whatever the name of the module is for your gallery, in you case, i'm guessing Gallery. (i think there are only 2 occurances of this, both in the random_photo function.)
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 28, 2003 8:17 am    Post subject: Reply with quote

also, one bug that i have to fix as well, in the get_random_photo_id function:
Code: ›                 $rebuild = 1;
                if (fs_file_exists(CACHE_FILE)) {
                        $stat = fs_stat(CACHE_FILE);
                        $mtime = $stat[9];
                        if (time() - $mtime < CACHE_EXPIRED) {
                        $rebuild = 1;
                        }
                }


should be:
Code: ›                 $rebuild = 0;
                if (fs_file_exists(CACHE_FILE)) {
                        $stat = fs_stat(CACHE_FILE);
                        $mtime = $stat[9];
                        if (time() - $mtime > CACHE_EXPIRED) {
                        $rebuild = 1;
                        }
                }


(changed the intial value of $rebuild to 0 and the comparison operator from less than to greater than).
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 » Gallery 1 Integration 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