Feng Forum

Support => How To's => : kils April 08, 2014, 07:50:30 AM

: Can't add image in ckeditor
: kils April 08, 2014, 07:50:30 AM
in all my feng office installations i see this problem:
1 - i click on Image icon
2 - choose upload tab
3 - choose my file from PC
4 - click Upload and nothing to happen ((
in chrome and firebug i see this error:
Failed to load resource: the server responded with a status of 500 (Internal Server Error) - /public/assets/javascript/ckeditor/ck_upload_handler.php?CKEditor=og_1396953210_113106ckeditor&CKEditorFuncNum=227&langCode=ru

Php error have this:
Warning: require_once(/config/config.php): failed to open stream: No such file or directory in /home/websites/w_dev/my-domain.ru/public_html/public/assets/javascript/ckeditor/ck_upload_handler.php on line 15

Fatal error: require_once(): Failed opening required '/config/config.php' (include_path='.:/opt/php/5.3.13-gd-wuimap-o1/lib/php') in /home/websites/w_dev/my-domain.ru/public_html/public/assets/javascript/ckeditor/ck_upload_handler.php on line 15


i try change rules to config.php on 777, but it's not work to this error.
replace this code in \public\assets\javascript\ckeditor\ck_upload_handler.php:
define('APP_ROOT', realpath(dirname(__FILE__) . "/../../../../../$iname"));
to this:
define('APP_ROOT', $_SERVER['DOCUMENT_ROOT']);

and all work ok))
: Re: Can't add image in ckeditor
: franponce87 May 09, 2014, 12:23:16 PM
Hi there!

It does seem like it is a server setting issue though because it does work fine for us wherever we install it.
You can give it a go to our Demo (demo.fengoffice.com) or even create a free trial.

May be you would like to consider our experts looking into your server directly to have it solved faster?

Best regards,
Francisco