Upgrade Joomla 1.5 to Joomla 1.6

Warning: Missing argument 3 for plgContentRokbox::onPrepareContent()

Are you getting any such error,

Warning: Missing argument 3 for plgContentplg_iframe::onPrepareContent() in /home/users/public_html/**mysite.com**/plugins/content/plg_iframe.php on line 57

Warning: Missing argument 3 for mb_videobot() in /home/users/public_html/**mysite.com**/plugins/content/azvideobot.php on line 8

Warning: Missing argument 3 for plgContenteventDirections::onPrepareContent() in /home/users/public_html/**mysite.com**/plugins/content/eventdirections.php on line 343

Warning: Missing argument 3 for plgContentRokbox::onPrepareContent() in /home/users/public_html/**mysite.com**/plugins/content/rokbox.php on line 26 

So, here is the solution. Just open that file and do this.

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

Replace it with,

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

or

function onPrepareContent( &$article, &$params)

Both should work. So try doing any one of them. Thats it..

Lets say, if you are getting;

 

Warning: Missing argument 3 for plgContentplg_iframe::onPrepareContent() in /home/users/public_html/**mysite.com**/plugins/content/plg_iframe.php on line 57 

Then open the /plugins/content/plg_iframe.php file .

or

If you are getting

Warning: Missing argument 3 for mb_videobot() in /home/users/public_html/**mysite.com**/plugins/content/azvideobot.php on line 8 

Then open the /plugins/content/azvideobot.php file .

or

If you are getting

Warning: Missing argument 3 for plgContenteventDirections::onPrepareContent() in /home/users/public_html/**mysite.com**/plugins/content/eventdirections.php on line 343

Then open the /plugins/content/eventdirections.php file .

or

If you are getting

Warning: Missing argument 3 for plgContentRokbox::onPrepareContent() in /home/users/public_html/**mysite.com**/plugins/content/rokbox.php on line 26

Then open the /plugins/content/rokbox.php file .

Comments

avatar zaid1980
0
 
 
I just wanna thank you for this.. you helped me alot .. alot .. alot
Name *
Email (For verification & Replies)
URL
Code   
Submit Comment
Cancel
avatar devman2k
0
 
 
Could you clarify this a bit for me please? If the warning is only Warning: Missing argument 3 for mb_videobot() in /home/users/public_html/**mysite.com**/plugins/content. And I open azvideobot. I see

$mainframe->registerEvent('onPrepareConte nt','mb_videobot');

function mb_videobot($published, & $row, & $params, $page=0 ){ ........

What needs to be changed?
Name *
Email (For verification & Replies)
URL
Code   
Submit Comment
Cancel
avatar Dennis
0
 
 
This post has saved MY DAY! Literally! After spending 3 frustrating hours I did a search on the web and here I am now...

5-minute fix solution... THANK YOU!
Name *
Email (For verification & Replies)
URL
Code   
Submit Comment
Cancel
avatar Andrew Mooers
0
 
 
Off to tinker...thank you for this!
Name *
Email (For verification & Replies)
URL
Code   
Submit Comment
Cancel
avatar Lin
0
 
 
Yay, it fixed my issue. You are my here!!
Name *
Email (For verification & Replies)
URL
Code   
Submit Comment
Cancel
avatar Lin
0
 
 
HerO, I meant haha
Name *
Email (For verification & Replies)
URL
Code   
Submit Comment
Cancel
avatar Dee
0
 
 
Thank you!!!!!!!!! you are the man!!!!!
Name *
Email (For verification & Replies)
URL
Code   
Submit Comment
Cancel
Name *
Email (For verification & Replies)
URL
Code   
Submit Comment
button_logo_portfolio
button_quote
button_testimonials

Subscribe Tutorials

Enter your email address:

Paypal Donation

Enter Amount:

Subscribe Joomla Tutorials Newsletter

Name:

Email:


Enter your email address: