页面刷新后的Laravel异常-需要OpenSSL扩展 [英] Laravel Exception after page is refresh - OpenSSL extension is required

查看:46
本文介绍了页面刷新后的Laravel异常-需要OpenSSL扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Laravel的新手.我正在使用Windows7.我已在htdocs文件夹内的xampp内下载并创建了一个laravel项目.我未注释php.ini内的extension=php_openssl.dll语句.当我在浏览器中键入http://localhost/laravel/public/时,它将显示主页.当我刷新页面时,会出现这样的异常.

I am newbie in Laravel. I am using windows 7. I have downloaded and created a laravel project inside xampp inside htdocs folder.I have uncommented the statement,extension=php_openssl.dll inside php.ini. When I type the http://localhost/laravel/public/ in the browser, it shows the home page. When I refresh the page I get an exception like this.

当我在浏览器设置中删除cookie和会话变量时,它将显示一次主页,如果在刷新后刷新页面,则会再次显示上面的页面.

When I remove the cookies and session variables in the browser settings, it will show the home page for once and if I refresh the page after,it shows the above page again.

注意:我没有在项目中进行任何编辑.我只是尝试运行该项目

推荐答案

在php.ini文件中取消注释该行之后,您仍然必须激活它:左键单击WAMP服务器图标,然后单击 PHP-> PHP扩展,并确保已选中 php_openssl .如果没有,请单击它. WAMP将重新启动,应该可以.

After uncommenting the line in the php.ini file, you must still activate it: left click on the WAMP server icon, then PHP-> PHP extensions and ensure that php_openssl is checked. If not, click it. WAMP will restart and it should be OK.

这篇关于页面刷新后的Laravel异常-需要OpenSSL扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