Encrypter.php第73行中的FatalThrowableError:调用未定义的函数openssl_encrypt()

时间:2018-05-13 04:07:43

标签: laravel

我买了一个使用Laravel框架的脚本(无线网络门户),但我有以下错误:

FatalThrowableError in Encrypter.php line 73:
Call to undefined function openssl_encrypt()
in Encrypter.php line 73
at Encrypter->encrypt('msDJBCdI0hnJ95VuR6dnHo4jmZwo13AVVcb2FNEq') in 
EncryptCookies.php line 131
at EncryptCookies->encrypt(object(Response)) in EncryptCookies.php line 59
at EncryptCookies->handle(object(Request), object(Closure)) in Pipeline.php 
line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php 
line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php 
line 104
at Pipeline->then(object(Closure)) in Router.php line 644
at Router->runRouteWithinStack(object(Route), object(Request)) in Router.php 
line 618
at Router->dispatchToRoute(object(Request)) in Router.php line 596
at Router->dispatch(object(Request)) in Kernel.php line 267
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) in 
Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Debugbar.php 
line 51
at Debugbar->handle(object(Request), object(Closure)) in Pipeline.php line 
137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php 
line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in 
CheckForMaintenanceMode.php line 46
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in 
Pipeline.php line 137
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php 
line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Pipeline.php 
line 104
at Pipeline->then(object(Closure)) in Kernel.php line 149
at Kernel->sendRequestThroughRouter(object(Request)) in Kernel.php line 116
at Kernel->handle(object(Request)) in index.php line 53
in Encrypter.php line 73
at Encrypter->encrypt('a:5: 

{S:6:" _token&#34 ;; S:40:" msDJBCdI0hnJ95VuR6dnHo4jmZwo13AVVcb2FNEq&#34 ;; S:9:" _previous&#34 ;;一个:1:{S: 3:" URL&#34 ;; S:47:" http://localhost/sito2/radiowebportal/index.php&#34 ;;} S:22:" PHPDEBUGBAR_STACK_DATA&#34 ;;一个:0:{}Š :9:" _sf2_meta&#34 ;;一个:3:{S:1:" U&#34 ;; I:1526184338; S:1:" C&#34 ;; I:1526184338 ; S:1:" L&#34 ;; S:1:" 0&#34 ;;} S:6:" _flash&#34 ;;一个:2:{S:3: " old"; a:0:{} s:3:"&#34 ;; a:0:{}}}')在EncryptedStore.php第57行 在EncryptedStore-> prepareForStorage(' a:5:{s:6:" _token&#34 ;; s:40:" msDJBCdI0hnJ95VuR6dnHo4jmZwo13AVVcb2FNEq&#34 ;; s:9:" _previous&#34 ;;一个:1:{S:3:" URL&#34 ;; S:47:" http://localhost/sito2/radiowebportal/index.php&#34 ;;} S:22:" PHPDEBUGBAR_STACK_DATA&#34 ;;一个:0:{} S:9:" _sf2_meta&#34 ;;一个:3:{S:1:" U&#34 ;; I:1526184338; S:1: " C&#34 ;; I:1526184338; S:1:" L&#34 ;; S:1:" 0&#34 ;;} S:6:" _flash&# 34 ;;一个:2:{S:3:"旧&#34 ;;一个:0:{} S:3:"新&#34 ;;一个:0:{}}}&# 39;)在Store.php第262行 在Store->保存()在StartSession.php第88行 在StartSession->在Kernel.php第176行中终止(对象(请求),对象(响应)) at Kernel->在index.php第58行中终止(对象(请求),对象(响应))

1 个答案:

答案 0 :(得分:0)

首先确保你安装了openssl扩展(由deceze发现),然后:

转到php.ini文件 在extension = php_openssl.dll之前删除分号 重启你的Apache 我希望这是个问题。