Prestashop 1.7 白页

问题描述

由于 OVH 崩溃,我必须将我的 prestashop 1.7 迁移到另一台服务器。

但我在后台前台都有空白页。 调试模式下无错误显示

PHP 版本:7.1(带有 plesk 的 apache 服务器)

有什么想法吗?

警告:

mod_fcgid: stderr: PHP Warning: include(): Failed opening '/var/www/vhosts/xxxxx.be/httpdocs/vendor/composer/../psr/log/Psr/Log/LogLevel.PHP' for包含(include_path='/var/www/vhosts/xxxxx.be/httpdocs/tools/htmlpurifier/standalone:/var/www/vhosts/xxxxx.be/httpdocs/vendor/pear/pear_exception:/var/www/vhosts/ xxxxx.be/httpdocs/vendor/pear/console_getopt:/var/www/vhosts/xxxxx.be/httpdocs/vendor/pear/pear-core-minimal/src:/var/www/vhosts/xxxxx.be/httpdocs/ vendor/pear/archive_tar:.:/opt/plesk/PHP/7.1/share/pear') 在 /var/www/vhosts/xxxxx.be/httpdocs/vendor/composer/ClassLoader.PHP 在线 444

mod_fcgid: stderr: PHP Fatal error: Class 'Psr\Log\LogLevel' not found in /var/www/vhosts/xxxxx.be/httpdocs/vendor/symfony/symfony/src/Symfony/Component/Debug/Debug .PHP 第 56 行

mod_fcgid: stderr: PHP Warning: include(/var/www/vhosts/xxxxx.be/httpdocs/vendor/composer/../psr/log/Psr/Log/LogLevel.PHP): 无法打开流:第 444 行的 /var/www/vhosts/xxxxx.be/httpdocs/vendor/composer/ClassLoader.PHP 中没有这样的文件或目录

解决方法

什么版本的 Prestashop?

错误很明显,缺少核心 Prestashop 文件:

/vendor/psr/log/Psr/Log/LogLevel.php

您必须通过从相同版本的 ZIP 中获取来恢复它。

我的两分钱:您正在恢复排除“log*”的备份,这导致包含单词 log 的文件无法备份...因此请检查其他所有内容是否完整!