Warning: file_exists(): open_basedir restriction in effect. File(/sites/all/libraries/ckeditor/contents.css) is not within the allowed path(s): (/sites/mysite/www/htdocs:/sites/mysite/www/tmp:/sites/mysite/lib/php) in ckeditor_profile_settings_compile() (line 1213 of /sites/mysite/www/htdocs/sites/all/modules/ckeditor/includes/ckeditor.lib.inc).

Comments

dczepierga’s picture

Status:Active» Postponed (maintainer needs more info)

Do u try to use last DEV version to check that? There was fix for paths...

Greetings

matulis’s picture

Status:Postponed (maintainer needs more info)» Active

So I changed Line 1213 (sites/all/modules/ckeditor/includes/ckeditor.lib.inc)

<?php
if (file_exists($editor_path . '/contents.css')) {
?>

to

<?php
if (file_exists($editor_local_path . '/contents.css')) {
?>

The warning is gone now.

matulis’s picture

Hi Damian,

warning still present with last DEV,
so I stay with my quick fix from previous comment.

dczepierga’s picture

Title:open_basedir restriction in effect. File(/sites/all/libraries/ckeditor/contents.css) is not within the allowed path(s)» [D7] Bug in checking if a file "contents.css" exists
Status:Active» Fixed

Really thx for info and solution for this bug.

I commit it to GIT (diff).
Pls update to last DEV to see changes.

Greetings

mkesicki’s picture

Status:Fixed» Closed (fixed)