Magento SOAP API - PHP 异常错误“看起来我们没有 XML 文档" [英] Magento SOAP API - PHP Exception error “looks like we got no XML document”

查看:16
本文介绍了Magento SOAP API - PHP 异常错误“看起来我们没有 XML 文档"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们开发了一款应用,该应用使用 SOAP 1.1 和 Magneto 1.7.0.2,通过 SOAP 通过 Magento API 将数据从一个程序推送和检索到 Magento.

We developed an app that pushes and retrieves data from one program to Magento via the Magento API via SOAP, using SOAP 1.1 and Magneto 1.7.0.2.

这是我们发送到 magento 商店的那种帖子:

This is the kind of post we send to the magento store:

示例:[08/Oct/2013:16:49:59-0400] "POST/index.php/api/soap/index/HTTP/1.0" 200 266 "-" "-"

Example: [08/Oct/2013:16:49:59 -0400] "POST /index.php/api/soap/index/ HTTP/1.0" 200 266 "-" "-"

基本上当我们尝试将这些命令发送到 Magneto 站点/服务器时它停止,我们收到以下错误:

Basically when we attempt to send these commands to the Magneto site / Server it stops and we receive the following error:

MAGENTO::ERROR:看起来我们没有 XML 文档"

MAGENTO::ERROR: looks like we got no XML document"

在连接期间,他们的 magento 网络服务的实际返回如下:

During the connection, the actual return from their magento web service is as follows:

警告:include() [function.include]:无法打开/home/sistaco5/public_html/includes/src/Jemoon_Htmlminify_Model_Observer.php"以包含在内(include_path='/home/sistaco5/public_html/includes/src:.:/usr/local/php53/pear') 在/home/sistaco5/public_html/includes/src/Varien_Autoload.php 第 93 行

Warning: include() [function.include]: Failed opening '/home/sistaco5/public_html/includes/src/Jemoon_Htmlminify_Model_Observer.php' for inclusion (include_path='/home/sistaco5/public_html/includes/src:.:/usr/local/php53/pear') in /home/sistaco5/public_html/includes/src/Varien_Autoload.php on line 93

这看起来不像 XML.

This does not look like an XML.

我认为该错误可能与我在 这篇文章中发现的 BOM 有关.不确定这篇文章是否有效,但任何关于如何解决上述问题的其他想法将不胜感激.

I believe the error may be related to BOM I found at this article. Not sure if this article will work, but any other thoughts on how to address the above would be very much appreciated.

推荐答案

您的错误指出 includes/src/ 中缺少编译文件.

Your error points to missing files in includes/src/ which are compilation files.

重新运行编译或禁用它.进入 Magento 管理员,导航到 System ->工具 ->编译并重新编译或禁用编译.

Re-run compilation or disable it. Get to the Magento admin, navigate to System -> Tools -> Compilation and do a recompile or disable compilation.

如果该页面没有完成加载,请通过 SSH/shell 进行编译:

If that page doesn't complete loading, do the compilation via SSH/shell:

  • cd/path/to/magento/root
  • php -f compiler.php compile 重新编译或
  • php -f compiler.php disable 禁用/阻止 magento 查看编译文件.
  • cd /path/to/magento/root
  • php -f compiler.php compile to recompile OR
  • php -f compiler.php disable to disable/prevent magento from looking in Compilation files.

我在 10 分钟内回答了两个有编译问题的问题,这有多奇怪.

How odd is it that I'm answering to two questions that have compilation issues in 10 minutes.

这篇关于Magento SOAP API - PHP 异常错误“看起来我们没有 XML 文档"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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