| Author |
Message |
GrayWolf
Beginner


Joined: Jul 19, 2003 Posts: 6
|
Posted: Sun Jul 20, 2003 3:24 pm Post subject: I give up...HELP! Can't get random pic block to work |
|
|
I'm running phpnuke 6.8 with gallery version 1.3.4
I've had several errors with the includes but have managed to get them to go away (notice, I said go away, not sure if it's fixed)
Now I have one finial problem...I keep getting the following error
Fatal error: Call to undefined function: get_random_photo_id() in /home/wolfgrow/public_html/blocks/block-random.php on line 50
if I change to hourly photo I get this...
Fatal error: Call to undefined function: hourly_photo() in /home/wolfgrow/public_html/blocks/block-random.php on line 47
Please help, I'm lost and at the end of my knowledge..
Thanks,
Gray |
|
| Back to top |
|
|
AdBot
|
| Post subject: I give up...HELP! Can't get random pic block to work |
|
|
|
|
|
| Back to top |
|
 |
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sun Jul 20, 2003 3:37 pm Post subject: Re: I give up...HELP! Can't get random pic block to work |
|
|
| those funtions are located in the random_support.php file. that file should be in your *gallery* directory, not in your blocks directory: Code: › $GALLERY_BASEDIR = "/home/httpd/htdocs/modules/gallery/";
require_once($GALLERY_BASEDIR . "random_support.php");
make sure those are correct, and that you've got the random_support.php file in the gallery directory |
|
| Back to top |
|
|
GrayWolf
Beginner


Joined: Jul 19, 2003 Posts: 6
|
Posted: Sun Jul 20, 2003 3:48 pm Post subject: Re: I give up...HELP! Can't get random pic block to work |
|
|
dari wrote: › those funtions are located in the random_support.php file. that file should be in your *gallery* directory, not in your blocks directory: Code: › $GALLERY_BASEDIR = "/home/httpd/htdocs/modules/gallery/";
require_once($GALLERY_BASEDIR . "random_support.php");
make sure those are correct, and that you've got the random_support.php file in the gallery directory
That's set, my first two errors were about the diretory settings you are talking about...
$GALLERY_BASEDIR = "http://www.wolfgrowls.com/modules/gallery/";
define(ALBUM_BASEADDR, "http://www.wolfgrowls.com/albums/");
define(SERVER_ADDR, "http://www.wolfgrowls.com/");
require_once($GALLERY_BASEDIR . "init.php");
require_once($GALLERY_BASEDIR . "random_support.php");
This was the only way I didn't get errors saying that no such file found.
This is what I have in the random_support.php
$GALLERY_BASEDIR = "/home/wolfgrow/public_html/modules/gallery/";
require_once($GALLERY_BASEDIR . "init.php");
Last edited by GrayWolf on Sun Jul 20, 2003 3:52 pm; edited 1 time in total |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sun Jul 20, 2003 3:51 pm Post subject: Re: I give up...HELP! Can't get random pic block to work |
|
|
you gallery base directory is incorrect. it should be something along the lines of:
/home/wolfgrow/public_html/modules/galllery/ |
|
| Back to top |
|
|
GrayWolf
Beginner


Joined: Jul 19, 2003 Posts: 6
|
Posted: Sun Jul 20, 2003 4:01 pm Post subject: Re: I give up...HELP! Can't get random pic block to work |
|
|
dari wrote: › you gallery base directory is incorrect. it should be something along the lines of:
/home/wolfgrow/public_html/modules/galllery/
Ok..changed gallery base directory and got the first errors back..
Warning: main(/home/wolfgrow/public_html/modules/galllery/init.php) [function.main]: failed to create stream: No such file or directory in /home/wolfgrow/public_html/blocks/block-random.php on line 29
Fatal error: main() [function.main]: Failed opening required '/home/wolfgrow/public_html/modules/galllery/init.php' (include_path='') in /home/wolfgrow/public_html/blocks/block-random.php on line 29
following are the settings in block_random and random_support
block_random.php
Code: › $GALLERY_BASEDIR = "/home/wolfgrow/public_html/modules/galllery/";
define(ALBUM_BASEADDR, "http://www.wolfgrowls.com/albums/");
define(SERVER_ADDR, "http://www.wolfgrowls.com/");
require_once($GALLERY_BASEDIR . "init.php");
require_once($GALLERY_BASEDIR . "random_support.php");
random_support.php
Code: › $GALLERY_BASEDIR = "/home/wolfgrow/public_html/modules/galllery/";
require_once($GALLERY_BASEDIR . "init.php");
thanks for the help, I know I'm missing something very obvious..just having one of those days
Last edited by GrayWolf on Sun Jul 20, 2003 4:08 pm; edited 1 time in total |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sun Jul 20, 2003 4:02 pm Post subject: |
|
|
sorry, looks like i had an extra "l" in the "gallery" in my post:
/home/wolfgrow/public_html/modules/gallery/ |
|
| Back to top |
|
|
GrayWolf
Beginner


Joined: Jul 19, 2003 Posts: 6
|
|
| Back to top |
|
|
GrayWolf
Beginner


Joined: Jul 19, 2003 Posts: 6
|
Posted: Sun Jul 20, 2003 4:20 pm Post subject: |
|
|
fixed the session error...from another post
still getting the fs_unix.php and random_support.php down
errors |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sun Jul 20, 2003 5:13 pm Post subject: Re: I give up...HELP! Can't get random pic block to work |
|
|
| can you copy and paste the errors here for me to look at? |
|
| Back to top |
|
|
GrayWolf
Beginner


Joined: Jul 19, 2003 Posts: 6
|
Posted: Sun Jul 20, 2003 5:40 pm Post subject: Re: I give up...HELP! Can't get random pic block to work |
|
|
dari wrote: › can you copy and paste the errors here for me to look at?
Warning: fopen(/home/wolfgrow/public_html/albums/block-random.cache) [function.fopen]: failed to create stream: No such file or directory in /home/wolfgrow/public_html/modules/gallery/platform/fs_unix.php on line 53
Warning: Invalid argument supplied for foreach() in /home/wolfgrow/public_html/modules/gallery/random_support.php on line 230
Warning: copy(/home/wolfgrow/public_html/albums//.thumb.jpg) [function.copy]: failed to create stream: No such file or directory in /home/wolfgrow/public_html/modules/gallery/platform/fs_unix.php on line 24 |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6287 Location: Washington Township, NJ, USA
|
Posted: Sun Jul 20, 2003 6:51 pm Post subject: Re: I give up...HELP! Can't get random pic block to work |
|
|
hmm...go into your albums directory (make sure that directory is owned by the webserver user, usually apache), and type:
touch block-random.cache
there are other threads on this forum with similar errors, do a search and see what works for ya. |
|
| Back to top |
|
|
|
|
|
|
|