php warning after C...
 
Notifications
Clear all

php warning after Combu upgrade

4 Posts
2 Users
0 Reactions
733 Views
(@gecko64)
Posts: 82
Estimable Member
Topic starter
 

We just upgraded Combu, and it's all working, but we see an error in the error log:

PHP Warning:  define() expects at least 2 parameters, 1 given in /home/wolfques/public_html/combu/lib/CB_Account.php on line 258

 

Here is the php code it points to: 

            if (define("CLEAR_PLAYER_SESSIONS") && CLEAR_PLAYER_SESSIONS === TRUE) {

                CB_Session::ClearSessions($account->Id);

            }

 

Maybe we missed something in the release notes, but what is this function, and what should we do about it? Can we change it to defined to eliminate the error?

 
Posted : 08/02/2017 4:41 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Ops... it was an oversight, it should have been "defined" and not "define", sorry I'm going to fix this for the next update.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 08/02/2017 4:43 pm
(@gecko64)
Posts: 82
Estimable Member
Topic starter
 

okay, thanks for the quick reply!

 
Posted : 08/02/2017 5:00 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Just released version 2.1.14 on this website, with fix to this and to every call to DataClass::CountRecords (mainly in admin index page and some webservices) when you have set a value for GAME_DB_PREFIX in your config.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 08/02/2017 5:06 pm
Share: