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: Mon Mar 05, 2007 1:30 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thank you so much! Worked flawless on Joomla 1.0.15, PHP 5.3.19, Apache/2.2.23 on Unix.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Wed Mar 20, 2013 1:58 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
A mi tambien me ha funcionado. Muchas gracias artista!!!
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sat Mar 23, 2013 5:00 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Excellent fix man, thank you!
-
- Joomla! Fledgling
- Posts: 1
- Joined: Wed Apr 17, 2013 1:25 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Hi Guys,
I did the changes and my web site looks blank with this changes :S
Joomla version . legacy mode: 1.0 -
Php version is: PHP 5.3
Note: this path includes\Cache\Lite\Function.php does not exists in my joomla :S, I created the path and copy the file but does not work
Someone could provide me a solution?
Thanks!
Estefa
Hola
Hice los cambios y mi sitio web se ve en blanco
Mi version de joomla es: modo heredado 1.0
Version php: PHP 5.3
nota: este path (includes\Cache\Lite\Function.php) no existia en mi joomla, lo cree y coloque el archivo pero no funciona
Alguien puede ayudarme con otra solucion?
Graciass:D
Estefa
I did the changes and my web site looks blank with this changes :S
Joomla version . legacy mode: 1.0 -
Php version is: PHP 5.3
Note: this path includes\Cache\Lite\Function.php does not exists in my joomla :S, I created the path and copy the file but does not work
Someone could provide me a solution?
Thanks!
Estefa
Hola
Hice los cambios y mi sitio web se ve en blanco
Mi version de joomla es: modo heredado 1.0
Version php: PHP 5.3
nota: este path (includes\Cache\Lite\Function.php) no existia en mi joomla, lo cree y coloque el archivo pero no funciona
Alguien puede ayudarme con otra solucion?
Graciass:D
Estefa
-
- Joomla! Fledgling
- Posts: 1
- Joined: Tue May 14, 2013 7:27 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thanx, im glade i found this solution!!
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri May 17, 2013 12:15 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
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);
YOU ARE MY HERO !!!
Kjell you ROCKZ !!! My SITE WOrxx after update to PHP 5 with ur help !!!
THANK you very Much !!!
-
- Joomla! Apprentice
- Posts: 14
- Joined: Tue Sep 23, 2008 8:04 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
In one word: GREAT !!!! This saves me time and a headache.
Very glad there are people like you !
Thank you very much !:D
Very glad there are people like you !
Thank you very much !:D
-
- Joomla! Fledgling
- Posts: 2
- Joined: Sun Sep 17, 2006 11:10 am
- Location: Solihull, England
Re: Warning: Parameter 2 to frontpage() expected to be a ref
After my hosting company updated their server software (without notifying me) to PHP 5.3.25 and caused the errors, I did a search and found this thread. Your fix worked like a charm.
Many thanks kjellhahlen.
Many thanks kjellhahlen.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Mon May 27, 2013 10:35 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thanks!
Worked fine for me too!
Worked fine for me too!
-
- Joomla! Fledgling
- Posts: 1
- Joined: Wed Jul 31, 2013 5:45 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thanks sooo much this saved me A$$!!
PHP 5.3.16
PHP 5.3.16
-
- Joomla! Fledgling
- Posts: 1
- Joined: Fri Oct 21, 2005 6:41 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Great fix, thank you:-)
- Flasher
- Joomla! Enthusiast
- Posts: 100
- Joined: Mon Oct 31, 2005 6:24 pm
- Location: Sinaloa, Mexico.
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thanks a bunch kjellhahlen!!!! It Worked like a charm!!!!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! Apprentice
- Posts: 7
- Joined: Tue May 06, 2008 8:37 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Superb fix! This made my day
-
- Joomla! Enthusiast
- Posts: 110
- Joined: Sun Oct 16, 2005 12:34 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thanks for the fix. I had a couple of old Joomla sites that would be difficult to upgrade, so the fix is a great option to keep using them!
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: 2
- Joined: Tue Nov 12, 2013 8:18 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
All sorted thanks a million.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Tue Nov 12, 2013 8:18 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Sorted it perfectly for me. Haven't a clue why it worked, but thanks so much!m3ali_103 wrote: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.
-
- Joomla! Apprentice
- Posts: 6
- Joined: Mon Aug 14, 2006 11:42 pm
- Contact:
Re: Warning: Parameter 2 to frontpage() expected to be a ref
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);
Thanks! You helped me a lot.
-
- Joomla! Fledgling
- Posts: 1
- Joined: Tue Mar 11, 2014 8:05 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
just made an account so I could download and try this fix to an old site I made for a client after my host upgraded php. Thank you so much- saved me from having to rebuild the site from scratch!
-
- Joomla! Fledgling
- Posts: 1
- Joined: Mon Mar 24, 2014 9:43 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thank you!
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: Mon Apr 07, 2014 5:11 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Hi:
This is an ancient issue, but still people like me have old installations for Joomla. In my case, 1.0.15.
The solutions is OK. My site is showing again the CONTENTS.
Thank you very much and regards.
This is an ancient issue, but still people like me have old installations for Joomla. In my case, 1.0.15.
The solutions is OK. My site is showing again the CONTENTS.
Thank you very much and regards.
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 Jul 23, 2014 1:29 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
[quote="kjellhahlen"]
Thank you!!
It's perfect for my old Joomla 1.0.12!Thank you!!
-
- Joomla! Fledgling
- Posts: 1
- Joined: Sat Jun 04, 2011 12:15 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thank you very much kjellhahlen, your patch has fixed my issue also.
- j2o
- Joomla! Intern
- Posts: 63
- Joined: Wed Feb 01, 2006 10:47 am
- Location: UK
- Contact:
Re: Warning: Parameter 2 to frontpage() expected to be a ref
hi kjellhahlen,
I just want to say thanks for the fixed function.php that fixed my clients issue and the site is now working again.
Anyone still having the same error on the homepage content needs to edit the article and re-save it, that worked for me..!
I just wish my client would let me upgrade joomla on the site :-/ !
I just want to say thanks for the fixed function.php that fixed my clients issue and the site is now working again.
Anyone still having the same error on the homepage content needs to edit the article and re-save it, that worked for me..!
I just wish my client would let me upgrade joomla on the site :-/ !
-
- Joomla! Fledgling
- Posts: 1
- Joined: Wed Nov 12, 2014 2:11 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Yes man it works ! Thanks !!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 05, 2011 1:31 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
I just wanted to thank you for this fix. I just used it on my ancient Joomla installations and it got me back in business immediately. You are a life saver!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: Sat Jun 20, 2015 9:56 am
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thanks a lot for that fix of ancient version of Joomla! It worked and saved me a lot of time!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);
BTW for those people having issues, make sure you cleared the cache in joomla backend after replacing the files.
Cheers
-
- Joomla! Intern
- Posts: 71
- Joined: Fri Jun 06, 2014 10:57 am
- Location: sweden
Re: Warning: Parameter 2 to frontpage() expected to be a ref
the best fix is migrating to new version for security and features
-
- Joomla! Fledgling
- Posts: 1
- Joined: Tue Sep 22, 2015 12:19 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
Thanks kjellhahlen!
-
- Joomla! Fledgling
- Posts: 1
- Joined: Tue Feb 02, 2016 8:19 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
MY Version Joomla! 1.0.15 Stablekjellhahlen 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);
Bless you Bless you.. I have been panicking on what to do with my OLD and popular site thinking of recreating for WP and then thought of all the broken links due to the .../content/view/20/87 style links.. Years ago I tried to use something that would make them more user friendly but it never worked.. THIS FIX was a God Send.. You are MY Angel THANK YOU
-
- Joomla! Fledgling
- Posts: 1
- Joined: Wed Mar 02, 2016 7:16 pm
Re: Warning: Parameter 2 to frontpage() expected to be a ref
[quote="kjellhahlen"]
Many Thanks ! This works and it saved me time.
I wrote a fix. My version is Joomla 1.0.13 but I suppose it will not be very different for later versions.Many Thanks ! This works and it saved me time.