netresearch / t3x-rte_ckeditor_image

Image support in CKEditor for the TYPO3 ecosystem
GNU Affero General Public License v3.0
56 stars 65 forks source link

open_basedir problem when inserting image in RTE #261

Closed wtfred closed 9 months ago

wtfred commented 11 months ago

Bug description When inserting image in RTE, when saving content, we got a 503 error because of open_basedir restriction. We are using Plesk default php settings with open_basedir set. I don't know since when this problem exists, because it's on a website that is not so active. We updated it from TYPO 10 to 11 in may this year, and last update to 11.5.33 in november.

Steps to reproduce To reproduce the problem:

  1. Open content
  2. Insert image
  3. Validate "image properties" modale
  4. Save content
  5. Got 503 in TYPO3 backend

Screenshots or logs

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1476107295: PHP Warning: is_file(): open_basedir restriction in effect. File(/fileadmin/user_upload/subdirectory/Image.jpg) is not within the allowed path(s): (/var/www/vhosts/domain.com/:/tmp/) in /var/www/vhosts/domain.com/httpdocs/releases/20231116103330/public/typo3conf/ext/rte_ckeditor_image/Classes/Database/RteImagesDbHook.php line 141

Environment

linawolf commented 10 months ago

I am having the same problem on opening existing records

Gitsko commented 9 months ago

Hi @wtfred, we fix the problem with the merge request from @linawolf. Please check the new version, v11.0.15.

Thanks @linawolf 🚀