Login Error - Cannot use a scalar value as an array

HI there, I just tried to login to the manager, and got this error:

Error: Cannot use a scalar value as an array

 

Errors:

 Error: Cannot use a scalar value as an array

 

Errors:

 /home2/site/public_html/core/src/Revolution/modUser.php:407
 MODX\Revolution\Processors\Security\Login->addSessionContexts() in /home2/site/public_html/core/src/Revolution/Processors/Security/Login.php:410
 MODX\Revolution\Processors\Security\Login->afterLogin() in /home2/site/public_html/core/src/Revolution/Processors/Security/Login.php:442
 MODX\Revolution\Processors\Security\Login->process() in /home2/site/public_html/core/src/Revolution/Processors/Processor.php:208
 MODX\Revolution\Processors\Processor->run() in /home2/site/public_html/core/src/Revolution/modX.php:1767
 MODX\Revolution\modX->runProcessor(string "MODX\Revolution\Processors\Security\Login", Array ( [login_context] => mgr [modhash] => [returnUrl] => /manager/ [username] => user.name [password] => XXXXXXX! [login] => 1 ) ) in /home2/site/public_html/manager/controllers/default/security/login.class.php:421
 SecurityLoginManagerController->handleLogin() in /home2/site/public_html/manager/controllers/default/security/login.class.php:364
 SecurityLoginManagerController->handlePost() in /home2/site/public_html/manager/controllers/default/security/login.class.php:60
 SecurityLoginManagerController->process(Array ( [login_context] => mgr [modhash] => [returnUrl] => /manager/ [username] => user.name [password] => XXXXXXX! [login] => 1 ) ) in /home2/site/public_html/core/src/Revolution/modManagerController.php:180
 MODX\Revolution\modManagerController->render() in /home2/site/public_html/core/src/Revolution/modManagerResponse.php:114
 MODX\Revolution\modManagerResponse->outputContent(Array ( ) ) in /home2/site/public_html/core/src/Revolution/modManagerRequest.php:173
 MODX\Revolution\modManagerRequest->prepareResponse() in /home2/site/public_html/core/src/Revolution/modManagerRequest.php:143
 MODX\Revolution\modManagerRequest->handleRequest() in /home2/site/public_html/manager/index.php:60

Iā€™m running the latest version of modx 3.
Iā€™ve never seen this error before!

Iā€™ve deleted the contents of core/cache - no joy.

Any ideas?

Thanks
Andy

The log information you posted seems to contain your actual password (twice). You should probably edit that!


Not sure whatā€™s causing the error though. There seem to be a problem with the session. Maybe try clearing the table with all the sessions.

1 Like

Oh blimey thank you Harry - I didnā€™t spot that!!! Edited.

Thanks - I just cleared the table ā€˜modx_sessionā€™ and Iā€™m back in. Thatā€™s a useful one to know in future - thanks!

1 Like

Is it appropriate that this error dumps the user credentials to the log file?

I donā€™t think the posted log information was from the MODX error log.
If it was from the server error log, then thereā€™s probably no way to avoid this in MODX.

But itā€™s certainly ugly to have a password in clear text in the error log.

1 Like

I thought the same! A little worrying!

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting ā€œ+ New Topicā€.