After updating to 1.8 Ckeditor wasn't showing up anymore.

After uninstalling and placing the 1.6 back, ckeditor worked again.... but the config.js file was pointed to theme, ... while basic should be ckeditor config.js file.

After upgrading again ckeditor disappeared again.

  • Again the config.js file is pointed to theme config.js file
  • Pointed back to default ckeditor config.js file = Toolbar show up (no error about 'enter a valid toolbar')
  • Ckeditor is showing up, ... but can't select toolbar it shows:
  • basic | default | full (no scroll down menu)
  • Upgraded jquery.ui from 1.6 to 1.7.3 (other issue posts http://drupal.org/node/1333882 ) NOT FIXED

Same issue for dev release from 15/11.... now I gonna try to downgrade and check when ckeditor works again proparly.

  • After downgrading... Bug is also present in 1.7 still same issue...
  • downgrading to 1.6 ckeditor is working again, scroll down for toolbar shows up again (jquery.ui is still 1.7.3)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

enomertens’s picture

Issue summary: View changes

added summery about the workflow of updating

mkesicki’s picture

This ticket looks like related with #1339830: ckeditor 6-1.6 update to new 6-1.8 problem

avner’s picture

I dont think is the same issue,
however,
upgrading to the latest dev resolved it in a nice way -
instead of configuring this in my them's ckeditor.config.js like you said there is a drag-and-drop option to select the buttons you want

very nice

mkesicki’s picture

Status: Active » Postponed (maintainer needs more info)

@enomertens does latest DEV resolve your issue ?

ymmatt’s picture

I had the same issue and sadly mine was a user error, yes I made this silly mistake. I didn't download the package made specifically for drupal, should have read more carefully or further down the dowload page.

For everyone else that runs into this issue, make sure you got the right package from the CKEditor download page.

dczepierga’s picture

@enomertens, could u try to update to last version of jquery_udate and jquery_ui (like here #1333882: Cannot Select Any Toolbars in the end of the issue), and then write does it help or not?

Greetings

sher1’s picture

Having the same problem, but with the 7 branch. I have tried 1.6, 1.8, 1.9 and the 1.x-dev lines, all of them giving me the

Enter a valid toolbar configuration.

error but there is no way for me to set a toolbar.
This is very critical and I can give you as much feedback as you would like.

luthien’s picture

I agree with #6, this is critical. I made the mistake to update ckeditor for a production site. I ended downloading and configuring the WYSIWYG Filter module in order to correct the input formats, since all my web pages were messed up. Whatever was working with the previous version, without any extras modules, it was broken after installing the latest security release. Input formats helped out with the missing tags, then the new problem of "Enter a valid toolbar configuration" appeared. I'm unable to edit the profiles because of this error. I also installed the ckeditor package for drupal, hopping that will fix the problem. The toolbar was displayed but as soon as I click the Save button, it disappeared.

What should we do? downgrade to a previous working version?

I'm currently using:

ckeditor 6.x-1.11
jQuery UI 6.x-1.5
jQuery Update 6.x-2.0-alpha1
WYSIWYG Filter 6.x-1.5
jquery.ui 1.6
CKEditor 3.6.3 for Drupal 6

can anyone recommend a working solution? thanks.

luthien’s picture

disabling page compression fixed this problem, temporarily. I tried to change the toolbar for the advanced profile and I got the same error "Enter a valid toolbar configuration." Could you please check if this happens to you as well?

sher1’s picture

I turned off the page compression and the js and css aggregation plus caching of anonymous pages just to be certain there weren't any caching or compression issues. No good. I still can't select a toolbar.

pjbarry21’s picture

Same issue with version 7.1.9 and 3.6.3. Uninstalled and reinstalled. No change. Flushed cache, ran cron, etc.

dczepierga’s picture

@sher1, do u try to use jquery update module (link)?
U can also in Global profile of CKEditor module disable Drag&Drop Toolbar Wizard feature, and use textarea to configure CKEditor toolbar.

Greetings

Anonymous’s picture

I tried disabling the "Drag&Drop" feature as mentioned in #11, but that did not work either. Have not tried jquery update module since #7 said they had that installed already and have the same issue.

dczepierga’s picture

Hi,

If u disable drag&drop could u paste here your toolbar which not work?

Greetings

mkesicki’s picture

Priority: Critical » Major
Anonymous’s picture

Here's the Advanced toolbar setting:

[
['Source'],
['Cut','Copy','Paste','PasteText','PasteFromWord','-','SpellChecker','Scayt'],
['Undo','Redo','Find','Replace','-','SelectAll','RemoveFormat'],
['Image','Flash','Table','HorizontalRule','Smiley','SpecialChar'],
['Maximize','ShowBlocks'],
'/',
['Format'],
['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
['NumberedList','BulletedList','-','Outdent','Indent','Blockquote'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiRtl','BidiLtr'],
['Link','Unlink','Anchor','Linkit','LinkToNode','LinkToMenu'],
['DrupalBreak','DrupalPageBreak']
]

When I go to click "save" I get the message "Enter a valid toolbar configuration." at the top, and nothing is saved. I tried it with the profiles Advanced and Full, and with all the toolbar options (basic, advanced and full).

CKEditor - WYSIWYG HTML editor 7.x-1.9
Drupal core 7.12

sher1’s picture

I am having the exact same reaction as #15

luthien’s picture

I'm having the same problem in Drupal 6. The only combination of modules working for one of my Drupal 6 sites is:

modules:
ckeditor 6.x-1.11
jQuery UI 6.x-1.5
jQuery Update 6.x-2.0-alpha1
WYSIWYG Filter 6.x-1.5

libraries:
jquery.ui 1.6
JQuery update 1.3.2
CKEditor 3.6.1 for Drupal 6

perhaps if everybody having the problem posts their versions we can figure out what is different.

Anonymous’s picture

K, I'm going to throw down everything I got for D7 - cuz I have no idea what might interact with CKeditor:

Drupal core 7.12

Administration menu 7.x-3.0-rc1 - needs update
Backup and Migrate 7.x-2.2
Boost 7.x-1.x-dev - needs update
CAPTCHA 7.x-1.0-beta2
Chaos tool suite (ctools) 7.x-1.0
CKEditor - WYSIWYG HTML editor 7.x-1.9
Content Construction Kit (CCK) 7.x-2.x-dev - needs update
Content Taxonomy 7.x-1.0-beta1
Context 7.x-3.0-beta2
Delta 7.x-3.0-beta9
Email Field 7.x-1.0
Google Analytics 7.x-1.2
IMCE 7.x-1.5
jQuery Update 7.x-2.2
Lightbox2 7.x-1.0-beta1
Link 7.x-1.0
Live CSS 7.x-2.4
Location 7.x-3.x-dev - needs update
LoginToboggan 7.x-1.3
Mollom 7.x-1.1
Multiselect 7.x-1.8
Omega Tools 7.x-3.0-rc4
Page Title 7.x-2.5
Pathauto 7.x-1.0
Read More Link 7.x-1.x-dev
Scheduler 7.x-1.0
Search configuration 7.x-1.0
SEO Checklist 7.x-3.0-beta1
Token 7.x-1.0-rc1 - needs update
Views 7.x-3.3
Views Slideshow 7.x-3.0

Theme: Omega - Responsive HTML5 Base Theme 7.x-3.1

Lucky Parker’s picture

Version: 6.x-1.8 » 7.x-1.9

Exact same problem here.

I'm using Drupal 7.12, CKEditor library 3.6.3 for D7, and have the problem ONLY on my live site, and NOT on my dev site, even though I deleted my entire sites directory, then copied it fresh from my dev machine. That suggests to me the problem is above the sites directory, or is somehow related to the different host OSes: Mac OS X 10.6 on working dev machine, linux (bluehost) on live machine.

luthien’s picture

Version: 7.x-1.9 » 6.x-1.8

Sonia, go to reports status and copy here the versions for:

CKEditor
jQuery UI
jQuery Update

sher1’s picture

Ok, so I did something I don't usually do and created a copy of my live site locally (copied all files down and a copy of the database). When I ran the copy locally, everything worked as expected. So I copied the database with my changes back up to the server. The changes were in place but when I tried to add a plugin to the mix, I got the same error. I am wondering if the error is due to the hosting platforms. The Drupal 7 installs we have at work all are functioning great. Only the ones that I have on hosting are having problems. How many people having problems are on hosted and how many are on their own servers? Just to get a list, my hosting is hostmonster.

pjbarry21’s picture

The site where we're having an issue is on bluehost. 7.1.9 and 3.6.3 (ckeditor). We have other sites at site5.com and not one of them is having issues (same versions of ckeditor).

luthien’s picture

Working:
own servers/Mac OS 10.6/PHP 5.3
Drupal 6
ckeditor module 6.x-1.11
jQuery UI 6.x-1.5
jQuery Update 6.x-2.0-alpha1
WYSIWYG Filter 6.x-1.5 (not needed before security update)
JQuery update 1.3.2
jquery.ui 1.6 (I have not tested with 1.7.3)
CKEditor 3.6.1 (I have not tested with 3.6.3)

Broken:
Drupal 6
Shared hosting: Bluehost/PHP 5.2
ckeditor module 6.x-1.11 or latest dev version
jQuery UI 6.x-1.5
jQuery Update 6.x-2.0-alpha1
WYSIWYG Filter 6.x-1.5 (not needed before security update for ckeditor module)
JQuery update 1.3.2
jquery.ui 1.7.3
CKEditor 3.6.3

Lucky Parker’s picture

Bluehost is problem for me. Local machine is fine.

Anonymous’s picture

CKEditor - 3.6.2
jQuery 1.5.2 and jQuery UI 1.8.11

Apache server
Shared Hosting - Hostmonster
Database system version 5.1.61-community-log
PHP - 5.2.17

It's getting confusing with the Version being changed back and forth on this list. Keep in mind I'm using Drupal 7 (7.12 using status)

Hope this helps.

luthien’s picture

Sonia, the problem is present in both versions. Test with jquery ui 1.7.3 to see if that works for you.

sher1’s picture

Somehow my hosting had turned on enable_magic_quotes which was breaking a number of things. Once I changed my local php.ini to off for magic quotes, it seems much happier.

sher1’s picture

So now my settings can be saved but when I try to edit a page, the ckeditor doesn't load and the page freezes.

sher1’s picture

And now the editor is working

Anonymous’s picture

Thanks, Sherl! #27 worked.

For other's use (and to verify this is correct - let me know if it needs to be modified because I am not a coder!)

; Magic quotes
;

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off

I obtained this from example #1 at http://php.net/manual/en/security.magicquotes.disabling.php

Cleared my cache and it seems to work perfectly fine now. Hope this helps others!

Thanks for everyone's help!!

Sonia

tigron’s picture

Much thanks sher1 and SoniaWilk ! I'm on Bluehost as well and turning off magic_quotes_gpc worked for me.

icegirljenni’s picture

But I thought php.ni is not an editable file?

luthien’s picture

it depends what hosting service you use. Usually, you should be able to create a local copy of php.ini with the variables you need.

icegirljenni’s picture

My site server is host by Bluehost :-)

My Drupal site worked well with ckeditor all the times except last 2 days when embedded code started to show some kind of symbol "/"/ and then I read everywhere they mention about ckeditor problem until today I found out some say it could be blue host problem. So I attempt to give it a try.

endless_wander’s picture

I can confirm that using the code in comment 30 worked for me.

I was receiving the same errors as all reporting. My site is hosted by Bluehost.

In a text editor, I created a blank file and saved it into the root folder of my Drupal installation with the name php.ini

I then copied the code from comment 30 and uploaded the file to my Bluehost server. I flushed my Drupal caches and the error went away.

This solved the problems I was having with quotation markes being eliminated in CKEditor.

Thanks for the great detective work!

endless_wander’s picture

For the record, I received this email from Bluehost support after I let them know about this thread. I haven't tried the solution they recommend:

Thank you for contacting our support department.  I apologize for the recent issues your having.

To correct this concern, we recommend that you upgrade your drupal to the latest version, and you update your PHP version to PHP 5.3.

This will eliminate the errors you are seeing, and would help eliminate the security hole by using PHP 5.2.

You can upgrade your version of PHP in your control panel at Bluehost. It would be located under the
'Software/Services' section. Please click on the PHP Config link.

I would recommend using the PHP 5.3 (Single php.ini)

On upgrading your version, please follow these steps:

1. Login to your control panel at http://bluehost.com
2. In your control panel, please scroll down till you locate the 'Software/Services' section.
3. Click on the 'PHP Config' icon or link.
4. Choose which version of PHP you would like to use. Most used is the (Single php.ini) version.
5. Choose what 'Extensions' you are needing to have installed.
6. Click on the 'Save Changes' button.

This will install a new php.ini file with the version of php you want to use.
Please make sure your website software/scripts are compatible with the version
of PHP you choose to run.
icegirljenni’s picture

T@clavigne - To update Drupal to the latest version? But my Drupal 6 already up to date. The php upgrade... hmm I will see whether the new php compatible with my current website.

I will try your method with the php.ni file :-) Thanks for sharing.

pjbarry21’s picture

If you do a general search on Google, you'll find a bunch of threads related to this. I did this search query (using the quotes):

bluehost "magic quotes"

Bluehost has actually told some people it had nothing to do with their hosting/servers or changes on their side and then corrected/changed that statement (the last message in this thread -- as of May 1 -- gives a good breakdown of what happened on their side).

Anonymous’s picture

I'm on Hostmonster (I think I heard somewhere they're a sister company to Bluehost??). Anyway, I figured I would try #36's option. Upgraded to PHP 5.3, using the same method as was described in 36, using Hostmonster's ControlPanel. I then took out the Magic Quote code in my php.ini file that I had described in #30 (Sherl's solution that worked previously).

Went back to Drupal...cleared cache, went back into CKEditor's appearance settings, chose a random toolbar, clicked save....worked fine! That was on my Drupal 7 install, the one that was causing me grief in the first place, so yay!

It did say that my Drupal 6.25 install, which is the current version at this moment, is now out-of-date but it seems to still be working okay. I didn't check all over the place in every nook and cranny (it's an in-production site that I've put aside for the moment). I use FCKeditor on that one, and I was able to save settings and such. (shrug)

So I guess I'm saying the #36 solution is confirmed...for me in D7 anyway. ;)

Thanks, clavigne, for sharing!

SoniaWilk

mkesicki’s picture

Status: Postponed (maintainer needs more info) » Fixed
icegirljenni’s picture

Hi guys, sorry for adding more questions.

I did some research and found out this post from Christopher, I would have send my question on that post but I lost the link. He has this way to fix the magic code on php.ini

- Create a blank text file and add the line:
magic_quotes_gpc = Off
- Save the text file as "php.ini" (without the double quotes)
- Upload the php.ini file to your Drupal root directory.
~ Christopher~

I was wondering if I using this method, will it effect the original php.ini? By doing this way I don't have to go back to Bluehost CP right?

My site running on php 5.2 and I read somewhere they said upgrading it to php 5.3 seems to be fixing the current problem too but I am sure php 5.3 won't compatible with Drupal 6.

I am taking a precaution by checking all the available methods to fix this issue mainly because I have no confident with my technical knowledge of managing a site. I do not wish to screw up another thing by fixing this issue.

Sorry if my question sounds unimportant. Thanks in advance.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

philosurfer’s picture

FYI,

I fixed this in D7 by moving my ckeditor library into the module folder instead of the library folder.

ie.

mv /sites/all/libraries/ckeditor/*.* /sites/all/modules/ckeditor/ckeditor/*.*

munyiva’s picture

#43 worked for me

OnkelTem’s picture

Version: 6.x-1.8 » 6.x-1.11
Status: Closed (fixed) » Active

I don't understand how/why this was supposed to be fixed.
* I have latest 6.x-1.11 version of CKeditor module,
* I tried both Generic CKeditor and Drupal 6 releases,
* I'm using Drupal 6.26 with lastest JQuery Update 1.3.2
* Have magic quotes off
and still I see the error message when trying to save CKeditor configuration.

mkesicki’s picture

@OnkelTem,
in CKEditor's Global profile set disable in 'Use toolbar Drag&Drop feature' option (Advanced settings section).
After this you should save your toolbar in CKEditor's profile page.
Please also DEV version if your isse occurs there.

OnkelTem’s picture

Status: Active » Closed (fixed)

@michal_cksource

I had Drag&Drop feature tuned off.
I upgraded to latest git-version and then... it still didn't work.

But then I noticed the "Toolbar:" textarea was empty by default and I was missing the "Load sample toolbar: Basic | Advanced | Full" links. Now after I clicked on one - textarea was filled with configuration and I successfully saved the form.

So now it works.

Thank you.

michaelfillier’s picture

#46 helped me solve it.

I turned drag & drop off. Then tried to save my configuration again, it reloaded with the same error, but it displayed the text area instead of the drag & drop interface. I tried saving again and it returned the error once more.

I took a look at the text area and noticed that there was a pair of square brackets with nothing in between them "[]". I deleted the brackets, saved again and the configuration saved.

After it finally saved I turned drag & drop back on and now I can use the drag & drop interface again, it saves fine now.

I am using Drupal 7.15, ckeditor 7.x-1.9 and ckeditor 3.6.3 (downloaded here: http://download.cksource.com/CKEditor%20for%20Drupal/CKEditor%203.6.3%20...) with libraries.

j. ayen green’s picture

If you hover your mouse over Basic -> Editor Appearance -> Toolbar -> Used buttons you will see a popup on the right-hand side that will allow you to select a Basic, Advanced or Full layout.

markfullmer’s picture

I received the "Enter a valid toolbar configuration" after updating from CKEditor module 1.2 to 1.13.

The problem: I'd modified my ckeditor.config.js file and the updated version didn't like my changes.

The fix: Use the ckeditor.config.js file that comes with the update, then if you need to modify things, do it afterward and see what code works/does not work.

markfullmer’s picture

Issue summary: View changes

Downgrading to 1.6 solves the issue, .... bug is available in 1.7 - 1.8 - dev release

andrewfn’s picture

After chasing this problem for several hours, #47 fixed it instantly for me.
This should be documented somewhere.

shahidbscs’s picture

Issue summary: View changes

Just disable Jquery update & working fine for me.

I'm using http://drupal.org/project/zurb-foundation v.5 that required jquery update. Now I just disable "Jquery update" module and no more issue.

Testing with by creating new profile and edit existing profile both work perfectly. Hope this will help :)

arnolds123’s picture

FileSize
9.96 KB

It worked leaving Default jQuery Version 1.7

andrea.cavattoni’s picture

I fixed it using jQuery 1.7 for the backend and not the 1.10 with jQuery update

markusd1984’s picture

I came across the same error which was caused by changing the editor appearance to re-arrange icons in the "current toolbar" section when trying to save the changes while having left an empty row in there.

After dragging the empty row down to the "available buttons" section it allowed me to save the changes :).