Project

General

Profile

Actions

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 about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Extension Manager
Target version:
Start date:
2015-03-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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?

Actions #1

Updated by Nicole Cordes over 9 years ago

  • 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?

Actions #2

Updated by Andreas Schütte over 9 years ago

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);
}

Actions #3

Updated by Riccardo De Contardi over 9 years ago

the lines

if (!is_dir($dir)) {
GeneralUtility::mkdir_deep($extensionDir . $dir);
}

are still present in /typo3/sysext/extensionmanager/Classes/Utility/FileHandlingUtility.php

Actions #4

Updated by Alexander Opitz over 9 years ago

  • Status changed from Needs Feedback to New
Actions #5

Updated by Gerrit Code Review over 9 years ago

  • 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

Actions #6

Updated by Gerrit Code Review over 9 years ago

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

Actions #7

Updated by Wouter Wolters over 9 years ago

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

Updated by Gerrit Code Review over 9 years ago

  • 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

Actions #9

Updated by Wouter Wolters over 9 years ago

  • Status changed from Under Review to Resolved
Actions #10

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF