missing argument error

Phoca Gallery plugins - plugins for Phoca Gallery extension
lcdservices
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 30 May 2008, 23:53

I'm getting the

Post by lcdservices »

I'm getting the following error:

Missing argument 3 for plgContentPhocaGallery:nPrepareContent() in /home/.../p
lugins/content/phocagallery.php


The line in question is:

function onPrepareContent( &$article, &$params, $limitstart )


any ideas?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

It looks like you ge

Post by Jan »

It looks like you get no pagination data into the plugin ?
If you find Phoca extensions useful, please support the project
lammetje
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 29 Jan 2011, 08:45

Re: missing argument error

Post by lammetje »

Hi there, I know this is an old post, but I ran into the same problem so I'm just posting the solution here for future reference.

1. In phocagallery.php (in Plugins > Content), look for function onPrepareContent
2. Change

Code: Select all

function onPrepareContent( &$article, &$params, $limitstart )
to:

Code: Select all

function onPrepareContent( &$article, &$params, $limitstart = null )
Save and refresh. It fixed the error for me.

cheers
Lam
walker
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 21 Mar 2011, 11:30

Re: missing argument error

Post by walker »

LOTTA THANX, lammetje!

com_phocagallery_v2.7.6
plg_content_phocagallery_2.7.2 (I have not found plugin with version 2.7.6)

I've encountered with the same problem. Your solution helped me too. Thank you very much!!!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: missing argument error

Post by Jan »

If you find Phoca extensions useful, please support the project
Post Reply