Page 1 of 1

PHP exception on my games

Posted: 18 July 2017, 14:19
by Morgalad
Since this morning and without changing anything I see when I launch my games on the studio:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; foo has a deprecated constructor in example.php on line 3

Have you updated something on the php?

Re: PHP exception on my games

Posted: 18 July 2017, 14:28
by Morgalad
after checking with Victoria_la she gave me the clue:

we need to replace the name of the constructor function.

from

Code: Select all

class veggiegarden extends Table
{
	function veggiegarden ( )
	{
to

Code: Select all

class veggiegarden extends Table
{
	function __construct( )
	{

Re: PHP exception on my games

Posted: 18 July 2017, 16:25
by Een
Yes, exactly :)
(just updated the configuration this morning following a developer report telling me that php errors weren't displayed like in the old studio)