“Warning: Missing argument 3″ error after restoring joomla site with kickstart
joomla!Published October 11, 2009 at 9:13 am No CommentsI used joomlapack/kickstart to download my live site to localhost. After I was done, I was first greeted by a blank page. To resolve this, I first turned on Error reporting > Maximum inĀ Site configuration >Server. This then showed me the errors after refreshing the homepage. Error was “Undefined index: class in D:\wamp\www\modules\mod_superfishmenu\tmpl\default.php on line 36″. A forum post showed how to update this file to make the site work again. After that I was up and running, except some unfriendly errors in my module locations, all starting with “Warning: Missing argument 3 for…”. Another forum post to the rescue. Solution was to change some code in the affected files.
function onPrepareContent( &$article, &$params, $limitstart )
Replace it with,
function onPrepareContent( &$article, &$params, $limitstart = null )
or
function onPrepareContent( &$article, &$params)
Did the trick, thought I would take note of the solutions for my own sanity since I will probably do similar backup/restore actions in the future.

