Magento CONNECT错误:无法打开文件 [英] Magento CONNECT ERROR: Failed to open file

查看:68
本文介绍了Magento CONNECT错误:无法打开文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用magento connect安装扩展程序时遇到了一些麻烦.当我开始安装扩展程序时,大纲终端会写出这样的内容:

I'm having some troubles with installing extensions with magento connect. When I start installing the extension the outline terminal writes something like this:

检查软件包的依赖性安装软件包社区/OrganicInternet_SimpleConfigurableProducts 0.7.4

Checking dependencies of packages Installing package community/OrganicInternet_SimpleConfigurableProducts 0.7.4

连接错误:无法打开文件 /var/www/magento/downloader/.cache/community/OrganicInternet_SimpleConfigurableProducts-0.7.4/app/code/community/OrganicInternet/SimpleConfigurableProducts/Catalog/Model/Product/Type/Configurabl

CONNECT ERROR: Failed to open file /var/www/magento/downloader/.cache/community/OrganicInternet_SimpleConfigurableProducts-0.7.4/app/code/community/OrganicInternet/SimpleConfigurableProducts/Catalog/Model/Product/Type/Configurabl

我检查了路径,找到了所需的文件.如您所见,权限应该很好;-)

I checked the path and I found the requested file. As you can see the permissions should be fine ;-)

drwxrwxrwx 2 www-data www-data 4.0K 11月3日11:10可配置

drwxrwxrwx 2 www-data www-data 4.0K Nov 3 11:10 Configurabl

我不知道该怎么办.我使用的是PHP 5.5.4-1,所以应该没问题.

I have no idea what to do. I'm using PHP 5.5.4-1 - so that should be fine.

你知道该怎么办吗?

推荐答案

在这种情况下,该错误来自于检查文件上传的php安全模块.从该程序包中提取的文件之一中似乎有一些非ASCII字符,一旦遇到这些字符,它将停止处理该文件,因此"Configurabl"被缩短了.

The error, in this case, comes from a php security mod that checks files on upload. There seems to be some non-ascii characters in one of the extracted files from the package and as soon as it encounters them it halts processing the file, hence the "Configurabl" is cut short.

要克服此错误,您需要做的是调整上传器安全模块的设置,但很可能您无权访问该设置.另一个选择是以其他方式下载软件包(在这种情况下,可以在Github上的 https:下载: //github.com/organicinternet/magento-configurable-simple ),将其解压缩并通过FTP上传文件.

What you need to do to get past this error is either adjust the settings of your uploader security mod, but most likely you don't have access to that. The other option is to download the package some other way (in this case it is available on Github at https://github.com/organicinternet/magento-configurable-simple), extract it and upload the files via FTP.

这篇关于Magento CONNECT错误:无法打开文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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