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  

Most Popular/viewed Picture

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

Novice
Novice


Joined: Jul 09, 2003
Posts: 23

PostPosted: Thu Jul 31, 2003 10:19 pm    Post subject: Most Popular/viewed Picture Reply with quote

Fatal error: Call to undefined function: numaccessiblealbums() in /home/punkrider/public_html/flipzcrew/blocks/block-mostViewed.php on line 41

anyone knows how to fix this?
Back to top
Offline View user's profile Send private message
AdBot
   Post subject: Most Popular/viewed Picture  

Back to top
nukestud

Beginner
Beginner


Joined: Apr 13, 2003
Posts: 13

PostPosted: Fri Aug 01, 2003 1:17 am    Post subject: Re: Most Popular/viewed Picture Reply with quote

I just got the exact same error just now too!

I had to delete it cause nuke would work! Any ideas gurus?
Back to top
Hidden View user's profile Send private message
slackbladder

Moderator
Moderator


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

PostPosted: Fri Aug 01, 2003 2:12 am    Post subject: Re: Most Popular/viewed Picture Reply with quote

Hi,

Find this:

Code: › $numAccess = $albumDB->numAccessibleAlbums($gallery->user);


And replace with this:

Code: › $numAccess = $albumDB->numAlbums($gallery->user);


This is a temp fix as it may not stick to the permission rules you have set for each photo. Dari will probably answer this one better.
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
slackbladder

Moderator
Moderator


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

PostPosted: Fri Aug 01, 2003 2:52 am    Post subject: Reply with quote

It appears to be a VERSION problem. I'm using 1.3.4 and I got the error on the block, however it looks like the latest VERSION 1.3.5 will not produce the error.

So options are:

1. Upgrade the 1.3.5 (recommended)
2. Hack the code as above (permissions won't work)

Rolling Eyes
Back to top
Offline View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
dari

Site Admin
Site Admin


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

PostPosted: Fri Aug 01, 2003 7:31 am    Post subject: Reply with quote

hmm....actually, you can delete that line altogether Smile i had it in there as a debug check and must have forgotten to remove it Embarassed
_________________
Back to top
Offline View user's profile Send private message Visit poster's website
switch

Novice
Novice


Joined: Jul 09, 2003
Posts: 23

PostPosted: Fri Aug 01, 2003 9:39 am    Post subject: Re: Most Popular/viewed Picture Reply with quote

Quote: › hmm....actually, you can delete that line altogether i had it in there as a debug check and must have forgotten to remove it

what line dari? line41?
Back to top
Offline View user's profile Send private message
dari

Site Admin
Site Admin


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

PostPosted: Fri Aug 01, 2003 9:42 am    Post subject: Re: Most Popular/viewed Picture Reply with quote

delete this line:
Code: › $numAccess = $albumDB->numAccessibleAlbums($gallery->user);

_________________
Back to top
Offline View user's profile Send private message Visit poster's website
switch

Novice
Novice


Joined: Jul 09, 2003
Posts: 23

PostPosted: Fri Aug 01, 2003 12:02 pm    Post subject: Re: Most Popular/viewed Picture Reply with quote

that worked. thanks dari Very Happy
Back to top
Offline View user's profile Send private message
nukestud

Beginner
Beginner


Joined: Apr 13, 2003
Posts: 13

PostPosted: Fri Aug 01, 2003 10:47 pm    Post subject: Reply with quote

Awesome!! Nice one, might wanto remove that line from the downloadable version Wink
Back to top
Hidden View user's profile Send private message
nukestud

Beginner
Beginner


Joined: Apr 13, 2003
Posts: 13

PostPosted: Sat Aug 02, 2003 12:25 am    Post subject: Reply with quote

OOPS spoke too soon lol

When you click on the image in the most viewed block I get the error:

ERROR: requested index [-1] out of bounds [25]
Fatal error: Call to a member function on a non-object in /mypath/modules/gallery/classes/Album.php on line 971


Any ideas?
Back to top
Hidden View user's profile Send private message
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: Web HostingDedicated ServersDomain NamesDomain Name RegistrationDedicated Web HostingSEO Search Engine OptimisationSEOWeb Design New YorkSEO Web DesignWeb hosting AustraliaCheap Web Design

6th year online! 2003-2009
Legal • Use of this site consitutes agreement to the Acceptable Use Policy
Hosted by Implosion WorksSourceForge.net Logo • Theme by TonicMedia