自动扩展更新:未知存档类型 [英] Automatic Extension Update: Unknown Archive type

查看:177
本文介绍了自动扩展更新:未知存档类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



通过zip文件或目录手动升级工作正常。



但是自动升级(以前工作正常)现在会给出错误500并显示以下错误消息:未知存档类型,*更新路径不存在和安装意外终止:更新路径不存在。



我不知道为什么会出现这些消息。

update.xml引用正确的zip文件。手动下载它工作得很好。



Joomla(/ php / apache)对包含joomla安装的文件夹拥有全部权利。
在尝试自动更新后,tmp文件夹包含下载的带有最新扩展版本的zip档案,有趣的是没有.zip扩展名。 Joomla下载器没有正确命名文件,然后发现文件没有.zip扩展名时失败?`或者它可能是什么?



会是非常感谢任何想法......



编辑:我的项目托管在github上,而github似乎自动在下载中创建一个子文件夹zip存档,名为-zip。



我直接在update.xml中使用到标记的github zip的链接



我不确定github是否总是将这个文件夹添加到zip文件中,当它仍然适用于我时...



可能是Joomla问题必须处理zip文件包含这样一个文件夹,而不是直接在根目录级别的扩展东西?如果是这样,任何人都知道是否/如何改变github而不创建该子文件夹? 解答方案

回答我自己的问题:



是的,github似乎最近改变了他们的策略,在zip文件中创建一个根文件夹,命名为zip文件的下载库(愚蠢,如果你问因为完全相同的信息已经在zip文件名中编码了!)。



编辑和重写:看起来,在Joomla中进行了修改,或者如果你遵守命名惯例 - 即压缩文件中的根文件夹具有确切的扩展名(或者我认为并且必须测试,实际上与文件名相同,没有版本信息),那么自动更新就可以工作。



因此,就我而言,我有一个Joomla包;该软件包现在位于存储库 pkg_mypkg 中。由github生成的zip文件名称为 pkg_mypkg-version.zip (例如pkg_myfancyext-1.0.9.zip),并且包含名为 pkg_mypkg的文件夹。在pkg_mypkg文件夹中有一个 pkg_mypkg.xml 文件,即扩展名清单。这实际上似乎是自动更新工作的配置。


I have created a new version of my Joomla extension.

Manual upgrade via zip file or the directory works fine.

But the automatic upgrade (which used to work fine before), now gives an error 500 and the following error messages: "Unknown Archive type", "*Update path does not exist" and "Installation unexpectedly terminated: Update path does not exist".

I have no idea why those messages appear.

The update.xml references the correct zip files. Downloading it manually works just fine.

Joomla(/php/apache) has all rights on the folder containing the joomla installation. After trying the automatic update, the tmp folder contains the downloaded zip archive with the latest extension version, interestingly without the .zip extension. Is the Joomla downloader not correctly naming the file and then failing upon finding that the file doesn't have a .zip extension?`Or what could it be?

Would be very thankful for any ideas...

Edit: My project is hosted on github, and github seems to automatically create a subfolder in the downloaded zip archive, named -.zip.

I'm using a link to the tagged github zip directly in my update.xml

I'm not sure if github always added this folder in the zip file, back when it still worked for me...

Might the Joomla problem have to do with the zip file containng such a folder, and not directly the extension stuff at root level? If so, anybody know if/how I can change github to not create that subfolder?

解决方案

To answer my own question:

Yes, github seems to have recently changed their policy to create a root folder in the zip file, named as the repository the zip file is downloaded for (stupid, if you ask me, since the exact same information is encoded in the zip file name already anyway!).

Edit and Rewrite: It seems that either something changed in Joomla or that if you adhere to a naming convention - namely the root folder in the zip file having the exact extension name (or, I think and have to test, actually the same as the file name, without the version information), then the automatic update will work.

So as in my case, I have a Joomla package; the package is now in a repository pkg_mypkg. The zip file generated by github has the name pkg_mypkg-version.zip (e.g. pkg_myfancyext-1.0.9.zip), and contains a folder named pkg_mypkg. And inside the pkg_mypkg folder is a pkg_mypkg.xml file, the extension manifest. And this actually seems to be the configuration where automatic update works.

这篇关于自动扩展更新:未知存档类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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