0

我目前正在使用 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)并清除缓存和网站数据,但没有解决问题。

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

4

1 回答 1

0

看起来您正在运行 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 路径。

于 2021-01-08T19:54:19.323 回答