Failed to initialize storage module: user 的解决方式
网上提供了一种解决方法就是在session_start()前把session的存储方式改为files,即加入以下一句代码
if (ini_get('session.save_handler') !== 'files')
ini_set('session.save_handler','files');
这样的作法确实有效,可是我们有时可能就是要把session保存在数据库中,这样的方法就不行了。
官网提供了一种方法。即在session_start()前加入一句代码。例如以下:
session_set_save_handler('dummy', 'dummy', 'dummy', 'dummy', 'dummy', 'dummy');
这样错误就有效的攻克了。
转载于:https://www.cnblogs.com/yfceshi/p/6767885.html
Failed to initialize storage module: user 的解决方式相关推荐
- 解决:UserWarning: Failed to initialize NumPy: module compiled against API version 0xf but this version
1.问题 import torch时报错:UserWarning: Failed to initialize NumPy: module compiled against API version 0x ...
- 使用Eclipse更新软件时出现Unable to locate secure storage module错误的解决方法
在使用代理授权访问网络更新Eclipse后,会在用户目录存储文件(user-directory)\.eclipse\org.eclipse.equinox.security\secure_storag ...
- loki报错与解决方法:failed to initialize table
笔者今天发现使用的loki报错了,启动报错退出,上网查询,没找到雷同的问题,所以只能自己查找原因解决.具体报错原因如下: level=info ts=2023-02-16T00:20:37.98210 ...
- 【Failed to initialize NVML: Driver/library version mismatch(已解决)】
[解决问题:Failed to initialize NVML: Driver/library version mismatch] 首先需要查看驱动内核版本,终端输入: cat /proc/drive ...
- ubuntu 重装 nvidia_nvidia-smi指令报错:Failed to initialize NVML: Driver解决
分配的新电脑,ubuntu18.04系统,nvidia的驱动都装好了,但是使用指令: nvidia-smi 报错: Failed to initialize NVML: Driver/library ...
- Module build failed: Error: Cannot find module ‘node-sass‘ Require stack报错解决
Module build failed: Error: Cannot find module 'node-sass' Require stack报错解决 异常信息 解决方法 设置用淘宝镜像下载 npm ...
- 解决ADB启动问题(Failed to initialize Monitor Thread: Unable to establish loopback connection)
解决ADB启动问题(Failed to initialize Monitor Thread: Unable to establish loopback connection) 参考文章: (1)解决A ...
- vue项目报错,解决Module build failed: Error: Cannot find module ‘node-sass‘ 问题
vue项目报错,解决Module build failed: Error: Cannot find module 'node-sass' 问题 参考文章: (1)vue项目报错,解决Module bu ...
- [UE4]打包运行时提示Plugin ‘‘ failed to load because module ‘‘ could not be found.缺少插件解决方法
提示错误如下 Plugin 'Dialoqueplugin' failed to load because module 'DialoguePlugin' could not be found. Pl ...
- 解决Module build failed: Error: Cannot find module ‘node-sass‘Require stack
in ./src/components/main/mainFirm.vueModule build failed: Error: Cannot find module 'node-sass' Requ ...
最新文章
- docker的学习笔记(一)-一些基本的命令的学习
- php字符串赋值给变量,JavaScript-如何将一个PHP字符串安全赋值给Javascript变量(包含引号和换行符的)...
- Apache Spark:更改架构之前必须解决的5个陷阱
- win10用计算机名访问文件夹,win10系统提示你当前无权访问该文件夹的解决方法【图文教程】...
- 《三毛。。。。》烂漫
- java多线程编程核心技术 2
- Gartner预测:2010年个人电脑销售增长两成
- matlab qam调制函数,matlab实现16QAM调制解调
- Visio Professional 2019 激活方法详解
- 前端工程师应该懂的ps基本操作
- Anaconda 更换浏览器要求输入token
- LibreOJ #6198.谢特 后缀数组+并查集+trie启发式合并
- 路由协议 RIP、IGRP、OSPF和EIGRP 的对比
- poj 1637 Sightseeing tour 混合欧拉图判定
- Apache RocketMQ QuickStart
- [Redux/Mobx] redux的数据存储和本地储存有什么区别?
- JQuery AutoComplete插件实现自动补全
- android高级UI之Paint Xfermode
- 强连通分量 圆桌骑士
- 以MacOS 13为例,VMware 16安装MacOS