php 调用未定义的函数 Illuminate\Encryption\openssl_decrypt()

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/36156290/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 00:43:39  来源:igfitidea点击:

Call to undefined function Illuminate\Encryption\openssl_decrypt()

phplaravelencryptionphp-openssl

提问by Przemek Wojtas

I am using xampp and windows along with laravel, everything was working fine, but when I finished work and turned of xampp and try to open my work today morning, this is what I get:

我正在使用 xampp 和 windows 以及 laravel,一切正常,但是当我完成工作并关闭 xampp 并尝试在今天早上打开我的工作时,这就是我得到的:

FatalThrowableError in Encrypter.php line 100:
Fatal error: Call to undefined function Illuminate\Encryption\openssl_decrypt()

Encrypter.php is a standard laravel file and I have not even touched it. My extension is turned on.

Encrypter.php 是一个标准的 Laravel 文件,我什至没有接触过它。我的扩展已打开。

extension=php_openssl.dll

扩展=php_openssl.dll

What might be wrong?

可能有什么问题?

采纳答案by guyver4mk

If you have shut XAMPP down and restarted it, it may be worth running the composer installcommand again, or simply running composer updateto ensure that all dependancies are being loaded correctly.

如果您已关闭 XAMPP 并重新启动它,则可能值得composer install再次运行该命令,或者只是运行composer update以确保正确加载所有依赖项。

回答by thens

composer install

didn't fix the problem, but the following does:

没有解决问题,但以下内容:

composer update