Author Topic: Can't add image in ckeditor  (Read 1806 times)

kils

  • Freshman
  • *
  • Posts: 42
    • View Profile
Can't add image in ckeditor
« on: 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))
« Last Edit: April 08, 2014, 09:53:49 am by kils »

franponce87

  • Administrator
  • Hero Member
  • *****
  • Posts: 1819
    • View Profile
    • Email
Re: Can't add image in ckeditor
« Reply #1 on: 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
Would you like to install Feng Office Professional or Enterprise Edition in your servers? No problem! Read this article!