1
zzzzsg
FCKeditor not working in both upgrade and fresh install of Xoops 2.3.3
  • 2009/5/19 0:01

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22


Hi All

I followed the instructions on upgrading from XOOPS 2.2x to 2.3.3. The upgrade went quite smooth, except for FCKeditor which does not work after the upgrade.

1) I did what the instructions say "Since there are some directory structure changes in both fckeditor and tinymce editors, you are recommended to remove existent editors before uploading the new additors." -- I deleted the fckeditor and tinymce folders from class/xoopseditor/ of my existing XOOPS 2.2 server before copying the XOOPS 2.2.3 over.

2) After upgrading to XOOPS 2.3.3 and update the system, profile and news modules, I made sure that news is using fckeditor by going to the module preferences.
But fckeditor does not work. When submitting news, the input boxes for scoop and body do not appear.

3) I went to /modules/news/include and found that functions.php contains this lines
switch($editor_option) {^M
case 'fckeditor':^M
if ( is_readable(XOOPS_ROOT_PATH . '/class/fckeditor/formfckeditor.php')) {^M
require_once(XOOPS_ROOT_PATH . '/class/fckeditor/formfckeditor.php');^M
$editor = new XoopsFormFckeditor($caption, $name, $value);^M
}^M
break;^M
Now there is NO such folder as "/class/fckeditor/formfckeditor.php" and so I modified the file to
switch($editor_option) {^M
case 'fckeditor':^M
if ( is_readable(XOOPS_ROOT_PATH . '/class/xoopseditor/fckeditor/formfckeditor.php')) {^M
require_once(XOOPS_ROOT_PATH . '/class/xoopseditor/fckeditor/formfckeditor.php');^M
$editor = new XoopsFormFckeditor($caption, $name, $value);^M
}^M
break;^M
^M

Now, when submitting News, the input boxes for Scoop and Body appear! BUT after I submitted a news with some words and images, the News contains nothing -- blank! No problem submitting News using other editors, e.g., dhtml.

4) Now I went to /class/xoopseditor/fckeditor/module and read the readme.txt file there. It says "1 Copy the three files to your module folder 2 Modify the fckeditor.config.js to set proper configs; if no specific config is needed, remove the file 3 Keep the two php files".
Quite vague -- I copied the 3 files there to /modules/news/
No luck -- so problem.

5) Now I did the same thing on a fresh XOOPS 2.3.3 install. This time, when I click on Submit News, a blank page appears. Wait a minute -- it seems that Submit News results in a blank page for all editor types --- but i used to be able to Submit News in the fresh install before --- now after doing a News module update, Submit News results in blank page.
Okay, i uninstalled the News module (1.6.3) and reinstalled it and managed to get it working now with fckeditor -- but it is confirmed that there is a bug in news/include/functions.php
at first i got this error when submitting a newsThis page cannot be displayed due to an internal error.

You can provide the following information to the administrators of this site to help them solve the problem:

Error: Cannot create fckeditor config file
Backtrace:
/class/xoopseditor/fckeditor/formfckeditor.php (135)
/class/xoopsform/formeditor.php (79)
/class/xoopsform/themeform.php (110)
/class/xoopsform/form.php (404)
/modules/news/include/storyform.inc.php (230)
/modules/news/submit.php (538)

i then changed the functions.php as per above. i also chmod -R 777 all the files in my XOOPS folder.

I found this
http://mark.boyden.name/smartsection. ... /fckeditor-for-xoops.html
but didn't follow the instructions because isn't the Fckeditor that comes integrated with the new XOOPS 2.3.3 supposed to work?

Thank you.



2
zzzzsg
Re: FCKeditor not working in both upgrade and fresh install of Xoops 2.3.3
  • 2009/5/19 17:19

  • zzzzsg

  • Just popping in

  • Posts: 86

  • Since: 2005/12/22



i managed to fix it. turns out that the old news 1.4 is not compatible with XOOPS 2.3.3. i updated the news module to 1.6.3 and all is well now. and there is no need to modify /modules/news/include/functions.php

the following is okay even though /class/fckeditor/formfckeditor.php does not exist! (it exists in /class/xoopseditor/fckeditor)

case 'fckeditor':
if ( is_readable(XOOPS_ROOT_PATH . '/class/fckeditor/formfckeditor.php')) {
require_once(XOOPS_ROOT_PATH . '/class/fckeditor/formfckeditor.php');

Login

Who's Online

56 user(s) are online (29 user(s) are browsing Support Forums)


Members: 0


Guests: 56


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Aug 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits