Magento:通过csv文件导入更多产品时出现内部服务器错误. [英] Magento : Internal Server Error on import more products by csv file.

查看:90
本文介绍了Magento:通过csv文件导入更多产品时出现内部服务器错误.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在通过csv文件导入更多产品时遇到内部服务器错误.

I am getting internal server error on import more products by csv file.

我有一个自定义的magento模块,该模块用于导入分组产品的关联产品,该模块基本上用于与关联产品一起创建分组产品.通过csv选项导入关联的产品.我有359条记录的简单产品csv文件.当我创建摸索产品并导入此csv文件时,我的自定义模块脚本开始运行,并在一分钟后在屏幕上显示错误消息.

I have a custom magento module which is use for import associated product of grouped product which is basically use for create grouped product with it's associated products. associated product import by csv option. I have simple products csv file which have 359 records. when i created groped product and import this csv file, my custom module script run and after some minute display error message on screen.

在这种情况下,摸索产品成功保存了229个简单产品.

in this case groped product save with 229 simple product successfully.

内部服务器错误

服务器遇到内部错误或配置错误,无法完成您的请求.

The server encountered an internal error or misconfiguration and was unable to complete your request.

请与服务器管理员联系,以告知错误发生的时间以及您可能做过的任何可能导致错误的事情.

Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

我在本地系统中检查了相同的过程,但它运行良好,并成功导入了所有简单的产品.

I checked same process in local system but i it working great and import all simple product successfully.

可能是什么问题?有人可以帮忙吗?

what could be the issue ? can anyone help ?

服务器配置有问题吗?

Is server configuration problem ?

推荐答案

您可以检查系统日志以查看问题所在,可以在var/log/system.log下找到此文件

You can check the system log to see whats the problem, you can locate this file under var/log/system.log

此外,您还可以添加此代码段以跟随system.log上的错误,此代码段将为您的system.log添加新信息,以便您可以解决该问题.

Also you can add this code snipped to follow the error on the system.log, this piece of code will add new information to your system.log so you can follow the problem and fix it.

在/lib/Varien/Simplexml/Config.php文件中

in /lib/Varien/Simplexml/Config.php file

查找:

$xml = simplexml_load_string($string, $this->_elementClass);

在之后添加:

if(!$xml){ Mage::log($string); }

请注意,您将要更改核心文件,一旦解决了该问题,便可以回滚.

Please note that you are going to change a core file, once you have fixed the problem you can rollback.

错误500可能是由多种因素引起的,按照这种方式,您将无法发现真正的问题.

Error 500 can be caused by so many factors, following this way, you will be abble to catch your real problem.

这篇关于Magento:通过csv文件导入更多产品时出现内部服务器错误.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