[英]500 error after configuration page, setting up magento with substore
I have created a working magento site now I am trying to create a test environment based on the existing working site. 我已经创建了一个可工作的magento站点,现在我试图基于现有的工作站点创建一个测试环境。 It is on the same server and will be under a different sub domain.
它在同一台服务器上,并且将在不同的子域下。
workingSubDomain.domain.com/store/ newSubDomain.domain.com/store/ workingSubDomain.domain.com/store/ newSubDomain.domain.com/store/
I have kept the substore directory structure the same as the working site. 我保持子商店目录结构与工作站点相同。
I have gone through and set all of the folders to 755 with the app/etc/, media, var set to 777 我已经遍历并将所有文件夹设置为755,其中app / etc /,media,var设置为777
After I click continue on the installation wizard configuration page I recieve a 500 error. 单击安装向导配置页面上的继续后,出现500错误。
The server log file shows the following: 服务器日志文件显示以下内容:
PHP Fatal error: Call to a member function insert() on a non-object in /var/www/vhosts/domain.com/magentoFolder/subStore/app/code/core/Mage/Core/Model/Resource/Resource.php on line 133, referer: http://newSubDomain.domain.com/subStore/index.php/install/wizard/config/?config%5Blocale%5D=en_US&config%5Btimezone%5D=America%2FChicago&config%5Bcurrency%5D=USD
I have tried the following url rewrites in the .htaccess folder: 我已经尝试在.htaccess文件夹中进行以下URL重写:
RewriteEngine On
RewriteBase /clint/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /clint/index.php [L]
and 和
RewriteBase /magentoFolder/subStore
and 和
RewriteBase /magentoFolder/subStore/
and 和
RewriteBase /magentoFolder/
and 和
RewriteBase /subStore/
I have cleared out the var folder as well. 我也清除了var文件夹。
Any recommendations would be much appreciated. 任何建议将不胜感激。
Here is the code from line 133 in the resource.php file: 这是resource.php文件中第133行的代码:
* Set module version into DB
*
* @param string $resName
* @param string $version
* @return int
*/
public function setDbVersion($resName, $version)
{
$dbModuleInfo = array(
'code' => $resName,
'version' => $version,
);
if ($this->getDbVersion($resName)) {
self::$_versions[$resName] = $version;
return $this->_getWriteAdapter()->update($this->getMainTable(),
$dbModuleInfo,
array('code = ?' => $resName));
} else {
self::$_versions[$resName] = $version;
return $this->_getWriteAdapter()->insert($this->getMainTable(), $dbModuleInfo);
}
}
It is not an apache error, it's a php error. 这不是Apache错误,而是php错误。 Take a look at
/var/www/vhosts/domain.com/magentoFolder/subStore/app/code/core/Mage/Core/Model/Resource/Resource.php
, line 133 看看
/var/www/vhosts/domain.com/magentoFolder/subStore/app/code/core/Mage/Core/Model/Resource/Resource.php
第133行
Maybe it's a database connection error. 可能是数据库连接错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.