laravel项目出现Non-static method Redis::hGet() cannot be called statically的解决方法
2018-07-14 10:53
567 查看
早上ytkah在配置laravel项目中出现Non-static method Redis::hGet() cannot be called statically错误提示,很显然这是redis出问题了,search了一下大概是因为PHP自带了redis拓展和predis冲突了导致的。打开composer.json看到确实有一个predis扩展,代码如下。那就好办了!有冲突就要进行调解!为了项目的完整和调试的方便,我们可以把php安装的扩展暂时先停止了,刷新laravel项目果然可以了。
"predis/predis": "~1.0",
相关文章推荐
- laravel redis 扩展冲突的问题分析:Fatal error: Non-static method Redis::keys() cannot be called statically
- Non-static method Redis::hSet() cannot be called statically
- WEB项目中出现The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in ei问题的解决方法
- netbeans运行项目时,弹出“cannot be run from folder that contains non-ASCII characters in path”的对话框 解决方法
- web项目出现import javax.servlet.……cannot be resolved的解决方法
- 【SVN】团队项目出现The project cannot be built until build path errors are resolved的解决方法与.classpath文件
- Android导入项目出现“R cannot be resolved to a variable"错误的解决方法
- (7)JSP页面中出现“String cannot be resolved to a type”的解决方法
- ECMall报Strict Standards: Non-static method Conf::get() should not be called statically解决
- 解决java web项目出现的有关问题 -cannot be read or is not a valid ZIP file
- Visual Studio 2015中创建C#的Android项目提示"Value cannot be null"的解决方法
- 关于eclipse导入工程出现“SystemProperties cannot be resolved”时的解决方法
- Android项目导入出现The type java.lang.Object cannot be resolved.问题解决办法!! .
- ecshop二次开发:Non-static method cls_image::gd_version() should not be called statically in的解决
- 出现"cannot be resolved or is not a field"莫名错误的解决方法
- 解决java web项目导入后出现的问题 ---cannot be read or is not a valid ZIP file
- Cannot make a static reference to the non-static method的解决方法
- Cannot make a static reference to the non-static method的解决方法
- Cannot make a static reference to the non-static method的解决方法 分类: JAVA 2012-09-13 12:01 8386人阅读 评论(0
- 解决VC中编译出现”SHSQ.dll This required file cannot be loaded. Please re-install Microsoft Visual C++“方法之一