Download & Extend

[D7] Bug in checking if a file "contents.css" exists

Project:CKEditor - WYSIWYG HTML editor
Version:7.x-1.9
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

Status:active» postponed (maintainer needs more info)

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

Greetings

#2

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.

#3

Hi Damian,

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

#4

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

#5

Status:fixed» closed (fixed)