2

我正在为 prestashop 朋友的安装工作。所以我从 Github 拿了它,将 setting.php 设置为我的本地主机,但我有以下错误:

Class 'Cache' not found in /Applications/MAMP/htdocs/prestashop/classes/ObjectModel.php on line 1470

但我不知道如何解决它:/

你能帮助我吗 ?

谢谢

4

4 回答 4

5

如果缓存文件夹中存在,则删除 class_index.php。

使用 .gitignore 恢复您已删除或忽略的任何缓存文件夹

此路径必须存在于 1.5.6.2 中:

tools\tcpdf\cache
tools\swift\Swift\Cache
themes\default\cache
cache
cache\smarty\cache
classes\cache
override\classes\cache
于 2014-06-29T10:47:21.937 回答
1

首先你需要知道 Prestashop 的版本,你可以在 prestashop 1.6的config/settings.inc.php中看到。

然后检查文件夹/classes/cache是否有以下文件:

Cache.php
CacheApc.php
CacheMemcache.php
CacheMemcached.php
CacheXcache.php
index.php

如果没有从本地 PS 版本的安装存档中获取它。

最后,删除缓存文件夹中的class_index.php

于 2017-09-28T20:03:48.973 回答
0

您很可能已经下载了“正在进行中”的版本 - 此类版本仅对想要为 PrestaShop 做出贡献或想要检查开发进度的人有用。

从官网下载最新稳定版并安装: http: //www.prestashop.com/en/download

于 2013-10-31T11:09:34.663 回答
0

我遇到了同样的问题,我做了以下事情:

  1. 在 /prestashop/classes 目录中恢复缓存文件夹,缓存文件夹中包含以下文件:

    Cache.php、CacheApc.php、CacheFs.php、CacheMemcache.php、CacheMemcached.php、CacheXcache.php、index.php

  2. class_index.php 在没有文件的情况下恢复了 /prestashop 目录中的缓存文件夹

解决了我的问题:D

于 2016-08-11T06:38:46.393 回答