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:
/includes/Cache/Lite/Function.php
(this solves the Reference instead of value-problem)
/includes/vcard.class.php
(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:
Code:
if(!function_exists(quoted_printable_encode))
In Function.php I added a this line twice:
Code:
$arguments = $this->fixCalls($arguments);
The new function (fixCalls) is added at the end of the file.
- 116 Users Found This Useful
Related Articles
Tiki Wiki: Notice: Only variable references should be returned by reference
You can find the latest version of ADODB here. To modify the function to not return a...
osCommerce - This is a potential security risk - please set the right user permissions on this file
This error is caused when the /includes/configure.php is world writable. To correct this, log...
phpBB: Switching template to default theme
To change your phpBB theme back to the default which may be necessary when upgrading, log into...
How to reset the admin password in Drupal
To change the administrative password for your current Drupal installation you should:1. Go to...
Joomla Strict Standards: Declaration of JParameter::loadSetupFile() should be compatible with that of JRegistry::loadSetupFile()
For this particular error we have found a work around which works until Joomla corrects their...
