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  

random block errors

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

Beginner
Beginner


Joined: Jul 01, 2003
Posts: 4

PostPosted: Tue Jul 01, 2003 10:28 am    Post subject: random block errors Reply with quote

I get the following error when I run .../modules/Blocks/block-random.php

Code: › Warning: fopen("/home/mantog/armoniabay-www/albumsblock-random.cache", "r") - No such file or directory in /home/mantog/armoniabay-www/postnuke/html/modules/gallery/platform/fs_unix.php on line 53

Warning: Invalid argument supplied for foreach() in /home/mantog/armoniabay-www/postnuke/html/modules/gallery/random_support.php on line 230

Warning: Unable to open '/home/mantog/armoniabay-www/albums//.thumb.jpg' for reading: No such file or directory in /home/mantog/armoniabay-www/postnuke/html/modules/gallery/platform/fs_unix.php on line 24


I have read the posts but I was not able to get rid of the errors. I lost the whole day and I am almost ready to give up without having this nice feature on my site.

Unless someone can help with step by step instructions of what exactly I must do...

I use the latest postnuke and gallery files.

Thanks
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: random block errors  

Back to top
jmelcher

Beginner
Beginner


Joined: Jun 10, 2003
Posts: 7

PostPosted: Tue Jul 01, 2003 12:20 pm    Post subject: Re: random block errors Reply with quote

It looks like you're missing a "/", and blocks-random.php is looking for "/home/mantog/armoniabay-www/albumsblock-random.cache" ... notice there is no "/" between albums and the file name.

Try this...

(1) Edit your blocks-random.php file and add either a "/" at the end of the string you have for define(ALBUM_BASEADDR,

OR

(2) Add the "/" to the blocks-random.cache . In other words, make it look like below, but substitute for your own information:

Code: ›
$GALLERY_BASEDIR = "/www/j/jmelcher/htdocs/modules/Gallery/";
define(ALBUM_BASEADDR, "http://www.melcherfamily.org/modules/Gallery/albums");
define(SERVER_ADDR, "http://www.melcherfamily.org/");
require_once($GALLERY_BASEDIR . "init.php");
require_once($GALLERY_BASEDIR . "random_support.php");

define(CACHE_FILE, $gallery->app->albumDir . "/block-random.cache");


That should take care of it. If (1) doesn't work, try (2) or vice versa.
Back to top
Offline View user's profile Send private message
mantog

Beginner
Beginner


Joined: Jul 01, 2003
Posts: 4

PostPosted: Tue Jul 01, 2003 3:30 pm    Post subject: Re: random block errors Reply with quote

Thanks for the suggestion. It has taken care of previous errors. But now I am facing a new error
Code: › Warning: Unable to open '/home/mantog/armoniabay-www/albums/album17/unknown.thumb.jpg' for reading: No such file or directory in /home/mantog/armoniabay-www/postnuke/html/modules/gallery/platform/fs_unix.php on line 24


Any suggestions on that? Notice that my albums directory is not located under .../modules but on the same directory as postnuke. Could this create the problem?

Thanks
Back to top
Offline View user's profile Send private message
mantog

Beginner
Beginner


Joined: Jul 01, 2003
Posts: 4

PostPosted: Tue Jul 01, 2003 3:57 pm    Post subject: Reply with quote

Now do not get the errors when I run .../modules/Blocks/block-random.php

But still I cannot see this block in administaotion menu of postnuke. How can I install the block in postnuke?

Thanks
Back to top
Offline View user's profile Send private message
jmelcher

Beginner
Beginner


Joined: Jun 10, 2003
Posts: 7

PostPosted: Wed Jul 02, 2003 12:31 pm    Post subject: Reply with quote

Not sure about PostNuke as I use PHPNuke, but you will need to make sure "block-random.php" is located in your BLOCKS directory, then from your Admin menu, add the block. In PHPNuke, there is a place to add new blocks by selecting from a drop-down box.

Can anyone else with PostNuke answer this any better?

As for the errors you were/are getting... are the errors gone now? I think it does not matter where your albums directory is located, so long as the config.php in Gallery is pointed to the right location. You can either manually edit this file, or run through the setup procedure. I find it much easier to edit manually and then upload the edited file.
Back to top
Offline View user's profile Send private message
mantog

Beginner
Beginner


Joined: Jul 01, 2003
Posts: 4

PostPosted: Thu Jul 03, 2003 3:51 am    Post subject: Reply with quote

Thank you for the answer. I have solved the problem by installing another version of random block made specificaly for postnuke.
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: Mon Jul 07, 2003 7:39 am    Post subject: Reply with quote

sorry for the delayed reply, i was out of town and away from internet access for the 4th of July weekend. all of the files made here are for PHPNuke, as I do not have a PostNuke setup available for test. However, if there are people out there who have been able to tweak the code from this site to work with postnuke, please email me and we can make the files available here and at http://www.nukedgallery.net

thanks,
dm
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