Bug #52178
closed.zip - Extension Upload failed
100%
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
Updated by Philipp Gampe about 11 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 about 11 years ago
- File flux-master.zip flux-master.zip added
- File fluidpages_bootstrap-master.zip fluidpages_bootstrap-master.zip added
- File ft3_empty-master.zip ft3_empty-master.zip added
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.
Updated by Alexander Opitz about 11 years ago
Did you cleaned your TYPO3 Cache after updating? (typo3temp/Cache)
Updated by Lukas Schnabel about 11 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.
Updated by Xavier Perseguers about 11 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.
Updated by Xavier Perseguers about 11 years ago
- Status changed from Needs Feedback to Accepted
Updated by Xavier Perseguers about 11 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.
Updated by Gerrit Code Review about 11 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
Updated by Lukas Schnabel about 11 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.
Updated by Xavier Perseguers about 11 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
Updated by Dmitry Dulepov about 11 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.
Updated by Gerrit Code Review about 11 years ago
Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/24037
Updated by Gerrit Code Review about 11 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
Updated by Gerrit Code Review about 11 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
Updated by Xavier Perseguers about 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 394d12e9ec2a635fdd9d88eb888a26fd487d0dad.