I've seen previously asked problems concerning with this title. but my case is little bit different. I am getting this error when I first try to open localhost/phpmyadmin. it lists bunch of errors saying "Cannot use a scalar value as an array".
here are the errors
Warning in .\libraries\classes\Plugins\AuthenticationPlugin.php#226
Cannot use a scalar value as an array
Backtrace
.\libraries\classes\Plugins\AuthenticationPlugin.php#67: PhpMyAdmin\Plugins\AuthenticationPlugin->setSessionAccessTime()
.\libraries\classes\Plugins\AuthenticationPlugin.php#248: PhpMyAdmin\Plugins\AuthenticationPlugin->storeCredentials()
.\libraries\common.inc.php#349: PhpMyAdmin\Plugins\AuthenticationPlugin->authenticate()
.\index.php#26: require_once(.\libraries\common.inc.php)
Warning in .\libraries\classes\Relation.php#82
Cannot use a scalar value as an array
Backtrace
.\libraries\classes\DatabaseInterface.php#1547: PhpMyAdmin\Relation->getRelationsParam()
.\libraries\classes\DatabaseInterface.php#2482: PhpMyAdmin\DatabaseInterface->postConnectControl()
.\libraries\common.inc.php#358: PhpMyAdmin\DatabaseInterface->connect(integer 257)
.\index.php#26: require_once(.\libraries\common.inc.php)
it is not only this. but it is too many such like errors are appearing till the end of the scroll. I am afraid of not to loose my databases. Can any one tell me what mistake do I made and how to solve it please?
The D language supports scalar arrays, which correspond directly in concept and syntax with arrays in C. A scalar array is a fixed-length group of consecutive memory locations that each store a value of the same type.
A database connection error means that your phpMyAdmin tool is not able to connect to the MySQL database. Usually, this is because the MAMP phpMyAdmin configuration file has the incorrect settings.
I have tried hard reload but no luck but then i have done the task As Displayed in above image then phpmyAdmin is running as it should be.
So to do it first of all press F12
on your browser to open developer tool.
And go to Application
tab then on the Left side-bar go to Clear Storage
as in image redlined and numbered 1
And now the chart will appear for storage data and at exactly below it there will be Clear Site data
button as in image redlined and numbered 2 Just Press that button and refresh the phpmyAdmin Tab it will definitely working now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With