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  

[RELEASE] Random Photo V2
Goto page Previous  1, 2, 3, 4, 5, 6  Next
 
Post new topic   Reply to topic    NukedGallery.net Forum Index » PHP-Nuke Integration » Blocks View previous topicPrinter friendly versionView next topic
Author Message
rioguia

Beginner
Beginner


Joined: Nov 16, 2003
Posts: 12

PostPosted: Tue Nov 02, 2004 8:11 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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
Offline View user's profile Send private message Visit poster's website
AdBot
   Post subject: Re: [RELEASE] Random Photo V2  

Back to top
dulcis

Beginner
Beginner


Joined: Nov 02, 2004
Posts: 2

PostPosted: Thu Nov 04, 2004 11:06 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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
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: Thu Nov 04, 2004 11:10 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

you didn't specify your directory properly:
/home/partyrun/public_html/modules/gallery/
Back to top
Offline View user's profile Send private message Visit poster's website
dulcis

Beginner
Beginner


Joined: Nov 02, 2004
Posts: 2

PostPosted: Thu Nov 04, 2004 11:28 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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
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: Thu Nov 04, 2004 11:30 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

please search the forums, this has been answered before.
Back to top
Offline View user's profile Send private message Visit poster's website
c4m_t

Beginner
Beginner


Joined: Nov 04, 2004
Posts: 1

PostPosted: Thu Nov 04, 2004 5:26 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

Hi there, i'm getting this error when running your code:
Fatal error: Call to undefined function: fs_file_exists() in /home/camtindall/www/www/blocks/NG-RandomPhoto_functions.php on line 192
On line 192 is
Code: › if (fs_file_exists(CACHE_FILE)) {

Using PHP Nuke 7.4 Gallery v1.4.4-pl2
Any help please?
edit: problem solved now Smile
Back to top
Offline View user's profile Send private message
rioguia

Beginner
Beginner


Joined: Nov 16, 2003
Posts: 12

PostPosted: Fri Nov 05, 2004 1:42 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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

Beginner
Beginner


Joined: Apr 23, 2003
Posts: 1

PostPosted: Tue Dec 07, 2004 12:22 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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
Offline View user's profile Send private message
GJSchaller

User
User


Joined: Aug 04, 2004
Posts: 37
Location: Valhalla, NY, USA

PostPosted: Thu Dec 09, 2004 5:07 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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

User
User


Joined: Aug 04, 2004
Posts: 37
Location: Valhalla, NY, USA

PostPosted: Thu Dec 09, 2004 5:52 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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

User
User


Joined: Aug 04, 2004
Posts: 37
Location: Valhalla, NY, USA

PostPosted: Tue Dec 14, 2004 12:32 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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

User
User


Joined: Aug 04, 2004
Posts: 37
Location: Valhalla, NY, USA

PostPosted: Fri Dec 17, 2004 5:49 pm    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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

User
User


Joined: Aug 04, 2004
Posts: 37
Location: Valhalla, NY, USA

PostPosted: Thu Dec 30, 2004 9:27 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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

Moderator
Moderator


Joined: Mar 29, 2003
Posts: 1038
Location: Cambs,UK

PostPosted: Thu Dec 30, 2004 10:54 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

Seems to also be working for ALL of your images Sad

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

User
User


Joined: Aug 04, 2004
Posts: 37
Location: Valhalla, NY, USA

PostPosted: Thu Dec 30, 2004 11:07 am    Post subject: Re: [RELEASE] Random Photo V2 Reply with quote

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
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
Goto page Previous  1, 2, 3, 4, 5, 6  Next

 
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 ServiceNeckermannBluetooth HeadsetOnline internetSEOchina factoryDressesRestaurant Locatorandroid tablet

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