Every time I try to save a Profile I get a "The connection to the server was reset while the page was loading." error. I can save every other settings except for CKEditor profiles which are the most important part.

Comments

dczepierga’s picture

Try to update to the last DEV version of CKEditor module and then write that u still have this problem.

Greetings

mcannon’s picture

Hi,

I just updated to the latest DEV version and the issue still persist. I can save GLOBAL settings but get the error when I try to save any individual PROFILE settings.

dczepierga’s picture

Do u install CKEditor on the fresh install of Drupal or migrate from version D6?

mcannon’s picture

I'm working locally with a fresh D7 install just to experiment with Drupal 7.

I'm running the local version on WampServer 2.1

I originally was using WampServer 2.0 as the environment. I can't remember if I was able to save the CKEditor profiles on 2.0 or not. I may switch back to 2.0 just to check. If the difference of 2.0 and 2.1 is the issue, I'll report it back here because it might be good to figure out that issue eventually.

stevec5375’s picture

I am having this same issue. I have WAMPServer 2.1 and a clean Drupal 7 install on my Windows 7 localhost.

Just updated to the latest dev version and get the same error.

mcannon’s picture

I just uninstalled WampServer 2.1 and reinstalled WampServer 2.0. The result is now I can save CKEditor profiles locally again.

I cannot explain the difference between 2.1 and 2.0 besides that I can't save CKeditor settings with 2.1. So I'm not sure if this is a CKeditor issue of it not being compatible with newer versions of Apache, PHP, or MySQL? Or if the issue resides with WampServer 2.1 missing something. Because the rest of the Drupal 7 site was running just fine on WampServer 2.1 I'm inclined to think the issue lies with CKeditor.

Dave Meyer’s picture

Version: 7.x-1.0 » 7.x-1.1

I'm having the same issue, wampserver 2.1 and all.

Apache 2.2.17
PHP 5.3.4
ckeditor module 7.x-1.1
ckeditor 3.5.2

A clean install of D7, no other modules enabled.

A screencast of the problem: http://www.screencast.com/t/LHYLQCzR

mkesicki’s picture

Hi,
@Dave Meyer do you have this issue (connection reset) when you use some standard input filter (default in drupal7) ?
@Dave Meyer, @zarclin, @stevec5375 do you have any errors or warnings (php, js , others). Maybe you can set php error reporting to E_ALL , check apache logs , any information can be helpful. Thanks.

EDIT:
I have tested this issue on
wampserver 2.1
Apache 2.2.17
PHP 5.3.5
ckeditor module 7.x-1.1
ckeditor 3.5.2
on windows XP and can't reproduce this issue.

dczepierga’s picture

Hi,
I also test it with:
WampServer 2.1
Apache 2.2.17
PHP 5.3.4 and PHP 5.3.5
ckeditor module 7.x-DEV
ckeditor 3.5.2
Windows 7

And i can't reproduce that... Pls look to Apache logs, maybe there u can find something - then pls copy it here... or u can PM me and send full log with error log and i will analyse it, maybe this help how to reproduce your bugs...

EDIT:
Do u have mod rewrite module enabled in Apache?

Dave Meyer’s picture

I can't change the input filter, as that's one of the changes that can't be saved due to connection time out. So yes, I get the same problem with a standard input filter.

This problem hasn't reared its head when not on localhost, by the way.

Here is the output of the Apache error log:

[Fri Apr 01 17:46:03 2011] [notice] Parent: child process exited with status 255 -- Restarting.
[Fri Apr 01 17:46:03 2011] [notice] Apache/2.2.17 (Win32) PHP/5.3.4 configured -- resuming normal operations
[Fri Apr 01 17:46:03 2011] [notice] Server built: Oct 24 2010 13:33:15
[Fri Apr 01 17:46:03 2011] [notice] Parent: Created child process 3268
[Fri Apr 01 17:46:03 2011] [notice] Child 3268: Child process is running
[Fri Apr 01 17:46:03 2011] [notice] Child 3268: Acquired the start mutex.
[Fri Apr 01 17:46:03 2011] [notice] Child 3268: Starting 64 worker threads.
[Fri Apr 01 17:46:03 2011] [notice] Child 3268: Starting thread to listen on port 80.

There aren't any reported PHP errors.

dczepierga’s picture

