| Author |
Message |
rioguia
Beginner


Joined: Nov 16, 2003 Posts: 12
|
Posted: Tue Nov 02, 2004 8:11 pm Post subject: Re: [RELEASE] Random Photo V2 |
|
|
lytespeed's question has already been answered. See
http://www.nukedgallery.net/posts786-hi ... mname.html
this is a known bug for block-NG-RandomPhotoV2 for all galleries equal to or greater than GALLERY 1.4.3.
you need to edit the NG-RandomPhoto_functions.php. Replace every instance (about five) of the function, isAlbumName with the function getAlbumName . |
|
| Back to top |
|
|
AdBot
|
| Post subject: Re: [RELEASE] Random Photo V2 |
|
|
|
|
|
| Back to top |
|
 |
dulcis
Beginner


Joined: Nov 02, 2004 Posts: 2
|
Posted: Thu Nov 04, 2004 11:06 am Post subject: Re: [RELEASE] Random Photo V2 |
|
|
Quote: › martinn,
you need to specify the ABSOLUTE path in your block config:
/home/wartwoa/public_html/modules/gallery/
I get the same error as martinn!
Fatal error: main(): Failed opening required '/home/public_html/modules/gallery/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/partyrun/public_html/blocks/NG-RandomPhoto_functions.php on line 61
I changed the ABSOLUTE path like this and still get the error?
$GALLERY_BASEDIR = "/home/public_html/modules/gallery/";
Anybody know what I'm doing wrong??[/i] |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6318 Location: Washington Township, NJ, USA
|
Posted: Thu Nov 04, 2004 11:10 am Post subject: Re: [RELEASE] Random Photo V2 |
|
|
you didn't specify your directory properly:
/home/partyrun/public_html/modules/gallery/ |
|
| Back to top |
|
|
dulcis
Beginner


Joined: Nov 02, 2004 Posts: 2
|
Posted: Thu Nov 04, 2004 11:28 am Post subject: Re: [RELEASE] Random Photo V2 |
|
|
That fixed the problem! Thanks! Although I am now getting the same error as all the others:
Fatal error: Call to undefined function: isalbumname() in
No solution yet? |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6318 Location: Washington Township, NJ, USA
|
Posted: Thu Nov 04, 2004 11:30 am Post subject: Re: [RELEASE] Random Photo V2 |
|
|
| please search the forums, this has been answered before. |
|
| Back to top |
|
|
c4m_t
Beginner


Joined: Nov 04, 2004 Posts: 1
|
|
| Back to top |
|
|
rioguia
Beginner


