rapila / cms-base

The rapila cms’ internals. Please file all issues here if they’re not directly related to a plugin or the sample site.
http://www.rapi.la
3 stars 1 forks source link

file_exists throws fatal exception on server with open_basedir restriction #190

Closed juergmessmer closed 9 years ago

juergmessmer commented 9 years ago

Use case: Call any page / module that uses richtext with youtube plugin, a missing file throws a fatal exceptions in the ResourceFinder because of the open_basedir restriction. • can one prevent this fatal exception? • why is this file base/web/js/widget/ckeditor-plugins/youtube/bower.json/plugin.js missing

/get_file/widget_json/language_object_control/methodCall/editor
Array
(
   [code] => 2
   [message] => file_exists(): open_basedir restriction in effect. File(/home/httpd/vhosts/schulcms.ch/httpdocs/base/web/js/widget/ckeditor-plugins/youtube/bower.json/plugin.js) is not within the allowed path(s): (/home/httpd/vhosts/schulcms.ch/:/tmp/)
   [filename] => /home/httpd/vhosts/schulcms.ch/httpdocs/base/lib/classes/ResourceFinder.php
   [line] => 465
   [trace] => Array
       (
           [0] => file_exists() in /home/httpd/vhosts/schulcms.ch/httpdocs/base/lib/classes/ResourceFinder.php (465)
…
sabberworm commented 9 years ago

@juergmessmer Could you test this? This should cover the case of your stack trace. I’m not sure the fix covers all instances of this error, though.