| Author |
Message |
switch
Novice


Joined: Jul 09, 2003 Posts: 23
|
Posted: Thu Jul 31, 2003 10:19 pm Post subject: Most Popular/viewed Picture |
|
|
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 |
|
|
AdBot
|
| Post subject: Most Popular/viewed Picture |
|
|
|
|
|
| Back to top |
|
 |
nukestud
Beginner


Joined: Apr 13, 2003 Posts: 13
|
Posted: Fri Aug 01, 2003 1:17 am Post subject: Re: Most Popular/viewed Picture |
|
|
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 |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Fri Aug 01, 2003 2:12 am Post subject: Re: Most Popular/viewed Picture |
|
|
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 |
|
|
slackbladder
Moderator


Joined: Mar 29, 2003 Posts: 1038 Location: Cambs,UK
|
Posted: Fri Aug 01, 2003 2:52 am Post subject: |
|
|
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)
 |
|
| Back to top |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
Posted: Fri Aug 01, 2003 7:31 am Post subject: |
|
|
hmm....actually, you can delete that line altogether i had it in there as a debug check and must have forgotten to remove it  _________________
 |
|
| Back to top |
|
|
switch
Novice


Joined: Jul 09, 2003 Posts: 23
|
Posted: Fri Aug 01, 2003 9:39 am Post subject: Re: Most Popular/viewed Picture |
|
|
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 |
|
|
dari
Site Admin


Joined: Mar 03, 2003 Posts: 6284 Location: Washington Township, NJ, USA
|
|
| Back to top |
|
|
switch
Novice


Joined: Jul 09, 2003 Posts: 23
|
Posted: Fri Aug 01, 2003 12:02 pm Post subject: Re: Most Popular/viewed Picture |
|
|
that worked. thanks dari  |
|
| Back to top |
|
|
nukestud
Beginner


Joined: Apr 13, 2003 Posts: 13
|
Posted: Fri Aug 01, 2003 10:47 pm Post subject: |
|
|
Awesome!! Nice one, might wanto remove that line from the downloadable version  |
|
| Back to top |
|
|
nukestud
Beginner


Joined: Apr 13, 2003 Posts: 13
|
Posted: Sat Aug 02, 2003 12:25 am Post subject: |
|
|
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 |
|
|
|
|
|
|
|