| Author |
Message |
saw_duuhst
Beginner


Joined: Jun 07, 2003 Posts: 6
|
Posted: Sat Jun 07, 2003 8:55 am Post subject: Random block errors when gallery is open. |
|
|
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 |
|
|
AdBot
|
| Post subject: Random block errors when gallery is open. |
|
|
|
|
|
| Back to top |
|
 |
saw_duuhst
Beginner


Joined: Jun 07, 2003 Posts: 6
|
Posted: Sat Jun 07, 2003 3:11 pm Post subject: Fixed broke again! |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sat Jun 07, 2003 7:44 pm Post subject: |
|
|
| 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 |
|
|
saw_duuhst
Beginner


Joined: Jun 07, 2003 Posts: 6
|
Posted: Sat Jun 07, 2003 8:06 pm Post subject: |
|
|
I chmod'd 0777 the .cache file the directory its in and the directory above that still same error.  |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sun Jun 08, 2003 7:45 am Post subject: |
|
|
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 |
|
|
saw_duuhst
Beginner


Joined: Jun 07, 2003 Posts: 6
|
Posted: Sun Jun 08, 2003 3:19 pm Post subject: |
|
|
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 |
|
|
saw_duuhst
Beginner


Joined: Jun 07, 2003 Posts: 6
|
Posted: Mon Jun 09, 2003 4:17 am Post subject: |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Jun 09, 2003 8:53 am Post subject: |
|
|
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 |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Fri Jun 13, 2003 11:12 am Post subject: |
|
|
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!  |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Mon Jun 16, 2003 8:29 am Post subject: |
|
|
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  |
|
| Back to top |
|
|
|
|
|
|
|