Warning: Parameter 2 to frontpage() expected to be a referen
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Wed Sep 21, 2011 7:04 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thanks for this great fix, I would never found this solution myself
-
- Joomla! Fledgling
- Posts: 2
- Joined: Thu Oct 06, 2011 7:41 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
@kjellhahlen - Thank you for sharing this fix
My hosting provider emailed me about an hour before updating the server to PHP 5.3 which didn't really give me much time to research any implications to Joomla.
Many thanks again.
My hosting provider emailed me about an hour before updating the server to PHP 5.3 which didn't really give me much time to research any implications to Joomla.
Many thanks again.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Mon Mar 14, 2011 5:29 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thanks! you saved my time....great work
- TomT
- Joomla! Ace
- Posts: 1324
- Joined: Thu Aug 18, 2005 5:50 am
- Location: Amsterdam
- Contact:
Re: Warning: Parameter 2 to frontpage() expected to be a ref
5 pages of happy people, , just wanted to add my THANKS.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri Oct 14, 2011 9:11 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
A very simple solution to this problem (without any extra code):
In Function.php file line 92
replace this: $result = call_user_func_array(array($class, $method), $arguments);
with $result = call_user_func_array(array($class, $method), &$arguments);
In line 100 of the same file
replace this: $result = call_user_func_array($target, $arguments);
with : $result = call_user_func_array($target, &$arguments);
the solution is very simple put '&' before $arguments.
In Function.php file line 92
replace this: $result = call_user_func_array(array($class, $method), $arguments);
with $result = call_user_func_array(array($class, $method), &$arguments);
In line 100 of the same file
replace this: $result = call_user_func_array($target, $arguments);
with : $result = call_user_func_array($target, &$arguments);
the solution is very simple put '&' before $arguments.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sat Sep 26, 2009 1:47 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Saved my life. You rock.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri Nov 04, 2011 11:31 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
It worked ! My sites apartmani sokobanja and sokobanja apartments are alive !!! Thanks a lot!!!
- koraf
- Joomla! Fledgling
- Posts: 2
- Joined: Thu May 10, 2007 7:06 pm
- Location: Murcia
- Contact:
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thousands and thousands of thanks kjellhahlen. The fix has solved the issue in several joomla 1.0.15 sites that some of my customers don't want to migrate to updated joomla versions due the migration costs of all components and templates.
Kind regards!
Kind regards!
-
- Joomla! Fledgling
- Posts: 1
- Joined: Mon Aug 30, 2010 11:34 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
thanks worked perfectly.
Neil
Neil
-
- Joomla! Fledgling
- Posts: 1
- Joined: Mon Dec 12, 2011 4:20 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Absolute great help! Perfect fix in the minute.... thank you.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Wed Dec 14, 2011 11:39 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
I am unable to download the zip file, pls help getting same error with my client website. email [email protected]
-
- Joomla! Fledgling
- Posts: 2
- Joined: Wed Dec 14, 2011 11:39 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thanks managed to fix the problem with the fix code
-
- Joomla! Enthusiast
- Posts: 156
- Joined: Thu Oct 20, 2005 9:14 pm
- Location: Los Angeles, CA
- Contact:
Re: Warning: Parameter 2 to frontpage() expected to be a ref
kjellhahlen, thanks man! this totally saved my day and fixed the issue. I avoided trying to roll back mysql packages or trying to upgrade to latest version of Joomla.
Will be migrating into latest versioin which I believe is 1.7 or move to wordpress altogether. Thanks!
Will be migrating into latest versioin which I believe is 1.7 or move to wordpress altogether. Thanks!
www.Activo.com - Activo: Providing Magento development services for medium size Magento retailers.
extensions.Activo.com - Activo Extensions: Providing a growing collection of quality magento extensions.
extensions.Activo.com - Activo Extensions: Providing a growing collection of quality magento extensions.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sun Dec 18, 2011 1:47 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
You safed my day with this patch!!! Thank you so much!
-
- Joomla! Fledgling
- Posts: 3
- Joined: Mon Jan 31, 2011 2:08 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Guys this solution appears to be exactly what I need to get my website back up & running correctly, however I'm a complete novice so have no idea how to apply the fix, would it be possible to get some step by step instructions to sort it at all?
Thanks in advance,
Mike.
Thanks in advance,
Mike.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Mon Aug 25, 2008 10:58 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thanks so much! Muchísimas gracias!kjellhahlen wrote: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:In Function.php I added a this line twice:Code: Select all
if(!function_exists('quoted_printable_encode'))
The new function (fixCalls) is added at the end of the file.Code: Select all
$arguments = $this->fixCalls($arguments);
-
- Joomla! Fledgling
- Posts: 1
- Joined: Wed Jan 11, 2012 10:33 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Brilliant - Cheerskjellhahlen wrote: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:In Function.php I added a this line twice:Code: Select all
if(!function_exists('quoted_printable_encode'))
The new function (fixCalls) is added at the end of the file.Code: Select all
$arguments = $this->fixCalls($arguments);
-
- Joomla! Fledgling
- Posts: 1
- Joined: Tue Jan 17, 2012 12:20 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thank you very much helped
-
- Joomla! Apprentice
- Posts: 26
- Joined: Fri Dec 09, 2011 10:03 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Kjell Hählen
Thank you, as I can see you saved a lot of people including me.
:) KaliMera OliMera
Thank you, as I can see you saved a lot of people including me.
:) KaliMera OliMera
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri Jan 27, 2012 2:51 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Kjell Hählen you're the man! Thanks a lot for that fix!
-
- Joomla! Fledgling
- Posts: 1
- Joined: Thu Jul 07, 2011 9:59 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
this is an excellent solution which helped me when having to migrate one of my clients who hasn't been able to upgrade yet. thank you!
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sun Jan 29, 2012 12:20 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thank you very much!!! I've got a site that's as good as dead, but must remain online, and your fix saved it after a fifth movement to another hostkjellhahlen wrote: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:In Function.php I added a this line twice:Code: Select all
if(!function_exists('quoted_printable_encode'))
The new function (fixCalls) is added at the end of the file.Code: Select all
$arguments = $this->fixCalls($arguments);
kjellhahlen - saving Joomla 1.0.x sites since 2010 )
-
- Joomla! Fledgling
- Posts: 2
- Joined: Thu Mar 25, 2010 2:49 pm
-
- Joomla! Apprentice
- Posts: 6
- Joined: Thu Nov 16, 2006 8:08 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Works like a charm ... WOOHOO
-
- Joomla! Fledgling
- Posts: 1
- Joined: Tue Aug 12, 2008 10:50 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thanks for this solution!!! Good job
-
- Joomla! Apprentice
- Posts: 26
- Joined: Tue Mar 20, 2012 2:00 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
I use joomla 1.015 site i have litle same problem with PHP versie. When my hosting provider have upgrade PHP and Database to new version i get this message "Error establishing a database connection" and change my all text from frontpage. Backround/Admin side all text is working without any problem.. I have use same files (fix_joomla_10x_php_530.zip) but didnt get any
New version
Database : 5.5.9
PHP Version: 5.2.17
old version
Database : 5.1.41
PHP Version: 5.2.17
New version
Database : 5.5.9
PHP Version: 5.2.17
old version
Database : 5.1.41
PHP Version: 5.2.17
-
- Joomla! Fledgling
- Posts: 2
- Joined: Mon Feb 05, 2007 3:22 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thanks for your solution.stianhaugli wrote:I had a PM today from a user that couldnt figure this out, so
For your convenience:
I've attached patched files for joomla 1.0.15. Copy them to /includes/Cache/Lite/Function.php and /includes/vcard.class.php
The _old files are the originla 1.0.15 source files. Dont copy them....
Your thanks should go to kjellhahlen for providing this sollution earlier in this thread.
I had 5-6 Joomla 1.0.xx sites on server and yor patch solved all
PHP version 5.3.10
Thanks again
-
- Joomla! Apprentice
- Posts: 5
- Joined: Tue Nov 20, 2007 11:03 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Excellent!kjellhahlen wrote: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:In Function.php I added a this line twice:Code: Select all
if(!function_exists('quoted_printable_encode'))
The new function (fixCalls) is added at the end of the file.Code: Select all
$arguments = $this->fixCalls($arguments);
-
- Joomla! Fledgling
- Posts: 1
- Joined: Tue Mar 23, 2010 12:18 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thanks for the fix the .zip file did it for me!
-
- Joomla! Apprentice
- Posts: 16
- Joined: Sun Oct 22, 2006 7:26 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Kjell, I realised I had a problem on a forgotten site perhaps 1-2 years after it first happened. Your files fixed the problem. Many thanks for sharing.