My (very old v. 0.95) Kirby site is not working after updating to a new PHP version. Would anyone here be able to help me to fix this? I am not sure what to do…
Fatal error: $GLOBALS can only be modified using the $GLOBALS[$name] = $value syntax in /var/www/tonehoved.dk/public_html/synsnerve.dk/kirby/lib/kirby.php on line **2046
**
/**
* Sets a global by key
*
* @param string $key The key to define
* @param mixed $value The value for the passed key
*/
static function set($key, $value=null) {
if(is_array($key)) {
// set all new values
$GLOBALS = array_merge($GLOBALS, $key);
} else {
$GLOBALS[$key] = $value;
}
}