FCKeditor crashes admin page

offal - December 19, 2006 - 14:36

I'm trying out Drupal 5 just for fun and have attempted to install the FCKeditor. I've followed the instructions, and enabled the module, given permission to all users, and copied files to appropriate folders as instructed, but nothing seems to happen - it doesn't show up when I create content (a page for example). On top of this, when I return to my site's admin page, I see a blank white page with no writing - the page is simply not displayed. All other pages seem fine.

What am I missing? Why is it not working for me?

Do you see anything in the

Gary Feldman - December 19, 2006 - 15:26

Do you see anything in the logs?

Are you sure you downloaded the 5.x version of the FCKeditor module?

Are you absolutely sure that you installed the FCKeditor proper (not the Drupal) module in the correct directory? Under 4.7, when it's installed properly, you should be able to see the following files (at least) modules/fckeditor/fckeditor.module and modules/fckeditor/fckeditor/fckeditor.js. Note that the second one is one level deeper than the first. I haven't checked the 5.0 module, but I'd be surprised if it weren't the same.

Gary

Shld we move .js files to second level?

glendac - December 19, 2006 - 18:29

Gary, the 5.0 module has fckeditor.module, fckeditor.config.js, and fckeditor.popup.js (no fckeditor.js), all in the modules/fckeditor/ directory. The only file in the second level fckeditor directory is copy_here.txt. Should we move the .js files from the first to the second fckeditor directory? Thanks for your help.

My theme is to blame

offal - December 20, 2006 - 13:45

Gary,

Thanks for your reply and willingness to help out.
I have reinstalled FCKeditor and made sure that I have downloaded the latest version of FCKeditor from their website and placed the contents into modules/fckeditor/fckeditor, as instructed in the installation instructions. After enabling the module and returning to the admin page I now get the following errors:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4864 bytes) in /var/www/drupal-5.0-rc1/themes/engines/phptemplate/phptemplate.engine on line 397

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 782 bytes) in /var/www/drupal-5.0-rc1/includes/database.inc on line 152

I previously didn't get that (just a white, blank page).

There is nothing unusual in the logs, except the 'status report' which now says:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 14592 bytes) in /var/www/drupal-5.0-rc1/themes/slash/page.tpl.php on line 34

Ok, that last one mentioned something about the theme I'm using (Slash_blue). So I tried the default drupal 5 theme (garland) and it worked! Bummer that - I like the slash_blue theme.

Is there any way to fix this without too much hassle? Is the theme at fault or is it FCKeditor? Which one needs the tweaking?

Increase memory limit

offal - December 20, 2006 - 15:14

I've figured out that I needed to increase my memory limit (since error mentioned exhausted memory size). I did this by following the advice at http://drupal.org/node/76156

In a nutshell it said:

Increase PHP's memory limit, either by adding:

* memory_limit = 12M to your php.ini file (recommended, if you have access)
* ini_set('memory_limit', '12M'); in your sites/default/settings.php file
* php_value memory_limit 12M in your .htaccess file in the Drupal root

I used the second method with some success - my admin page shows again in the slash_blue theme, but I still cannot use FCKeditor with the theme. There is no option to do so when creating new content.

FCKeditor blank page

glendac - December 19, 2006 - 17:51

I'm having the same problem with my FCKeditor (latest release) on my Drupal 5.2 beta installation. If you go to my test site (http://softtester.org/test/drupal5beta2), try to create content as an anonymous user (page or story with at least 5 lines of text), and click on Open rich editor. You will get a separate window (I chose that option in the settings) with a blank page with the buttons Ok and Cancel at the bottom. Nothing happens when you click on either.

it looks like you did not

ontwerpwerk - December 21, 2006 - 20:59

it looks like you did not download the latest version of the FCKeditor from http://www.fckeditor.net or you did not extract it to the correct location on your server (on your site /modules/fckeditor/fckeditor/fckeditor.js is not found)

You need the FCKeditor (http://www.fckeditor.net) and the FCKeditor module (from the modules on drupal.org).

For more information, please read the readme.txt in the fckeditor module directory

--
I work for Ontwerpwerk

I think you are correct..

joessoft - June 10, 2007 - 18:43

If he read that TXT file he would have discovered he needed to do download and install

best

http://www.eaglesnest-2.net

I think you are correct..

joessoft - June 10, 2007 - 18:43

If he read that TXT file he would have discovered he needed to do download and install

best

http://www.eaglesnest-2.net

 
 

Drupal is a registered trademark of Dries Buytaert.