Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
294 views
in Technique[技术] by (71.8m points)

joomla - Automatic Extension Update: Unknown Archive type

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Right, just had a quick test of this.

I couldn't seem to find out how to automatically zip up a sub folder (there is a way but I need to do some more research/ask questions regarding this), however what you can do is the following:

  1. Create a zip of your Repo
  2. Open the zip, extract the folder you wish to be zipped then zip it
  3. Create a new version and then drag your zip file into the upload box
  4. Publish the release

Here is an example, have a look at the "Creating Releases" sections at the bottom:

https://github.com/blog/1547-release-your-software

Hope this helps


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...