Joined: Nov 16, 2003 Posts: 12
|
Posted: Fri Nov 05, 2004 1:42 pm Post subject: Re: [RELEASE] Random Photo V2 |
|
|
i am having the same memory error problem noted earlier but have not found a solution. i have the latest cv release of gallery(1.5?) with the random-block functions modified (edited the NG-RandomPhoto_functions.php. file by replacing every instance of the function, "isAlbumName" with the function "getAlbumName."). My gallery is inbedded in nuke 7.3 and running on fedora core 2 / apache 2.05.
i suspect that is because my gallery has over 4000 pics (i have kids and distant family). i've tried the settings AUTO, RANDOM, etc.
the prior poster mentioned that this might be a php/apache issue but his host would not address the problem. i'd be happy to make any adjustments to my server to accomodate this probem if someone would give me some suggestions (or terms to google on)
specifc errors i get are:
i get errors in my log
/var/log/httpd/www.primary.com_errors
PHP Fatal error: Allowed memory size of 8388608
bytes exhausted (tried to allocate 20 bytes) in
/var/www/html/modules/gallery/classes/Album.php on line 783
Code: › function loadPhotosFromFile($filename) {
$tmp = unserialize(getFile($filename));
if (!is_Array($tmp)){
line 783 ---> $tmp = unserialize(getFile($filename, true));
if (!is_Array($tmp)){
return 0;
}
}
if (count($tmp) > 0) {
if (strcasecmp(get_class($tmp[0]), "albumitem")) {
/* Dunno what we unserialized .. but it
wasn't an album! */
return 0;
|
|
| Back to top |
|
|
jasperguy
Beginner


Joined: Apr 23, 2003 Posts: 1
|
Posted: Tue Dec 07, 2004 12:22 am Post subject: Re: [RELEASE] Random Photo V2 |
|
|
Hello,
Has anyone seen this one:
Fatal error: Call to a member function on a non-object in /var/www/html/phpnuke/mainfile.php on line 84
For the above error, I found out that some of the albums could not be indexed. It could the large ones, i'm not too sure. I have now used only a few albums for the random.
I'm using Nuke 7x and Gallery 1.4.4
I tweaked --> isalbumname to GetAlbumName <- successful
I tweaked --> define(CACHE_FILE, ALBUM_DIRECTORY."albums.cache"); <--successful
My random photo block is now working.
Thanks, everything is all good now. Dec 07, 2004 |
|
| Back to top |
|
|
GJSchaller
User


Joined: Aug 04, 2004 Posts: 37 Location: Valhalla, NY, USA
|
Posted: Thu Dec 09, 2004 5:07 pm Post subject: Re: [RELEASE] Random Photo V2 |
|
|
I have the block installed, and it looks good.
However, now when I try to access the Galley in any way - either thru the Block, or direclty from Nuke, I get the following message:
"Sorry, such file doesn't exist..." |
|
| Back to top |
|
|
GJSchaller
User


Joined: Aug 04, 2004 Posts: 37 Location: Valhalla, NY, USA
|
Posted: Thu Dec 09, 2004 5:52 pm Post subject: Re: [RELEASE] Random Photo V2 |
|
|
| Never mind... I forgot I capatalized the folder "Gallery" - forgot to change that in the Module Name in the config. I had it right in the path, but not in the name. It's working fine now. |
|
| Back to top |
|
|
GJSchaller
User


Joined: Aug 04, 2004 Posts: 37 Location: Valhalla, NY, USA
|
Posted: Tue Dec 14, 2004 12:32 pm Post subject: Re: [RELEASE] Random Photo V2 |
|
|
OK, the block is installed, and runs fine. But since it was installed, the site has slowed to a crawl... where load times used to be less than a second, a single page takes up to 5 seconds to load on a fast broadband connection.
I've tried deleting the block, removing all the files, and it's still slow. Anyone else running into a speed issue, or is there a setting / change I missed that I need to undo? |
|
| Back to top |
|
|
GJSchaller
User


Joined: Aug 04, 2004 Posts: 37 Location: Valhalla, NY, USA
|
Posted: Fri Dec 17, 2004 5:49 pm Post subject: Re: [RELEASE] Random Photo V2 |
|
|
*sigh* Back up to speed.
Apparently somewhere at the same time I was uploading the block, either a header file or my DB files got corrupted - they worked, but terribly slow. I wound up re-uploading all the base Nuke files, and it began working normally again. |
|
| Back to top |
|
|
GJSchaller
User


Joined: Aug 04, 2004 Posts: 37 Location: Valhalla, NY, USA
|
Posted: Thu Dec 30, 2004 9:27 am Post subject: Re: [RELEASE] Random Photo V2 |
|
|
Right, third try is the charm....
My Gallery works fine, and can be accessed normally. The Random Photo Block brings up a random image properly. But when anyone clicks on the random image to take them to the larger picture, they get the following:
Quote: › Error: Requested index [0] out of bounds [108]
Fatal error: Call to a member function on a non-object in /home/kradmin/public_html/modules/Gallery/classes/Album.php on line 1258
Changes that may have affected this:
* I recently enabled a bunch of security in NukeSentinel 2.1.3.
* PHP 4.3.10 was recently installed on my server, along with the ZEND update.
Any idea how to fix this? |
|
| Back to top |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Thu Dec 30, 2004 10:54 am Post subject: Re: [RELEASE] Random Photo V2 |
|
|
Seems to also be working for ALL of your images
Have you tried a FRESH install (or at least the CLASSES folder, as it works fine as standalone)?
Also try a different theme if you can (may be conflict in code) |
|
| Back to top |
|
|
GJSchaller
User


Joined: Aug 04, 2004 Posts: 37 Location: Valhalla, NY, USA
|
Posted: Thu Dec 30, 2004 11:07 am Post subject: Re: [RELEASE] Random Photo V2 |
|
|
I only have the one theme - we've got it restricted to keep the feel of the site the way we'd like it.
Whoops - I hadn't realized it failed for the images in the Gallery, too... I'm doing a re-install now. Will let you know if it works. |
|
| Back to top |
|
|
|
|
|
|
|