无法登录到 Mautic 仪表板

问题描述

我目前使用的是 Mautic 3.0.0、PHP 7.3 和 MysqL 10.4.13。

我的问题是,当我进入 Mautic 登录页面,输入我的用户名和密码并点击“登录”时,网页只刷新,没有重定向到仪表板。我确定我的身份验证凭据正确无误。

我还要提一下,我最近将我的网站从 cPanel 迁移到 DirectAdmin 共享服务器,但即使在迁移后我也能成功登录

这些错误显示在日志文件中:

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 [] []

我尝试在不同的浏览器(Firefox、Chrome、MS Edge 和 IE)中登录并清除缓存和网站数据,但没有解决问题。

我应该怎么做才能解决这个问题?

解决方法

看起来您正在运行 PHP5.6。不是 PHP7.3。 “ea-php56

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

确保您的主机配置设置为使用 PHP7.3,并确保 PHP7.3 可写入正确的会话路径。 PHP5.6 可能在一个独立于 PHP7.3 的组中,看起来它正在尝试写入 5.6 路径。