Project

General

Profile

Actions

Bug #52178

closed

.zip - Extension Upload failed

Added by Lukas Schnabel over 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
Extension Manager
Target version:
-
Start date:
2013-09-22
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

First of all: I'm sorry if I'm posting this issue under the wrong project, however the form crashed whenever I tried to select Extension Manager from the dropdown-list as the project.

The issue:

Whenever I'm trying to upload an extension in a .zip-file using the extension manager, I get the following error message:

Extension Upload failed
PHP Catchable Fatal Error: Argument 1 passed to TYPO3\CMS\Extensionmanager\Utility\InstallUtility::processDatabaseUpdates()
must be of the type array, null given, called in
C:\Program Files\XAMPP\htdocs\fluid_templating\typo3\sysext\extensionmanager\Classes\Utility\InstallUtility.php on line 133 and
defined in C:\Program Files\XAMPP\htdocs\fluid_templating\typo3\sysext\extensionmanager\Classes\Utility\InstallUtility.php line 244

However, there is no problem uploading an extension as a .t3x-file. The issue seems to be related to .zip-files only!


Files

flux-master.zip (613 KB) flux-master.zip Lukas Schnabel, 2013-09-23 18:57
fluidpages_bootstrap-master.zip (91.4 KB) fluidpages_bootstrap-master.zip Lukas Schnabel, 2013-09-23 18:57
ft3_empty-master.zip (6.16 KB) ft3_empty-master.zip Lukas Schnabel, 2013-09-23 18:57

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #53740: Extension ZIP Upload doesn't extract directories on WindowsClosed2013-11-18

Actions
Actions #1

Updated by Philipp Gampe over 10 years ago

  • Status changed from New to Needs Feedback

Uploading extensions as zip file works for me. Most likely, your extension is somehow corrupt.

Can you attach the extension that fails for you?

Updated by Lukas Schnabel over 10 years ago

The weird thing about it is that it worked fine for me a week ago or so, too. Then, I installed TYPO3 6.1.5 (blank package) on my local server (XAMPP 1.8.3) this weekend. Since then, I keep getting this error. I already re-installed XAMPP and tried other versions of TYPO3 (6.0.10 and 6.1.0) - however, this didn't fix the problem.

At first, I thought my extension was the reason as well. But then I tried other extensions which I previously was able to install successfully in the .t3x file format (e.g. flux, fluidpages_bootstrap, ft3_empty) and kept getting the same error.

Actions #3

Updated by Alexander Opitz over 10 years ago

Did you cleaned your TYPO3 Cache after updating? (typo3temp/Cache)

Actions #4

Updated by Lukas Schnabel over 10 years ago

What do you mean by "after updating"? I did an entirely new installation of TYPO3 and not an update.
However, I just tried what you suggested and cleaned the cache directory - which unfortunately didn't fix the problem for me. I still get the same error message.

What I'd like to add: every time I try to install an extension in the .zip file format, the extension manager creates a .zip folder in typo3conf/ext - e.g. when I try to install "flux-master.zip", the extension manager creates a folder called "flux-master.zip" in typo3conf/ext. This folder is always empty though.

Actions #5

Updated by Xavier Perseguers over 10 years ago

I can confirm this bug. I took one of my extensions from another website, zipped it as <extension-name>.zip with a 1st-level folder <extension-name> and tried to upload it in TYPO3-master. It fails with the aforementioned flash message.

Actions #6

Updated by Xavier Perseguers over 10 years ago

  • Status changed from Needs Feedback to Accepted
Actions #7

Updated by Xavier Perseguers over 10 years ago

  • Assignee set to Xavier Perseguers

Note: the zip should only contain the files, not an additional 1st level directory. Problem has been fixed locally, uploading a patch.

Actions #8

Updated by Gerrit Code Review over 10 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24037

Actions #9

Updated by Lukas Schnabel over 10 years ago

Xavier Perseguers wrote:

Note: the zip should only contain the files, not an additional 1st level directory. Problem has been fixed locally, uploading a patch.

I tested the patch today (following the advice of removing the additional 1st level directory) - it solved the error that the extension upload failed.
However, the extension manager still doesn't create any subfolders (like Classes, Configuration, Resources, ...) in the directory of the extension (typo3conf/ext/my_ext). Only the 1st level files (like ext_emconf.php, ext_tables.php, ...) were created.

Actions #10

Updated by Xavier Perseguers over 10 years ago

Strange. But please then put your comment right into Gerrit, where the patch is. You have to authenticate to do so, using the exact same credentials as here. Thanks

Actions #11

Updated by Dmitry Dulepov over 10 years ago

I have no issue. Just tried to upload comments.zip, it created a subdir in typo3conf/ext with correct extkey name and all subdirs inside it.

Actions #12

Updated by Gerrit Code Review over 10 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24037

Actions #13

Updated by Gerrit Code Review over 10 years ago

Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/24531

Actions #14

Updated by Gerrit Code Review over 10 years ago

Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/24532

Actions #15

Updated by Xavier Perseguers over 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #16

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF