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 when gallery is open.

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

Beginner
Beginner


Joined: Jun 07, 2003
Posts: 6

PostPosted: Sat Jun 07, 2003 8:55 am    Post subject: Random block errors when gallery is open. Reply with quote

I get a error msg, above the block, with no photo chosen in the block when the gallery is opened. I have the block on the left side and the gallery opens in the center.

the error is

Warning: fopen("/block-random.cache", "r") - No such file or directory in /home/*******/public_html/BlackNova/html/modules/gallery/platform/fs_unix.php on line 53

Warning: Invalid argument supplied for foreach() in /home/*******/public_html/BlackNova/html/modules/gallery/random_support.php on line 230


I had recived this same error all the time but I hand created a block-random.cach and changed the session_var to $session as was suggested in another post.

any help in getting this to work would be most appreciated!
Thanks in advance.
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Random block errors when gallery is open.  

Back to top
saw_duuhst

Beginner
Beginner


Joined: Jun 07, 2003
Posts: 6

PostPosted: Sat Jun 07, 2003 3:11 pm    Post subject: Fixed broke again! Reply with quote

Ok after searching around some I found a post from another user that had the same problem, I followed the fix action that was given I.E. changing cache from 0 to 1. Now the pic works in the gallery as its supposed to!

but now I get another error msg

Warning: fopen("/block-random.cache", "w") - Permission denied in /home/*******/public_html/BlackNova/html/modules/gallery/platform/fs_unix.php on line 53
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: Sat Jun 07, 2003 7:44 pm    Post subject: Reply with quote

hmmm...sounds like you don't have the file in a directory writeable by the webserver. make sure you chmod 0777 your albums directory.
Back to top
Offline View user's profile Send private message Visit poster's website
saw_duuhst

Beginner
Beginner


Joined: Jun 07, 2003
Posts: 6

PostPosted: Sat Jun 07, 2003 8:06 pm    Post subject: Reply with quote

I chmod'd 0777 the .cache file the directory its in and the directory above that still same error. 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: Sun Jun 08, 2003 7:45 am    Post subject: Reply with quote

what's your website address?
what web server is being run, under what OS?
it looks like you have a rather recursive directory structure, with an additional HTML directory underneath your user's public_html directory. make sure that all your paths are properly specified.
Back to top
Offline View user's profile Send private message Visit poster's website
saw_duuhst

Beginner
Beginner


Joined: Jun 07, 2003
Posts: 6

PostPosted: Sun Jun 08, 2003 3:19 pm    Post subject: Reply with quote

Website addy: http://hunterangel.net/BlackNova/html/index.php [hunterangel.net]
(you may log in as guest:guest)

"Server Information "
Server Name - Source1
Cpanel Version/Build 6.4.2-STABLE Build 75
Operating System Linux
Apache Version 1.3.27 (Unix)
Perl Version 5.006001
Installed Perl Modules Click to View
PHP Version 4.2.3
Mysql Version 4.0.12

/home/*******/public_html/BlackNova/html/modules/gallery/ (this is where all the gallery files are located)

/home/*******/public_html/BlackNova/html/images/albums/ (this is where the block-random.cache file is located, and where then the albums are sub dir's)

Thanks again for your help!
Back to top
Offline View user's profile Send private message
saw_duuhst

Beginner
Beginner


Joined: Jun 07, 2003
Posts: 6

PostPosted: Mon Jun 09, 2003 4:17 am    Post subject: Reply with quote

The error msg has changed....I didnt change anything but the error changed to this

Warning: fopen(/block-random.cache) [function.fopen]: failed to create stream: Permission denied in /home/*******/public_html/BlackNova/html/modules/gallery/platform/fs_unix.php on line 53
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 Jun 09, 2003 8:53 am    Post subject: Reply with quote

hmm..what are the top couple of lines from your block-random.php and random-support.php files? (you can PM them to me to keep path info private).

also, what version of gallery / phpnuke are you using?
Back to top
Offline View user's profile Send private message Visit poster's website
slackbladder

Moderator
Moderator


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

PostPosted: Fri Jun 13, 2003 11:12 am    Post subject: Reply with quote

saw_duuhst wrote: › the error is

Warning: fopen("/block-random.cache", "r") - No such file or directory in /home/*******/public_html/BlackNova/html/modules/gallery/platform/fs_unix.php on line 53




I fixed this problem by:

In block-random.php find:

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


Change to:

Code: ›
define(CACHE_FILE, "/path/to/gallery/albums/block-random.cache");


Worked for me! Very Happy
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: Mon Jun 16, 2003 8:29 am    Post subject: Reply with quote

hmmm..that's interesting. the $gallery variable should provide that path information to you. i've never heard of this type of problem cropping up before. glad you found a fix Smile
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 filter

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