Status: Active » Needs work

Ok i find where is problem, it's bug with new PCRE module in PHP 5.3.x
I try to fix it but it's not so easy, probably in PHP 5.3.x PCRE is not enabled to utf8 mode...
In PHP 5.2.x everything works good...

johankleene’s picture

Any news on this? I am having the exact same issue (same configuration)

dczepierga’s picture

StatusFileSize
new1.11 KB

Hi,
Is still problem with it and nothing change..
It works with PHP 5.2.x and probably it would be work good with PHP 5.3.6 - they change PCRE library, but i don't test it yet...

Below i add little temporary fix for that - after this toolbar validation in Profile is disabled.

Greetings

johankleene’s picture

Thanks, that fixed it.

dczepierga’s picture

Status: Needs work » Closed (fixed)
robboten’s picture

Thanks so much for this! It's been driving me crazy for 2 days this...

glindahl’s picture

I am also able to confirm that I added this patch provided to fix my problem to save the profile page where I was trying to change for the ckeditor settings. I was searching for several hours to find a fix.

I was able to find this discussion after many attempts of searching for this problem by using these words on Google....
drupal ckeditor profile save error

Anyway, I can save the configuration for the ckeditor and now edit with the ckfinder to browse for images with the full editor.
Thanks.

tran_tien’s picture

Hello

I'm having same problem. I can see #13 contain patch file fox fix ít, but i don't know how to use it (i'm Windows user). Please help.

RoyE’s picture

Hi,
open the file "sites/all/modules/ckeditor/includes/ckeditor.admin.inc"
back it up and then edit.
find the lines
if (!preg_match('#^\s*\[(?:\s*(?:\[(?:\s*([\'\"\"])(?:\w+|-)\1\s*[,]?\s*)+\]|([\'\"\"])\/\2)\s*[,]?\s*)+\]\s*$#', $edit['toolbar'])) {
form_set_error('toolbar', t('Enter valid toolbar configuration.'));
}
and replace them with
//if (!preg_match('#^\s*\[(?:\s*(?:\[(?:\s*([\'\"\"])(?:\w+|-)\1\s*[,]?\s*)+\]|([\'\"\"])\/\2)\s*[,]?\s*)+\]\s*$#', $edit['toolbar'])) {
// form_set_error('toolbar', t('Enter valid toolbar configuration.'));
//}

mkesicki’s picture

Title: Save Configuration fails locally » Save Configuration fails locally (problem with PCRE library in PHP 3.5.x)
mchristian’s picture

Hi Guys,

New comer knows nothing but super curious, I'm learning Drupal recently by installing on localhost and stucked with this problem for couple of days.

Glad I stumbled on this thread and follow the instruction (I don't know how to apply the patch) but I applied RoyE (#20) way..and it works.

Wampserver 2.2
PHP 5.3.8
CKEditor 3.6.2

Tons of Thanks

ribo’s picture

Hello everyone, i am facing the same problem in my local development

Os: win7 x64
wamp server: 2.2
Apache: 2.2.21
PHP: 5.3.8
mysql: 5.5.16
drupal: 6-22
ckeditor: 6.x-1.8

i am getting a connection reset message when trying to save profile at ckeditor.
What is pcre library?

RoyE’s picture

Status: Closed (fixed) » Needs review

i've used #13 and it works beautifully.
why isn't it integrated into a new version??

jumay’s picture

Thank you

mkesicki’s picture

Status: Needs review » Needs work
dczepierga’s picture

Title: Save Configuration fails locally (problem with PCRE library in PHP 3.5.x) » [D7] Save Configuration fails locally (problem with PCRE library in PHP 3.5.x)
Status: Needs work » Needs review
StatusFileSize
new1.3 KB

I make a little patch with change of toolbar syntax validation.
Previous patch only disable toolbar syntax validation - nothing else.

Pls check does it work for u or not.

Greetings

mkesicki’s picture

Assigned: Unassigned » dczepierga
dczepierga’s picture

Status: Needs review » Fixed

Changes commited to GIT (diff)

Greetings

Status: Fixed » Closed (fixed)

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

jshimota01’s picture

This fixed me too. hard to believe this hasn't been resolved - I guess with fckeditor now trying to sell themselves as a product they forgot their roots.

timmay’s picture

Thank you! The diff patch worked for me.