警告:session_start():无法读取会话数据:用户(路径:C:\xampp\tmp)中

Ber*_*del 5 html javascript xampp joomla

我使用 joomla 3.8.5

它工作正常,但我必须重新安装 xampp,现在它给出了这个。


本机.php

        if (!session_start())
        {
            throw new RuntimeException('Failed to start the session');
        }

        // Mark ourselves as started
        $this->started = true;
    }
}
Run Code Online (Sandbox Code Playgroud)

错误

Warning: session_start(): Failed to read session data: user (path: C:\xampp\tmp) in
Run Code Online (Sandbox Code Playgroud)

C:\xampp\htdocs\recepcao\libraries\joomla\session\handler\native.php 第 260 行错误:无法启动应用程序:无法启动会话

小智 0

如果您将 Xampp 移动或重新安装到其他目​​录,可能会发生这种情况吗?如果是这样,请在您的安装中找到以下内容;C:\Xampp\mysql\bin 编辑 my.ini 在 Notepad++ ie 中更改新目录

找到C:改为D:result=D:\Xampp\mysql\bin保存my.ini并重启MySQL。应该可以做到这一点。