Wednesday 12 April 2006 5:56:35 pm - 236 replies
This thread is for the project SJSD (contribute: http://ez.no/community/contribs/a...d_real_fckeditor_xmltext_integration )
Please ask your questions in this thread rather in the contribution section.
If you do not expect replys, please add comment in the contribute section ![]()
<b>HOWTO DEBUG this extension</b>
As the nature of this project, there are two main sources of bugs: javascript running in client side and the server side php scripts
DEBUG Javascript:
*Firefox (at least 1.5) comes with a javascript console, and it can give precise information about where and why some commands in the javascripts fail.
*IE: without Microsoft script editor/debugger, the error message is basically useless. One of them is recommanded (Microsoft script debugger is free for downloading).
DEBUG PHP:
When using the editor, there are two buttons at the end of the toolbar: the first one will show the current html source of the editor. The second one is more interesting: onloading, it will communicate with ez publish server to get the converted xml from the current html source. There will be a button "Output" after the xml is displayed, it will ask the server to convert the xml back to html, and show it in the window. After this, a ok button will appear, which can be used to set the new generated html back to the sjsd editor.
<b>BEFORE REPORT BUGS</b>
Please check bugs and "feature requests" sections in our homepage: http://sf.net/projects/scim
if it is not there, you can file one (the prefered method), or state it here
Modified on Tuesday 11 January 2011 9:59:40 am by Nicolas Pastorino
Saturday 15 April 2006 12:33:03 am
Hi, I have the same problem as Viktor(Beren).
The last button(ez source) doesn't show anything for me(only loading), in javascript console, I get this Error: uncaught exception: Permission denied to call method XMLHttpRequest.open.
I try to edit an article, which has 2 xml fields, in the first, after publishing, tables which I create disappers, but text is published. In the second field, the same thing. Then, when I try to edit this article, the first xml field has content(without tables), but the second hasn't.
It is a very strange behaviour, it was all right in version 0.1..
Best regards, Zdenek
Saturday 15 April 2006 2:41:46 am
to Zdenek Ziegler:
can you use gmail? it seems that xhttprequest is disabled in your browser. which browser? IE or firefox/mozilla?
What's the input content in your two textareas?
the core of SJSD 0.2 is very different from 0.1, but it works much better here and overcome a lot of bugs in 0.1
Saturday 15 April 2006 11:44:40 am
I can't test gmail at the moment, because I don't have an account there..I'm using Firefox 1.5.0.2 and IE6, and in both ez source button doesn't work(shows only loading..).
<strong>test text</strong> some test link: <a href="http://www.google.com">ink</a>, some table:
<table width="200" cellspacing="1" cellpadding="1" border="1" align="" summary="">
<tbody>
<tr>
<td>a<br /></td>
<td>b<br /></td>
</tr>
<tr>
<td>c<br /></td>
<td>d<br /></td>
</tr>
<tr>
<td>e<br /></td>
<td>f<br /></td>
</tr>
</tbody>
</table>
After publishing, both text fields doesn't show the table, and when I try to edit, the second field is empty, in the first rests "some table:".
I tried it once again, and now, I can't publish it, because it states: intro: input required...
Saturday 15 April 2006 1:26:25 pm
I want to refine my message.
The content disappears when I want to <i>re-edit</i> the SJSD generated contents.
First this is the EZ Source:
<?xml version="1.0"?>
<section xmlns:image="http://ez.no/namespaces/ezpublish3/image/"
xmlns:xhtml="http://ez.no/namespaces/ezpublish3/xhtml/"
xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/">
<header level="1">Documentation and guidance</header>
<paragraph>The <link target="_blank"
href="http://ez.no/ez_publish/documentation">eZ publish documentation</link> covers common topics related to the setup and daily use of the eZ publish content management system/framework. In addition, it also covers some advanced topics. People who are unfamiliar with eZ publish should at least read the &quot;eZ publish basics&quot; chapter.</paragraph>
<paragraph>If you're unable to find an answer/solution to a specific question/problem within the documentation pages, you should make use of the official <link target="_blank"
href="http://ez.no/community/forum">eZ publish forum</link>. People who need professional help should purchase <link target="_blank"
href="http://ez.no/services/support">support</link> or <link target="_blank"
href="http://ez.no/services/consulting">consulting</link> services. It is also possible to sign up for various <link target="_blank"
href="http://ez.no/services/training">training sessions</link>.</paragraph>
<paragraph>For more information about eZ publish and other products/services from eZ systems, please visit <link target="_blank"
href="http://ez.no">ez.no</link>.</paragraph>
</section>
But when I re-edit, only this:
<?xml version="1.0"?>
I try out the editor on Plain site, before I use it on the effective site... (
)
Update: I think the problem have to do with "Enable/Disable editor" button, because sometimes I see the content, but after click on this button the content disappears.
Modified on Saturday 15 April 2006 1:44:11 pm by Viktor Juhász
Sunday 16 April 2006 2:48:08 am
to Zdenek Ziegler:
you have to make the ez source button work first, otherwise something is definitely wrong
try firebug (a extension to firefox) and see where it trys to access, and what the response.
to Viktor Juhász:
you use svn right? please svn up your copy, it should ok now
Monday 17 April 2006 2:31:35 am
Hi, I tried to use the extension in my environment (ezpublish 3.7.5 - apache 2) with both virtual host based (activating direct access to .html, .xml and .js files through rewrite rule) and URL based installations.
With both of them I had this error trying to publish an article:
Fatal error: Call to undefined function: stripcomments() in /home/httpd/SITE_NAME/html/lib/ezxml/classes/ezxml.php on line 147
Fatal error eZ publish did not finish its request
Javascript console (Firefox 1.5) was OK.
Could you help me?
Thanks
roberto
Monday 17 April 2006 2:05:14 pm
I am unable to get it to work as well. I get the following error message in my apache logs:
File does not exist: /var/www/ezpublish/extension/sjsd/FCKeditor/fckeditor.js
Also:
I notice the Disable editor box is grayed but if I click it I get the following error message:
Fatal error: Call to undefined function: stripcomments() in /var/www/ezpublish/lib/ezxml/classes/ezxml.php on line 147
Fatal error: eZ publish did not finish its request
The execution of eZ publish was abruptly ended, the debug output is present below.
Monday 17 April 2006 7:41:51 pm
to Roberto Antoniazzi:
as I did not modify any thing in ez publish core, so I think you have a broken eZ installation. please try to reinstall your ez
to Collin Boyce:
please follow the install instruction: you need to download fckeditor first, and unpack it under the correct dir
Monday 17 April 2006 9:50:50 pm
are you sure the problem is a eZ publish broken installation? The row with the error (number 147) is this:
$xmlDoc = $this->stripComments( $xmlDoc );
I print the values of $this through print_r($this) obtaining
sjsdxmlinput Object
(
[SectionArray] => Array
(
[0] => paragraph
[1] => section
[2] => header
)
...
so it's the "sjsdxmlinput" class (inside the extension) which miss the stripComments() function, not the base eZ publish installation.
Any suggestion?
thanks
roberto
Monday 17 April 2006 11:11:41 pm
svn instruction:
http://sourceforge.net/svn/?group_id=164632
Tuesday 18 April 2006 9:36:01 am
I installed svn version (thanks for the link) and the error disappeared.
Below the results trying to publish a standard article with virtual host based and url based installation respectively (eZp 3.7.5)
virtual host based:
pushing the EZ Source button of the editor for the "Intro" field and checking javascript console: uncaught exception: Permission denied to call method XMLHttpRequest.open).
Trying to publish the article I had the message about the missing field Intro (!) and so the draft could not be stored.
url based:
pushing the EZ Source button of the editor for the "Intro" field and checking javascript console: OK, the source of the field was:
<?xml version="1.0"?>
<section xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/"
xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/"
xmlns:custom="http://ez.no/namespaces/ezpublish3/custom/">
<paragraph>hello</paragraph>
</section>
Trying to publish the article I had the same message about the missing field Intro (!) and so the draft could not be stored.
I still need your help.
roberto
Tuesday 18 April 2006 10:37:09 am
Thanks again for a great extension.
Version 0.1 worked well in Firefox but not IE. I just upgraded to version 0.2 but now when i click on the publish button i get the following message:
Fatal error: eZ publish did not finish its request The execution of eZ publish was abruptly ended, the debug output is present below.
Any ideas?
Thanks,
Fraser
Tuesday 18 April 2006 1:00:53 pm
I have the following messages when i upgrade to 0.2 version on ezp3.6.6 and php4.3.9
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /usr/local/apache/www/htdocs/bip/extension/sjsd/ezxmltext/handlers/input/sjsdxmlinput.php on line 921 Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /usr/local/apache/www/htdocs/bip/extension/sjsd/ezxmltext/handlers/input/sjsdxmlinput.php on line 926
Modified on Tuesday 18 April 2006 1:02:11 pm by Dariusz Włodarczyk
Tuesday 18 April 2006 3:18:53 pm
to Roberto Antoniazzi:
can you find out the address the xhttprequest.open function trying to open in your virtual host setup? it seems it does have some issues with virtual host installation.
to Sinisa:
what's is the content before you publish? (please give me the html source, via the second last button)
to Fraser Hore:
that's already fixed in svn
to Dariusz Wlodarczyk:
will fix them soon
Tuesday 18 April 2006 4:51:23 pm
I have another problem with editor...
When i write some attribute text in polish language and publish node, I don't see polish diacritical characters when view this node content. The diacritical characters are written to the database, but encoding of xmltext is not set in field header.
<?xml version="1.0"?>
should be
<?xml version="1.0" encoding="UTF-8"?>
UTF-8 is only for example ![]()
Modified on Tuesday 18 April 2006 4:54:27 pm by Dariusz Włodarczyk
Tuesday 18 April 2006 4:59:29 pm
Hi Iiu
this is the code:
<html>
<head>
<title></title>
</head>
<body>
this is what i want to publish
</body>
</html>
Btw, if I try to see EZ code (last button) I get javascript error:
line:61 char:5 error: '1.length' is null or not an object
Best regards,
Sinisa
Modified on Tuesday 18 April 2006 5:03:34 pm by Siniša Šehović
You must be logged in to post messages in this topic!