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  

I give up...HELP! Can't get random pic block to work

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

Beginner
Beginner


Joined: Jul 19, 2003
Posts: 6

PostPosted: Sun Jul 20, 2003 3:24 pm    Post subject: I give up...HELP! Can't get random pic block to work Reply with quote

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
Offline View user's profile Send private message
AdBot
   Post subject: I give up...HELP! Can't get random pic block to work  

Back to top
dari

Site Admin
Site Admin


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

PostPosted: Sun Jul 20, 2003 3:37 pm    Post subject: Re: I give up...HELP! Can't get random pic block to work Reply with quote

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
Offline View user's profile Send private message Visit poster's website
GrayWolf

Beginner
Beginner


Joined: Jul 19, 2003
Posts: 6

PostPosted: Sun Jul 20, 2003 3:48 pm    Post subject: Re: I give up...HELP! Can't get random pic block to work Reply with quote

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
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 Jul 20, 2003 3:51 pm    Post subject: Re: I give up...HELP! Can't get random pic block to work Reply with quote

you gallery base directory is incorrect. it should be something along the lines of:
/home/wolfgrow/public_html/modules/galllery/
Back to top
Offline View user's profile Send private message Visit poster's website
GrayWolf

Beginner
Beginner


Joined: Jul 19, 2003
Posts: 6

PostPosted: Sun Jul 20, 2003 4:01 pm    Post subject: Re: I give up...HELP! Can't get random pic block to work Reply with quote

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
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 Jul 20, 2003 4:02 pm    Post subject: Reply with quote

sorry, looks like i had an extra "l" in the "gallery" in my post:
/home/wolfgrow/public_html/modules/gallery/
Back to top
Offline View user's profile Send private message Visit poster's website
GrayWolf

Beginner
Beginner


Joined: Jul 19, 2003
Posts: 6

PostPosted: Sun Jul 20, 2003 4:13 pm    Post subject: Reply with quote

dari wrote: › sorry, looks like i had an extra "l" in the "gallery" in my post:
/home/wolfgrow/public_html/modules/gallery/


ok..fixed that..got lots of new ones now...Sad

Warning: Invalid argument supplied for foreach() in /home/wolfgrow/public_html/modules/gallery/session.php on line 55

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
Back to top
Offline View user's profile Send private message
GrayWolf

Beginner
Beginner


Joined: Jul 19, 2003
Posts: 6

PostPosted: Sun Jul 20, 2003 4:20 pm    Post subject: Reply with quote

fixed the session error...from another post

still getting the fs_unix.php and random_support.php down
errors
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 Jul 20, 2003 5:13 pm    Post subject: Re: I give up...HELP! Can't get random pic block to work Reply with quote

can you copy and paste the errors here for me to look at?
Back to top
Offline View user's profile Send private message Visit poster's website
GrayWolf

Beginner
Beginner


Joined: Jul 19, 2003
Posts: 6

PostPosted: Sun Jul 20, 2003 5:40 pm    Post subject: Re: I give up...HELP! Can't get random pic block to work Reply with quote

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
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 Jul 20, 2003 6:51 pm    Post subject: Re: I give up...HELP! Can't get random pic block to work Reply with quote

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
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