Warning: Parameter 2 to frontpage() expected to be a referen

Joomla version 1.0 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

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.
Locked
ibernet
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Jan 30, 2010 3:08 pm

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by ibernet » Sat Jan 30, 2010 3:15 pm

Great!

plus I've had to force through
.htaccess
php_flag magic_quotes_gpc on

bb

huskyal
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Jan 30, 2010 3:59 pm

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by huskyal » Sat Jan 30, 2010 4:39 pm

Hello Kjell Hählen

Thanks for your fix fix_joomla_10x_php_530.zip.

It was just great.

stianhaugli
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Mon Jun 16, 2008 9:11 pm

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by stianhaugli » Sat Jan 30, 2010 4:57 pm

huskyal wrote: Your fix fix_joomla_10x_php_530.zip was ok, but my site is in Danish and English and after the fix, Joomfish only shows the english version.
I just applied his fix on a site with joomfish installed (english/norwegian) with no problems.
Note that i did the patch Manually as described by kjellhalen.
We're on joomla 1.0.15, joomfish V1.8.2, php 5.3.1 (one.com)
hope this info helps you solve it

huskyal
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Jan 30, 2010 3:59 pm

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by huskyal » Sat Jan 30, 2010 8:05 pm

Hi stianhaugli

Thanks for your answer. As you can see I have changed my reply, as I found
out that I today had set cache on. After changing this to off everything
was back to normal.

stianhaugli
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Mon Jun 16, 2008 9:11 pm

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by stianhaugli » Sun Jan 31, 2010 12:23 pm

huskyal wrote:Hi stianhaugli

Thanks for your answer. As you can see I have changed my reply, as I found
out that I today had set cache on. After changing this to off everything
was back to normal.
aha. yes - so did I, I turned caching off. forgot I did, and forgot to mention... sorry.
well - glad you got it solved (.. thanks to our beerdrinking friend :D)

ppollemans
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Feb 01, 2010 11:36 am

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by ppollemans » Mon Feb 01, 2010 11:48 am

Well, also many thanks from us.
First our host had big trouble due to the fact that the raid controller messed up all the disks on his server. So we were waiting for a week to get the site and data restored (which was not obvious at first) and than this happened.... But quickly solved, thanks!
Peter

yourmama
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Feb 03, 2010 12:57 pm

Re: Warning: Parameter 3 to frontpage() expected to be a referen

Post by yourmama » Wed Feb 03, 2010 1:13 pm

Kjell Hählen for president! you're the man! saved me a lot of trouble. Thank you for sharing!
Dutch User

kjellhahlen
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Thu Jan 07, 2010 10:43 pm
Location: Almere, The Netherlands
Contact:

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by kjellhahlen » Wed Feb 03, 2010 11:25 pm

Graag gedaan ;)
Kjell Hählen
KaliMera Webdesign en Solutions - http://www.kalimerawebdesign.nl

Ionox
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Mar 25, 2008 9:42 pm
Location: The Netherlands
Contact:

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by Ionox » Mon Feb 08, 2010 4:35 pm

kjellhahlen wrote:
fix_joomla_10x_php_530.zip
I wrote a fix. My version is Joomla 1.0.13 but I suppose it will not be very different for later versions.
You're absolutly awesome - thanks a lot for providing this fix. My webhost changed PHP versions over night and it killed my site. Your fix solved it - Thanks!

AXNmark
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Feb 10, 2010 9:44 am

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by AXNmark » Wed Feb 10, 2010 9:58 am

Kijk eens aan!! kjellhahlen, bedankt!!
Scheelt een hoop gedonder.

Al mn sites werkten ineens niet meer...


Way to go kjellhahlen!, Thank you very much!
Saves me a lot of trouble.

All my sites were down, until now.

obeng
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Feb 15, 2010 5:21 pm

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by obeng » Mon Feb 15, 2010 5:28 pm

Heee...... heee........
Great job!!!
Thanks a lot.

ericvb
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Feb 13, 2010 11:02 pm

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by ericvb » Mon Feb 15, 2010 9:15 pm

Like for many others, you saved me from some nights trying to update these joomla sites to the 1.5 version.
Thanks!

starla
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Feb 17, 2010 1:31 pm

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by starla » Wed Feb 17, 2010 1:44 pm

Thanks! Saved me a lot of time.

