1
Burning
Xoops 2.3.3 and PHP 5.3
  • 2009/7/23 14:23

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

With XOOPS 2.3.3, if you upgrade your PHP version to 5.3, there are 2 messages (displayed on all pages) :

DeprecatedAssigning the return value of new by reference is deprecated in Cwamp www htdocs include common.php on line 94


Deprecated: Function set_magic_quotes_runtime() is deprecated in Cwamp www htdocs include common.php on line 21


How can we hide those messages ?

Thanks in advance
Still learning CSS and... english

2
culex
Re: Xoops 2.3.3 and PHP 5.3
  • 2009/7/23 17:34

  • culex

  • Module Developer

  • Posts: 711

  • Since: 2004/9/23


In C:\wamp\bin\php\php5.3\php.ini

change your error reporting :)
Programming is like sex:
One mistake and you have to support it for the rest of your life.

3
Burning
Re: Xoops 2.3.3 and PHP 5.3
  • 2009/7/25 20:51

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


Thanks
Still learning CSS and... english

4
wizanda
Re: Xoops 2.3.3 and PHP 5.3
  • 2009/7/25 21:44

  • wizanda

  • Home away from home

  • Posts: 1588

  • Since: 2004/3/21


On line 94 remove the & from =& it wasn't needed.
$xoops = new xos_kernel_Xoops2();

Add @set_magic_quotes_runtime() will stop it showing.

5
andrey3761
Re: Xoops 2.3.3 and PHP 5.3

UnknownAssigning the return value of new by reference is deprecated in file /header.php line 60
Unknown
Assigning the return value of new by reference is deprecated in file /class/xoopsblock.php line 464
Unknown
Assigning the return value of new by reference is deprecated in file /class/xoopsblock.php line 514
Unknown
Assigning the return value of new by reference is deprecated in file /class/theme.php line 73
Unknown
Assigning the return value of new by reference is deprecated in file /class/theme.php line 196
Unknown
Assigning the return value of new by reference is deprecated in file /class/theme.php line 248
Unknown
Assigning the return value of new by reference is deprecated in file /class/theme_blocks.php line 90


PHP 5.3.0 XOOPS 2.3.3

6
ghia
Re: Xoops 2.3.3 and PHP 5.3
  • 2009/9/7 23:01

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Change your error setting for PHP in php.ini
error_reporting  =  E_ALL & ~E_NOTICE & ~E_DEPRECATED

Login

Username:
Password:

Lost Password? Register now!

Who's Online

71 user(s) are online (33 user(s) are browsing Support Forums)


Members: 0


Guests: 71


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits