Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
414 views
in Technique[技术] by (71.8m points)

php - Cannot login to Mautic Dashboard

I am currently using Mautic 3.0.0, PHP 7.3 and MySQL 10.4.13.

My problem is that when I go to the Mautic login page, enter my username and password and click on “login”, the webpage only refreshes and there isn’t a redirection to the Dashboard. I am sure that my authentication credentials are correct.

I should also mention that I recently migrated my website from a cPanel to a DirectAdmin shared server, but I was able to login successfully even after the migration.

These errors are showing in the log file:

mautic.WARNING: PHP Warning - SessionHandler::read(): open(/var/cpanel/php/sessions/ea-php56/sess_…, O_RDWR) failed: No such file or directory (2) - in file ~/mautic/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 48 {“sessionId”:"…"} []

mautic.WARNING: PHP Warning - SessionHandler::write(): open(/var/cpanel/php/sessions/ea-php56/sess_…, O_RDWR) failed: No such file or directory (2) - in file ~/mautic/vendor/symfony/http-foundation/Session/Storage/Handler/StrictSessionHandler.php - at line 64 [] []

mautic.WARNING: PHP Warning - session_write_close(): Failed to write session data with “SymfonyComponentHttpFoundationSessionStorageHandlerStrictSessionHandler” handler - in file ~/mautic/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php - at line 268 [] []

I tried to login in different browsers (Firefox, Chrome, MS Edge and IE) and cleared the cache and website’s data, but it didn't fix the issue.

What should I do to have this fixed?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

It looks like you are running PHP5.6. Not PHP7.3. "ea-php56"

/var/cpanel/php/sessions/ea-php56/sess_…, O_RDWR

Make sure your host configuration is set to use PHP7.3 and make sure the correct sessions path is writeable by PHP7.3. PHP5.6 may be in a group separate from PHP7.3 and it looks like it's trying to write to 5.6 path.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...