jUsr
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Feb 17, 2010 3:25 pm

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by jUsr » Wed Feb 17, 2010 3:45 pm

¡Gracias, kjellhahlen!

admakerdk
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Feb 18, 2010 3:58 pm

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by admakerdk » Thu Feb 18, 2010 4:06 pm

kjellhahlen You Are A Genuine Hero!!! :-)

newtonartistic
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Thu Apr 26, 2007 1:57 am
Location: Guelph ON Canada
Contact:

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by newtonartistic » Fri Feb 19, 2010 1:45 am

Hey thanks for this! It really got me out of a jam.
Jeremy Newton

stianhaugli
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Mon Jun 16, 2008 9:11 pm

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by stianhaugli » Fri Feb 19, 2010 9:13 am

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.
fix_joomla_1015_php_530.zip
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.
You do not have the required permissions to view the files attached to this post.

jUsr
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Feb 17, 2010 3:25 pm

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by jUsr » Sun Feb 21, 2010 5:40 pm

kjellhahlen wrote:
fix_joomla_10x_php_530.zip
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: Select all

if(!function_exists('quoted_printable_encode'))
In Function.php I added a this line twice:

Code: Select all

$arguments = $this->fixCalls($arguments);
The new function (fixCalls) is added at the end of the file.
Thanks, kjellhahlen!

Ratbite
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Jun 19, 2006 3:08 pm

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by Ratbite » Mon Feb 22, 2010 4:05 pm

I love you and I will bathe you in öl and honey!
Tack Tjell!

cartim
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Dec 25, 2009 5:54 pm

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by cartim » Tue Feb 23, 2010 3:00 pm

Thanks works great. Thanks again.

John_pove
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Feb 24, 2010 10:26 pm

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by John_pove » Wed Feb 24, 2010 10:49 pm

From Colombia, thank you kjellhahlen!!
Muchas Gracias!!

User avatar
ranawd
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Dec 26, 2006 9:40 am
Location: Bangladesh
Contact:

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by ranawd » Fri Feb 26, 2010 8:51 am

Great works! congratulation
-Rana
Regards,
Saidur Rahman (Rana)
Email: rana_0036@yahoo.com

Alexey
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Feb 26, 2010 6:08 pm

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by Alexey » Fri Feb 26, 2010 6:34 pm

Thank you very much! I'm beginner in Joomla and it helped me very!

jer_ru17
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Mar 03, 2010 8:28 am

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by jer_ru17 » Wed Mar 03, 2010 8:34 am

kjellhahlen wrote:
fix_joomla_10x_php_530.zip
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: Select all

if(!function_exists('quoted_printable_encode'))
In Function.php I added a this line twice:

Code: Select all

$arguments = $this->fixCalls($arguments);
The new function (fixCalls) is added at the end of the file.
Thanks a lot man! you save my day at the office!

senorP
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Mar 07, 2010 9:56 am

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by senorP » Sun Mar 07, 2010 10:18 am

thank you kind sir. I am happy again

euagain
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Mar 10, 2010 1:36 pm

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by euagain » Wed Mar 10, 2010 1:53 pm

Great Solution.

Thank You Very Much!

pvmegen
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Mar 10, 2010 7:44 pm

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by pvmegen » Wed Mar 10, 2010 8:02 pm

Goed werk!!!

Na het frontpage item te kopieren en te publiceren is het opgelost.!!!
Geweldig!

BRF
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Mar 15, 2010 10:45 am

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by BRF » Mon Mar 15, 2010 10:55 am

Upgraded from PHP 4.3.9 to 5.3.2 here, in preparation to start moving to Joomla 1.5.x. Doing so broke Joomla 1.0.15, with the error mentioned here. Pretty annoying and I'd expect a lot of people prepping a migration might run into this. Anyway, your fix worked for me, thanks.

silvonton
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Mar 17, 2010 9:22 am

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by silvonton » Wed Mar 17, 2010 10:05 pm

Great solution kjellhahlen! Works great for me. :)

jmro
Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Thu Mar 29, 2007 8:39 am
Location: Bogota, Col

Re: Warning: Parameter 2 to frontpage() expected to be a referen

Post by jmro » Sun Mar 21, 2010 6:47 am

Hello,
Thanks to Kjell Hählen for fix_joomla_10x_php_530.zip.


Locked

Return to “Installation - 1.0.x”