Keyword

problem event.php after upgrade PHP 5.3

  • Christophe BERTRAND
  • Christophe BERTRAND's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 10 months ago - 11 years 10 months ago #107669 by Christophe BERTRAND
problem event.php after upgrade PHP 5.3 was created by Christophe BERTRAND
Hi
I had Joomla 2.5.8 + K2 2.5.7 + PHP 5.2
I ugdraded PHP to 5.3
Since then on my modules BNR and Split Content I get warning errors saying "paramater 2 to plgK2Example onK2BeforeDisplay () expected to be a reference, value given in .... /libraries/event/event.php on line 71
I was unable to find a fix
Could someone help please
Thanks

What is weird is that :
1/ if I downgrade it back to PHP 5.2, Split Content works again,
2/ on another server for another site I have PHP 5.3 and split content is fine there !

Please Log in or Create an account to join the conversation.

  • Christophe BERTRAND
  • Christophe BERTRAND's Avatar Topic Author
  • Offline
  • Senior Member
More
11 years 10 months ago #107670 by Christophe BERTRAND
Replied by Christophe BERTRAND on topic Re: problem event.php after upgrade PHP 5.3
I finally found the solution there : forum.joomla.org/viewtopic.php?f=628&t=715408

need to in file:
/libraries/joomla/event/event.php
replace [line 71]:
return call_user_func_array ( array($this, $event), $args );
with:
return @call_user_func_array ( array($this, $event), $args );

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum