Bug #65702
closed
Upload of saved extension via Upload Extension in Extension Manager not possible: Could not write file .js
Added by Daniel Wagner almost 10 years ago.
Updated over 6 years ago.
Category:
Extension Manager
Description
Problem
I tried to import an extension into 6.2.10 from another 6.2.10 system via the Upload Extension function.
But that is not possible. I get the errror message: "Could not write file .js".
Importing extensions from TER is possible therefore i think it is not a problem of the filesystem.
A bit longer error description:
fopen(...typo3conf/ext/tt_news/js/tceformsCategoryTree.js): failed to open stream:
No such file or directory in typo3/sysext/core/Classes/Utility/GeneralUtility.php line 2682
Any Ideas?
- Status changed from New to Needs Feedback
Have you tried to uninstall and delete the extension, before you upload the zip file? Could you provide the zip file for testing?
I just had the same issue. The check if a folder exists in unzipExtensionFromFile() is missing a $extensionDir.
Instead of
if (!is_dir($dir)) {
GeneralUtility::mkdir_deep($extensionDir . $dir);
}
it should be
if (!is_dir(extensionDir . $dir)) {
GeneralUtility::mkdir_deep($extensionDir . $dir);
}
the lines
if (!is_dir($dir)) {
GeneralUtility::mkdir_deep($extensionDir . $dir);
}
are still present in /typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php
- Status changed from Needs Feedback to New
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41096
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41096
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/41123
- Status changed from Under Review to Resolved
- Status changed from Resolved to Closed
Also available in: Atom
PDF