Posted: Fri Oct 07, 2005 4:41 am Post subject: RandomPhoto problem
I got the following warnings when I tried the randomphoto block.
Any help you could give is very much appreciated! Thank you very much for your time.
Warning: fopen(http://jpnx.com/nuke/modules/Gallery/albums/block-random.cache): failed to open stream: HTTP wrapper does not support writeable connections. in /home/toritaiy/public_html/nuke/blocks/NG-RandomPhoto_functions.php on line 221
Warning: fwrite(): supplied argument is not a valid stream resource in /home/toritaiy/public_html/nuke/blocks/NG-RandomPhoto_functions.php on line 223
Warning: fclose(): supplied argument is not a valid stream resource in /home/toritaiy/public_html/nuke/blocks/NG-RandomPhoto_functions.php on line 225
Fatal error: Call to undefined function: isalbumname() in /home/toritaiy/public_html/nuke/blocks/NG-RandomPhoto_functions.php on line 101
________________
The CONFIG lines from the top of my block file(s):
NG-RandomPhoto_functions.php
Code: › global $gallery, $GALLERY_EMBEDDED_INSIDE, $GALLERY_EMBEDDED_INSIDE_TYPE, $GALLERY_MODULENAME, $Version_Num;
/*******************************************************************/
/* Full path to your Gallery, don't forget the trailing / */
/*******************************************************************/
$GALLERY_BASEDIR = "/home/toritaiy/public_html/nuke/modules/Gallery/";
/*******************************************************************/
/* The module name of your Gallery, default is "gallery" */
/*******************************************************************/
$GALLERY_MODULENAME = "gallery";
/*******************************************************************/
/* Time, in seconds, to refresh random photo cache. Default is */
/* 86400 (check it daily) */
/*******************************************************************/
define(CACHE_EXPIRED, 86400);
/*******************************************************************/
/* Full path to your albums directory, don't forget the trailing / */
/*******************************************************************/
define(ALBUM_DIRECTORY,"http://jpnx.com/nuke/modules/Gallery/albums/");
block-NG-RandomPhoto.php
Code: ›
$selector = "RANDOM";
/*******************************************************************/
/* Number of seconds between autorefresh of block, valid only for */
/* $selector = AUTO */
/*******************************************************************/
$auto_rate = 5;
/*******************************************************************/
/* Number of photos to display, valid only for $selector = RANDOM */
/*******************************************************************/
$number_of_pix = 10;
/*******************************************************************/
/* Show photos horozontally(1) or vertically(0). Valid only for */
/* $selector = RANDOM */
/*******************************************************************/
$horozontal = 1;
/*******************************************************************/
/* Size of thumbnail. Leave at 0 to use Gallery default */
/*******************************************************************/
$scaleTo = 0;
/*******************************************************************/
/* Scrolling photos, valid only for $selector = RANDOM */
/*******************************************************************/
$scroll = 1;
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful):
Gallery version:
Apache version:
PHP version (don't just say PHP 4, please):
Graphics Toolkit:
Operating system:
Web browser/version (if applicable):
The CONFIG lines from the top of your block file(s):
Posted: Wed Oct 12, 2005 3:23 am Post subject: Re: RandomPhoto problem
Thanks. I'm sorry to have taken up your valuable time over a careless mistake.
I corrected it. But then I got this error:
Fatal error: Call to undefined function: isalbumname() in /home/toritaiy/public_html/nuke/blocks/NG-RandomPhoto_functions.php on line 101
I must have done something wrong but I don't know what.
Here is the current (corrected) code:
Code: ›
/*******************************************************************/
/* Full path to your Gallery, don't forget the trailing / */
/*******************************************************************/
$GALLERY_BASEDIR = "/home/toritaiy/public_html/nuke/modules/Gallery/";
/*******************************************************************/
/* The module name of your Gallery, default is "gallery" */
/*******************************************************************/
$GALLERY_MODULENAME = "gallery";
/*******************************************************************/
/* Time, in seconds, to refresh random photo cache. Default is */
/* 86400 (check it daily) */
/*******************************************************************/
define(CACHE_EXPIRED, 86400);
/*******************************************************************/
/* Full path to your albums directory, don't forget the trailing / */
/*******************************************************************/
define(ALBUM_DIRECTORY,"/home/toritaiy/public_html/nuke/modules/Gallery/albums/");
Posted: Thu Jan 11, 2007 2:23 pm Post subject: Re: RandomPhoto problem
Ahhh, my first post on nukegallery.net !!!
Well, I can't figure this out. I have two sites, both running gallery1.
I installed the RandomPhoto Blocks on both sites with a center block.
Both sites load the block fine and show the thumbs, but only one site will actually load the photo when you click the link for the image.
I can see exactly what's wrong when doing a mouse over and looking at the url that will be loaded. The site that works shows " /phpnuke/ " in the path. The site that doesn't work does Not have "/phpnuke/" in the path,
clicking gives me an invalid file error. (the path is missing /phpnuke/ ).
I'm using the same paths for the gallery application and album, except for the domain obviously. Same directory file structure for both sites.
Is there a cache somewhere that needs to be deleted ??
When you do a mouseover, you'll see the path at the bottom of explorer.
ANY thoughts on why this is happening & how to fix it ???
I checked the block files over and over. I can't figure it out.
Posted: Fri Jan 12, 2007 3:49 pm Post subject: Re: RandomPhoto problem
Thanks for the reply, I've started from scratch 3 or 4 times with both sites.
Always the same results.. the Ohana site works, the No quarter site does not.
Gallery works fine as a module and as a stand alone for Both sites.
The only difference is that I tried to install the 'RandomPhotoV2SelectTest' blocks
on the No Quarter site before any of this. The blocks didn't work.
So, I installed the standard V2 blocks on both sites.
The site that previously had 'select' installed, is the site with the problem.
Do the 'select' blocks leave any leftovers in the directories when un-installed?
I just downloaded the files on Jan 10th, so I'm guessing they're the latest release.
Thanks again for the quick reply, I'll keep pecking & poking...
Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
Posted: Wed Jan 17, 2007 7:34 am Post subject: Re: RandomPhoto problem
yeah, you might want to make sure that there are no .cache files lingering in your blocks directory (i think that's where those are written to). _________________
Posted: Wed Jan 17, 2007 9:34 am Post subject: Re: RandomPhoto problem
I'll take another look Dari, thanks.
I installed the "most popular" block and it works fine.. using the same url & directories. But check this out, the last time I reinstalled the 'random blocks', the thumbs showed (no prob), and a mouseover showed the correct hyperlink with /phpnuke/ in the path!! But as soon as I hit F5 to refresh the page... BAM!!
The mouseover showed the link without /phpnuke/ in the path. wtf? he-he-he...
I'll keep going till I get it. As I mentioned, the Ohanarocks website works fine.
And btw, I want to let you know I appreciate all your work.
You've done a great Job. And I'm sure everyone here realizes that.
Posted: Fri Jan 26, 2007 5:54 pm Post subject: Re: RandomPhoto problem
Well... I reinstalled Gallery 1.5 , and added a newly named album.
Standalone and embedded in my PHPNUKE site, the Gallery works fine.
I Removed and installed the blocks, & deleted any cache files I could find.
Again the NG 'Most Popular' block works fine, but the 'Random' block doesn't.
While it was deactivated, I did a 'Show" from the admin module.
And It worked fine, no problems, had /phpnuke/ in the path, everything was great.
When I activated the block and went to the main page to view it,
the path changed back to the bad URL ( /phpnuke/ no longer exists!! ).
The thumb images load and display fine in the center block.
Anyone else have a problem with the NG-Random Photo Block on a phpnuke site?
Here's the webpage again, www.noquarterlive.com.
Feel free to read the posts I made earlier on the same subject.
The blocks work fine on the other website.
Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
Posted: Mon Jan 29, 2007 7:38 am Post subject: Re: RandomPhoto problem
hrm, you might want to search here. i seem to recall problems in the past w/ gallery 1.x not forming the correct URLs. also, can you tell me what version of the random block you're using, so i can double-check the code? _________________
Posted: Fri Feb 02, 2007 11:23 am Post subject: Re: RandomPhoto problem
The tar I downloaded says 144, but the internal file has 2.0 .
So, I'm going to say the random block is version 2.0.
The working website has Gallery v1.5.3, the non-working site is v1.5.5.p11.
I'll rename the 1.5.5 gallery directory, and upload the 1.5.3 version.
I still have a zipped version of 1.5.3 on my puter. Don't know if it will make a difference, but it's worth a try. The random block files are exactly the same except for the domain name being used in the functions config file.
If I can't get this working, can anyone point me to a possible mod??
I'm not sure where the thumbs are building the image urls, but for
some reason /phpnuke/ is being left out of the hyperlinks.
(once the block is activated. It works fine while deactivated).
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