Bug #42202

Setup shows PHP warning if file permissions are not ok

Added by Rens Admiraal almost 3 years ago. Updated 5 months ago.

Status:Closed Start date:2012-10-20
Priority:Should have Due date:
Assigned To:Karsten Dambekalns % Done:

0%

Category:-
Target version:-

Description

When the file permissions on for example the configuration folder are not correct a PHP warning is shown:
Warning: file_put_contents(/Users/rens/Documents/__Sites/flow3/neos/Configuration/PackageStates.php) [function.file-put-contents]: failed to open stream: Permission denied in/Users/rens/Documents/__Sites/flow3/neos/Packages/Framework/TYPO3.Flow/Classes/TYPO3/Flow/Package/PackageManager.php on line 740

This is shown on top of the friendly error message and should probably be hidden.

History

#1 Updated by Karsten Dambekalns over 2 years ago

  • Status changed from New to Accepted
  • Assigned To set to Karsten Dambekalns

#2 Updated by Karsten Dambekalns over 2 years ago

Seems the only way to silence this is to use the shut-up operator in sortAndSavePackageStates inside PackageManager. Any exception or error code thrown at that point are not catchable by a (setup) controller.

#3 Updated by Karsten Dambekalns over 2 years ago

  • Status changed from Accepted to Needs Feedback

That particular warning is gone with https://review.typo3.org/17206 - but does that cover the issue fully?

#4 Updated by Bastian Waidelich 5 months ago

  • Status changed from Needs Feedback to Closed

Closing due to missing feedback. Please open a new ticket on jira.typo3.org if the problem remains

Also available in: Atom PDF