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 “Symfony\Component\HttpFoundation\Session\Storage\Handler\StrictSessionHandler” 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?
It looks like you are running PHP5.6. Not PHP7.3. "
ea-php56"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.