问题描述
我刚刚开始使用2.1.0.2,并且尝试转换为1.5.6.4存储库构建的一些扩展.
I've just started to use 2.1.0.2 and I'm trying to convert over some of my own extensions I built for my 1.5.6.4 store.
我从2.1.0.2的全新安装开始,并且构建了一个非常基本的扩展程序,我想移至扩展程序安装程序以将以后的附加产品安装到我的商店中,而不是使用vqmod.
I have started with a fresh install of 2.1.0.2 and I built a very basic extension, I'm wanting to move over to the extension installer to install my future additions to my store instead of using vqmod.
我制作了testerextension.ocmod.zip,里面是:
I have made my testerextension.ocmod.zip, inside this is:
install.xml
/upload/
/admin/
/catalog/
但是,当我使用安装程序上传testerextension.ocmod.zip时,出现以下错误:
However when I use the installer to upload testerextension.ocmod.zip I'm getting the following error:
找不到包含要上传文件的目录
Directory containing files to be uploaded could not be found
我已经将此问题追溯到ftp()类,因为我看到此错误可以在另一个类中触发.
I have tracked this down to the ftp() class as I can see this error can be trigged in another class.
我还查看了存储临时文件夹,找到一个未压缩的文件夹,名为:testerextension.ocmod不上传.
I've also looked into the storage temp folder to find a folder unzipped called: testerextension.ocmod NOT upload.
要排除OC系统是否存在问题,我从扩展存储中上载了另一个扩展,该扩展具有类似的目录结构和类似的ocmod.zip名称,仅用于正确安装.
To rule out if there was an issue with OC system I have uploaded another extension from the extension store with the similar directory structure and similar ocmod.zip name only for it to correctly install.
因此,我不确定为什么会发生这种情况,我了解系统正在temp文件夹中查找上载文件夹,但它不存在,因为它在testerextension.ocmod中更深一层-但如您所见从上面的目录结构中应该不会发生这种情况.
Therefore i'm unsure as to why this would be happening, I understand the system is looking for the upload folder in the temp folder but it's not there as it's one level deeper in the testerextension.ocmod - but as you can see from the directory structure above this shouldn't be happening.
有人知道我可能会出错吗?
Does anyone have any idea where I could be going wrong?
推荐答案
我遇到了同样的问题.
发生这种情况是因为我压缩了扩展名的目录.严格的方法是压缩扩展文件.
This happened cause I compressed the directory of the extension. The rigth way is compress the files of the extension.
这篇关于Opencart 2.1.0.2安装ocmod.zip时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!