Page 1 of 1

when i click on a it

Posted: 29 Jan 2008, 15:26
by fusselchen
when i click on a item on the menu of the guestbook in backend, i'm getting an error like this:
Fatal error: Only variables can be passed by reference in /var/www/........../ad
ministrator/components/com_phocaguestbook/views/phocaguestbookb/view.html.p
hp on line 107


I can fix this by inserting a temporary var, but thats not way they should go.

this happens at my systemon any version 1.0.1 up to 1.1.1.

If there is an other option to fix this problem, please let me know.

Hi the problem is th

Posted: 29 Jan 2008, 17:03
by Jan
Hi the problem is this: $uri->toString()

I don't get this error, but please remove & from row 37:

$uri =& JFactory::getURI();

to

$uri =JFactory::getURI();

We must try, where the error is, because I don't get this error...

If it helps, then there is a problem, because this is used in whole Joomla...

Please let me know...

i hadthis problem al

Posted: 29 Jan 2008, 17:36
by fusselchen
i hadthis problem also in my own modul, so i didn't make direkt assigns
like:
$this->assignRef( 'captcha_msg', JRequest::getVar( 'captcha-msg', 0, 'get', 'int' ));

i replaced it with
$t1=JRequest::getVar( 'captcha-msg', 0, 'get', 'int' );
$this->assignRef( 'captcha_msg', $t1);

this happens some different view.html.php so ireplaced it all ;)
ididn't checked toremove the &, because they arn't existing in theline that create the same error on frontend.

thanx forthe fast answer.

after i changed all

Posted: 29 Jan 2008, 17:53
by fusselchen
after i changed all that lines,all sites are displayed and working.

Only the captcha image is missing (filemissing)
the created link is http://www.fusselsoft.de/index.php?opti ... tbooki&pho casid=0f1dd747718d680ab89ea58e01047e30

ah, ok das erklÄ?¤r

Posted: 29 Jan 2008, 20:19
by fusselchen
ah, ok das erklärts.
beim update auf php5 vergessen zu aktivieren

gut

Posted: 29 Jan 2008, 21:33
by Jan
gut