Question

I have an old cakephp-1.2 application in production. This system has a screen where html content can be edited using ckeditor 3.2. The problem is that almost every time when I try to edit some html content I got logged out when submitting the form, the content is not saved when this happens.

Interesting enough I go to edit some html content and make no changes at all in ckeditor then hitting submit sometimes I got logged out and sometimes it works as expected.

Was it helpful?

Solution

I encounter the same problem before just cleaned up the entire code and made sure there wasn't any unnecessary whitespace or unused methods such as debug or php close tag. can you check all your Model.php and remove all php close tags? Hope it solves your problem too. It works fine with me.

OTHER TIPS

I really don't no anything about CakePHP but did you already try to fill these values in the post that cause the log off..

["CAKEPHP"]=>
string(26) "xxx"
["__utma"]=>
string(54) "xxx"
["__utmb"]=>
string(26) "xxx"
["__utmc"]=>
string(9) "xxx"
["__utmz"]=>
string(70) "xxx.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)"

Because this is the only difference between the 2 Posts. Now i think that you are going to tell me that you don't know how to set them. But if i'm right, this is the session your working on?

Question?: And these 2 posts come from different pages? If so what is the difference on these 2 pages? Did you enable session on both pages?

Possible Solution: Anyway look at this page, what describes a solution for redirecting problems.. I really don't think that it has anything to do with CKEditor. Or does CKEditor return the above posted data? Also this url could help you possibly: Stackoverflow Topic

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top