Joomla Warning: Parameter 2 to frontpage()
The error: Joomla Warning: Parameter 2 to frontpage() can occur when you use an out-dated install of Joomla with newer version of PHP. As always we recommend updating your scripts but if you require a quick fix before you update your coding you may use the following:
And this was the solution posted in the Joomla forums: (Cedit goes to Kjell Hhlen.)
I wrote a fix. My version is Joomla 1.0.13 but I suppose it will not be very different for later versions.
You sould replace two files by the ones in the attachment:
(this solves the Reference instead of value-problem)
(to make the contact form work again)
If you rather add the changes by hand:
The changes to vcard.class.php are minor, look for:
In Function.php I added a this line twice:
$arguments = $this->fixCalls($arguments);
The new function (fixCalls) is added at the end of the file.
Was this article useful? Have any suggestions or improvements to the information?
To change your phpBB theme back to the default which may be necessary when upgrading, log into...
Add the line "php_flag magic_quotes_gpc off" to the .htaccess file. If one does not exist create...
From time to time you may encounter a script which has error messages you do not wish to see....
You are running an out-dated install of Joomla and we highly recommend updating it to avoid your...
This error is caused when the /includes/configure.php is world writable. To correct this, log...