在新目录上设置Magento

时间:2015-03-10 03:12:25

标签: php magento error-handling

我在新目录上设置Magento商店时遇到了麻烦。我收到以下错误:

PDOException Object ( [message:protected] => SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'core_resource' already exists [string:Exception:private] => [code:protected] => 42S01 [file:protected] => /home/vipcomau/public_html/archive/lib/Varien/Db/Adapter/Pdo/Mysql.php [line:protected] => 276 [trace:Exception:private] => Array ( [0] => Array ( [file] => /home/vipcomau/public_html/archive/lib/Varien/Db/Adapter/Pdo/Mysql.php [line] => 276 [function] => query [class] => PDO [type] => -> [args] => Array ( [0] => CREATE TABLE core_resource ( 代码varchar(50) NOT NULL default '', 版本varchar(50) NOT NULL default '', PRIMARY KEY (代码) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Resource version registry' ) http://www.timepilot.com.au/archive/

要设置我遵循本指南的网站:http://www.itworld.com/article/2833094/it-management/how-to-copy-a-magento-installation-to-a-new-domain.html

所以下载文件后,重新上传到新目录,更改SQL文件中的URL并按照指示删除缓存文件夹我没有运气。

我已经更改了index_cache.php以帮助解决我遇到的另一个错误,这是我更改的代码:

<?php
define('__AITDIR__', '/home/vipcomau/public_html/archive'); 
define('__ADMINPATH__', 'admin');
define('__AITDEBUG__', 0);

if(__AITDIR__ == '-' . '/home/vipcomau/public_htm/archive') {
//__AITDIR__ = dirname(__FILE__);
define('__AITDIR__', dirname(__FILE__)); 
}
if(__ADMINPATH__ == '-' . 'admin') {
//__ADMINPATH__ = 'admin';
define('__ADMINPATH__', 'admin'); 
}

require_once(__AITDIR__ . '/lib/Aitpagecache/config.php');


// minifier m.php
if(isset($_GET['minifier'])) {
    aitMinifier();
    exit();
}

我没有PHP编码技能,我正在努力阅读错误。

0 个答案:

没有答案