Baikal: Array and string offset access syntax with curly braces is deprecated

Created on 15 Jun 2020  ·  7Comments  ·  Source: sabre-io/Baikal

I followed a Youtube to tutorial to install php on my webserver. Everything worked fine but now I get an error everytime reloading the website.

Baikal version: 4.9.01
I get following messages:

Backtrace

.\vendor\composer\ClassLoader.php#444: include()
.\vendor\composer\ClassLoader.php#322: Composer\Autoload\includeFile(string 'C:\Webserver\Apache24\htdocs\phpMyAdmin\vendor\composer/../../libraries/classes\Url.php')
Composer\Autoload\ClassLoader->loadClass(string 'PhpMyAdmin\Url')
.\libraries\classes\Header.php#231: spl_autoload_call(string 'PhpMyAdmin\Url')
.\libraries\classes\Header.php#282: PhpMyAdmin\Header->getJsParams()
.\libraries\classes\Header.php#214: PhpMyAdmin\Header->getJsParamsCode()
.\libraries\classes\Header.php#142: PhpMyAdmin\Header->_addDefaultScripts()
.\libraries\classes\Response.php#100: PhpMyAdmin\Header->__construct()
.\libraries\classes\Response.php#134: PhpMyAdmin\Response->__construct()
.\libraries\common.inc.php#430: PhpMyAdmin\Response::getInstance()
.\index.php#27: require_once(.\libraries\common.inc.php)

Deprecation Notice in .\libraries\classes\Url.php#251
Array and string offset access syntax with curly braces is deprecated

Backtrace

.\vendor\composer\ClassLoader.php#444: include()
.\vendor\composer\ClassLoader.php#322: Composer\Autoload\includeFile(string 'C:\Webserver\Apache24\htdocs\phpMyAdmin\vendor\composer/../../libraries/classes\Url.php')
Composer\Autoload\ClassLoader->loadClass(string 'PhpMyAdmin\Url')
.\libraries\classes\Header.php#231: spl_autoload_call(string 'PhpMyAdmin\Url')
.\libraries\classes\Header.php#282: PhpMyAdmin\Header->getJsParams()
.\libraries\classes\Header.php#214: PhpMyAdmin\Header->getJsParamsCode()
.\libraries\classes\Header.php#142: PhpMyAdmin\Header->_addDefaultScripts()
.\libraries\classes\Response.php#100: PhpMyAdmin\Header->__construct()
.\libraries\classes\Response.php#134: PhpMyAdmin\Response->__construct()
.\libraries\common.inc.php#430: PhpMyAdmin\Response::getInstance()
.\version_check.php#15: require_once(.\libraries\common.inc.php)

It may be fixed easily but I'm currently learning.
Thank you

Most helpful comment

There are 3 different things - PHP (programming language), MySQL (database) and Baikal (this software)

PHP 4.9 is VERY old
Baikal 4.9 does not exist (0.4.6 was released in 2016, then 0.5.1 on 2019-04-23 ...)
MySQL - I am not sure what MySQL version you have to have.

You are starting out, so I very much suggest that you install the latest version 0.7.1 of Baikal on a system that has a current version of PHP (7.3 or 7.4).

All 7 comments

I guess that you are using PHP 7.4?
For that, you need to use the latest 0.7.1 release of Baikal.

no Im using php 4.9.01 because the guy in the tutorial used it. Im not sure about Baikal can you explain?

Or do you mean Mysql webserver ist is still not on 8.0.

no Im using php 4.9.01

4.9.01 is not a php version. After php 4.4.9, they released php 5.0. Both of them are ancient. To use Baikal, you need at least php 7.1.

What version of Baikal do you use?

There are 3 different things - PHP (programming language), MySQL (database) and Baikal (this software)

PHP 4.9 is VERY old
Baikal 4.9 does not exist (0.4.6 was released in 2016, then 0.5.1 on 2019-04-23 ...)
MySQL - I am not sure what MySQL version you have to have.

You are starting out, so I very much suggest that you install the latest version 0.7.1 of Baikal on a system that has a current version of PHP (7.3 or 7.4).

Ok im Rally unsure about that. Would it be possible to meet you in discord or teamspeak. :-)

Okay I could fix the problem by updating php thx

Was this page helpful?
0 / 5 - 0 ratings