Problems, need help? Have a tip or advice? Post it here.
17 posts Page 1 of 2
I just installed Couch, looks great by the way.
I was following the tutorial but than this problem occured.

Code: Select all
<?php require_once( 'couch/cms.php' ); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 TRANSITIONAL//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>sdadas</title>

<style>      

</style>

</head>

<body>

<cms:editable name='main' type='richtext'>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas elementum ornare mauris. Vestibulum sapien erat, congue in, euismod vel, pulvinar et, orci. Donec sed diam. Sed commodo risus et leo. Duis consequat fringilla urna. Aenean ut arcu id quam faucibus elementum. Etiam varius dolor sed enim. Maecenas est. Donec varius ...</cms:editable>

</body>
</html>
<?php COUCH::invoke(); ?>


I am using this code to demonstrate it, looks good to me.
But when I go to admin, the screen is empty...
As shown in the added file.

Can you help?

Attachments

Hi,

This looks like a JavaScript related error.
The editable region has been created alright (try changing its type from 'richtext; to 'textarea' and it should appear) - it is the CKEditor that is not showing up.

Could you please let me know which browser you are using? Does it display any JavaScript error in the status bar?
Also are you testing Couch out on your local machine using WAMP?
Indeed textarea does work, but of course not ideal.
I tested it in Firefox 3.6 and Safari, normally both are not a problem.
This is running on my own server, other CMS like Joomla work with no problem.
Got any other hints or trics?

There is no javascript error.
Well if you look in the source in admin, this can be found.

Code: Select all
<div class="error">
                    Javascript is disabled or is not supported by your browser.<br>
                     Please upgrade your browser or <a title="Enable Javascript in your browser" href="http://www.google.com/support/bin/answer.py?answer=23852"><b>enable Javascript</b></a> to use the Admin Panel.


But it is enabled, trust me!

I will PM you the link.
Hi,

Tested your site in -
    Chrome 11
    FF 3.6
    FF 4
    IE9
    Safari
and CKEditor seems to be working just fine in every single of these browsers (I am PMing you screenshots of all the tested browsers).

The JavaScript message you mentioned is wrapped up in 'noscript' tags so we can ignore that.
Bottom-line - the problem has to be local to the machine you are using the browsers from.
Have you tried clearing up the browser cache and accessing your site afresh?
Thank you for the effort so far.
I cleared my cache but it won't help.
I am using Apple but this should not make a difference.
Hmm.. do you have a demo I can try so than we can conclude if it is OS/Browser compatible.
I have set up a demo for you and used the exact template you posted.
Am PMing you the details. Please check in different browsers and do let us know your findings.
In Safari 5.0.5, Chrome 11 and Firefox 4 it still keeps the same.
The screen stays blank, also in the demo you gave me permission to.
I have to say again, good and fast support but it still doesn't work.
I hope you can do something with this.
I checked it with friends Mac and he tells me in Firefox it won't work but for him in Safari it did work.
So there seems to be some problems with this, and if I am the first one probably aimed at Apple.
Thank you very much for the feedback.

A sizable chunk of Couch users, being designers, use it on Mac and we have never had any reports (so far) - so this report is intriguing.
Perhaps it has to do something with the upgraded CKEditor used in the latest version.

I have installed the previous version of Couch on the demo site I gave you.
Could you very kindly login into it again and tell us if you still have the same problem?
Hi,

OK, I think I know what is going wrong.

Please find couch\includes\ckeditor\config.js on your server and modify it from this -
Code: Select all
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
   // Define changes to default configuration here. For example:
   // config.language = 'fr';
   // config.uiColor = '#AADC6E';
};

to this -
Code: Select all
/*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
   // Define changes to default configuration here. For example:
   // config.language = 'fr';
   // config.uiColor = '#AADC6E';

   config.language = 'en';
};

We are specifying the language file that CKEditor should load.
What is happening is that on non-English locales CKEditor tries to load the lang file that corresponds to the locale and where it fails to find such a file it simply dies.

I think this should rectify the problem.
I'd appreciate if you could let me know if indeed it does.

Thanks.
This is the fix!
Thank you for all the help you provided.
17 posts Page 1 of 2