PHP exception on my games

Game development with Board Game Arena Studio
Post Reply
User avatar
Morgalad
Posts: 108
Joined: 17 January 2017, 20:46
Contact:

PHP exception on my games

Post 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?
Cheers...
Morgalad

Developer of: Incan Gold , Takara Island , Taluva and Veggie Garden
User avatar
Morgalad
Posts: 108
Joined: 17 January 2017, 20:46
Contact:

Re: PHP exception on my games

Post 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( )
	{
Cheers...
Morgalad

Developer of: Incan Gold , Takara Island , Taluva and Veggie Garden
User avatar
Een
Posts: 3854
Joined: 16 June 2010, 19:52

Re: PHP exception on my games

Post 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)
Post Reply

Return to “Developers”