Error occurred during script startup, usually a result of inability to connect to the database:
Error triggered: Unknown system variable 'TRANSACTION'.
This was probably caused by a software bug. If these occur often try to enable error-logging via config.php, and report errors to the official devs for help.
Previously it was the same, but I think it said that my version of mysql was obsolete, they told me to change the php version to an old one and I did, now I get the error mentioned above.
This is the code of config.php to connect to the database.
class Config
{
/**
* This is the MySQL socket. It could be a network socket or a UNIX socket.
*
* eg ''
* or 'localhost'
* or ''
* or '/tmp/mysql.sock'
*
* @var string
*/
public static $database_socket='';
/**
* The user who will perform all database actions. You should
* tweak the user's permissions so they can only do the bare
* minimum they need to be able to do to update the webDiplomacy
* tables. Read the administrator documentation for more info.
*
* @var string
*/
public static $database_username='';
/**
* The password of the above user
*
* @var string
*/
public static $database_password='';
/**
* The database name
*
* @var string
*/
public static $database_name='';
/**
* This is used to salt hashes for passwords, if it gets out it's not the end of the world.
*
* *This should be long ( ~30 charecters), random, contain lots of weird charecters, etc*
* If this isn't changed or is predictable it is a serious security risk!
*
* @var string
*/
public static $salt='';
/**
* This is used for session keys and the captcha code, and can be changed from time
* to time without too much difficulty, but it's even more important that it isn't known!
*
* @var string
*/
public static $secret='';
/**
* This is used to authenticate the cron process which will run the gamemaster script.
* If anyone can run the gamemaster script there may be problems (despite the locking),
* and it can increase load. Whatever this string is it means gamemaster needs to be run
* either by an admin, or by gamemaster.php?secret=[thissecret]
*
* @var string
*/