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?
missing argument error
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
It looks like you ge
It looks like you get no pagination data into the plugin ?
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 29 Jan 2011, 08:45
Re: missing argument error
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 to:
Save and refresh. It fixed the error for me.
cheers
Lam
1. In phocagallery.php (in Plugins > Content), look for function onPrepareContent
2. Change
Code: Select all
function onPrepareContent( &$article, &$params, $limitstart )
Code: Select all
function onPrepareContent( &$article, &$params, $limitstart = null )
cheers
Lam
-
- Phoca Newbie
- Posts: 3
- Joined: 21 Mar 2011, 11:30
Re: missing argument error
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!!!
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!!!
- Jan
- Phoca Hero
- Posts: 48403
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: missing argument error
If you find Phoca extensions useful, please support the project