服务报价 | 域名主机 | 网络营销 | 软件工具| [加入收藏]
 热线电话: #
当前位置: 主页 > php教程 > prestashop教程 >

解决PrestaShop出现白屏提示

时间:2016-02-07 10:01来源:未知 作者:最模板 点击:
PrestaShop 访问的时候出现白屏 提示服务器错误。 查看错误日志: [Thu Nov 12 11:21:03.773250 2015] [:error] [pid 28913] [client 70.88.214.177:57285] PHP Fatal error: Call to undefined function mcrypt_decrypt() in /home/
PrestaShop 访问的时候出现白屏

提示服务器错误。

查看错误日志:

[Thu Nov 12 11:21:03.773250 2015] [:error] [pid 28913] [client 70.88.214.177:57285] PHP Fatal error:  Call to undefined function mcrypt_decrypt() in /home/vhosts/zuimoban/httpdocs/shop/classes/Rijndael.php on line 70

提示函数:mcrypt_decrypt() 不存在。
 

这是因为你的 PHP 需要安装 mcrypt 插件。

在 CentOS 下运行下面的命令:yum install php-mcrypt*

 

服务器输出如下:

[root@ovh1 logs]# yum install php-mcrypt*
Loaded plugins: fastestmirror
base | 3.6 kB 00:00:00 
epel/x86_64/metalink | 13 kB 00:00:00 
epel | 4.3 kB 00:00:00 
extras | 3.4 kB 00:00:00 
updates | 3.4 kB 00:00:00 
(1/3): epel/x86_64/updateinfo | 382 kB 00:00:00 
(2/3): extras/7/x86_64/primary_db | 116 kB 00:00:00 
(3/3): epel/x86_64/primary_db | 3.6 MB 00:00:00 
Loading mirror speeds from cached hostfile
* base: centos.bhs.mirrors.ovh.net
* epel: mirror.symnds.com
* extras: centos.bhs.mirrors.ovh.net
* updates: centos.bhs.mirrors.ovh.net
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.x86_64 0:5.4.16-3.el7 will be installed
--> Processing Dependency: libmcrypt.so.4()(64bit) for package: php-mcrypt-5.4.16-3.el7.x86_64
--> Running transaction check
---> Package libmcrypt.x86_64 0:2.5.8-13.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

============================================================================================================================================================================================================
Package Arch Version Repository Size
============================================================================================================================================================================================================
Installing:
php-mcrypt x86_64 5.4.16-3.el7 epel 20 k
Installing for dependencies:
libmcrypt x86_64 2.5.8-13.el7 epel 99 k

Transaction Summary
============================================================================================================================================================================================================
Install 1 Package (+1 Dependent package)

Total download size: 119 k
Installed size: 331 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): libmcrypt-2.5.8-13.el7.x86_64.rpm | 99 kB 00:00:00 
(2/2): php-mcrypt-5.4.16-3.el7.x86_64.rpm | 20 kB 00:00:00 
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 252 kB/s | 119 kB 00:00:00 
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : libmcrypt-2.5.8-13.el7.x86_64 1/2 
Installing : php-mcrypt-5.4.16-3.el7.x86_64 2/2 
Verifying : libmcrypt-2.5.8-13.el7.x86_64 1/2 
Verifying : php-mcrypt-5.4.16-3.el7.x86_64 2/2

Installed:
php-mcrypt.x86_64 0:5.4.16-3.el7

Dependency Installed:
libmcrypt.x86_64 0:2.5.8-13.el7

Complete!
[root@ovh1 logs]#

 

然后重启服务器,问题应该就能解决了。

(责任编辑:最模板)
顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
栏目列表
热点内容