Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot use a scalar value as an array when first opening phpmyadmin from xamp

Tags:

phpmyadmin

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)

enter image description here 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?

like image 550
Abdulhakim Zeinu Avatar asked Apr 05 '19 21:04

Abdulhakim Zeinu


People also ask

What is scalar value as an array?

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.

Why does phpMyAdmin show error?

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.


1 Answers

enter image description here

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.

like image 84
Haritsinh Gohil Avatar answered Oct 14 '22 21:10

Haritsinh Gohil