Forums / Developer / XMLArea extension development

XMLArea extension development

Author Message

liu spider

Tuesday 29 November 2005 7:09:37 am

Thanks, STEVO.

Absolutely, we should.

As you are back, could you please merge the code in for-3.6 to xmlarea and branch the existing code somewhere else?

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

STEVO +

Tuesday 29 November 2005 7:34:59 am

erm, actually i'm not that confident with this svn business. i'd rather someone else did it if they can!

liu spider

Tuesday 29 November 2005 7:59:52 am

ok, I will try to do it

first, where do you think we shall branch the existing xmlarea code for 3.5?

what about
http://pubsvn.ez.no/community/stable/3.5/extension/xmlarea ?

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

STEVO +

Tuesday 29 November 2005 8:17:44 am

sounds good to me, liu.

Tomasz Jakubowski

Tuesday 29 November 2005 12:49:30 pm

Hi,
I have problem with link tag.
When object contains link tag, for example: <link href='/'>dsfdgf</link>
then edit object genrate: Fatal error: A database transaction in eZ publish failed.

Debug output:

Warning: PHP  	Nov 29 2005 21:34:59

Undefined index:  first_param in s:\klienci\tomp\ez\extension\xmlarea\autoloads\template_xmlarea_operator.php on line 67

Error: eZTemplate @ extension/xmlarea/design/standard/templates/content/datatype/edit/ezxmltext.tpl:15[20] 	Nov 29 2005 21:34:59

Unknown template variable 'edit_lang' in namespace 'ContentAttribute'

Error: eZMySQLDB 	Nov 29 2005 21:34:59

Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1. Query: SELECT * FROM ezurl WHERE id IN (  )

Error: eZDBInterface::commit TRANSID-2202d955f0cf8f76c167b7283253ba02 	Nov 29 2005 21:34:59

Transaction in progress failed due to DB error, transaction was rollbacked. Transaction ID is TRANSID-2202d955f0cf8f76c167b7283253ba02.
Notice: eZMySQLDB::query(-1 rows, 0.376 ms) query number per page:38  	Nov 29 2005 20:55:55

SELECT * FROM ezurl WHERE id IN (  )

Error: eZMySQLDB 	Nov 29 2005 20:55:55

Query error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 1. Query: SELECT * FROM ezurl WHERE id IN (  )

Notice: eZMySQLDB::query(0 rows, 0.864 ms) query number per page:39 	Nov 29 2005 20:55:55

UNLOCK TABLES

Error: eZDBInterface::commit TRANSID-e5b17c669863b20cd75631060729a500 	Nov 29 2005 20:55:55

Transaction in progress failed due to DB error, transaction was rollbacked. Transaction ID is TRANSID-e5b17c669863b20cd75631060729a500.

ez: 3.6 rev 14218
mysql: 4.1.12
lang: pol-PL

thanks,
Tompson

STEVO +

Wednesday 30 November 2005 5:30:08 am

tomasz, you need to use this version

http://pubsvn.ez.no/viewcvs/community/trunk/extension/xmlarea-for-36/

which is compatable with 3.6+

Tomasz Jakubowski

Wednesday 30 November 2005 3:26:16 pm

Hi

I understand where is the problem. Change name of extension folder from xmlarea-for-36 to xmlarea solve problem ;)

thanks,
Tompson

liu spider

Wednesday 14 December 2005 5:42:15 pm

I copied current xmlarea to http://pubsvn.ez.no/community/stable/3.5/extension/

STEVO+, could you check out xmlarea-for-3.6 and commit to xmlarea manually?

sorry for the delay

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

Samuel Sauder

Thursday 12 January 2006 8:56:28 am

Tomasz,
Renaming the directory did not work for me. Once I created a symbolic link

ln -sv xmlarea-for-36 extension/xmlarea

then it did. There seems to be references to both ways in the config package.

(using revision 807 xmlarea)

Pasi Suominen

Friday 03 February 2006 4:21:53 pm

i'm getting error when i try to modify embedded picture...

ezpublish 3.7.2 and xmlarea-for-36

Fatal error: Call to undefined function: stripcomments() in /var/www/xxx/htdocs/lib/ezxml/classes/ezxml.php on line 154
Fatal error: eZ publish did not finish its request

The execution of eZ publish was abruptly ended, the debug output is present below.

Warning: Invalid argument supplied for foreach() in /var/www/xxx/htdocs/kernel/common/eztemplatedesignresource.php on line 854

Notice: Undefined variable: matchFileArray in /var/www/xxx/htdocs/kernel/common/eztemplatedesignresource.php on line 933

Warning: array_keys(): The first argument should be an array in /var/www/xxx/htdocs/kernel/common/eztemplatedesignresource.php on line 524

Warning: Invalid argument supplied for foreach() in /var/www/xxx/htdocs/kernel/common/eztemplatedesignresource.php on line 524

Warning: Invalid argument supplied for foreach() in /var/www/xxx/htdocs/kernel/common/eztemplatedesignresource.php on line 854

Notice: Undefined variable: matchFileArray in /var/www/xxx/htdocs/kernel/common/eztemplatedesignresource.php on line

Fraser Hore

Sunday 05 March 2006 7:43:02 am

I'm having trouble adding a simple link to a document. I'm using xmlarea-for-36 on ez3.7.3, which is installed in the root directory. I put the document in the root directory.

when i enter: href='/filename.pdf' this gets published: href='index.php/siteaccessname/filename.pdf

Clicking the link brings up a Module doesn't Exist error.

Any help would be much appreciated!

Cheers,

Fraser

Betsy Gamrat

Sunday 05 March 2006 8:12:41 am

You may be able to use relative links (../../) to indicate the correct path.

For example -

This XMLText link:

<link href='../../../robots.wizard/doc.htm' target='_blank'>User Manual</link>

Yields this HTML code:

<a href="/ez/index.php/plain/../../../robots.wizard/doc.htm" target="_blank">User Manual</a>

The robots.wizard directory is at the same level as the ez directory.

You can also use the full URL (http://domain.com/file.pdf).

Good luck.

Fraser Hore

Sunday 05 March 2006 9:44:37 am

Thanks Betsy! Both of your suggestions worked for the first publish. But if i edit again, the ../../ or the http://www.mydomain.com are stripped away. Very strange. I have to reenter one of these solutions otherwise index.php/mysiteacces is prepended.

Oh well, at least i have a solution to my immediate problem which helps a lot!

Cheers,

Fraser

Betsy Gamrat

Monday 06 March 2006 5:32:46 am

Fraser,

Another workaround is to create a symlink in the eZ directory that points to the actual source. You can use ln -s /target_dir and then refer to target dir as if it is really in the eZ directory.

These are just workarounds, there are probably better solutions, but sometimes, you need the quickest solution, before the best.

Good luck

Marko Žmak

Wednesday 03 May 2006 6:03:52 am

I have a problem with   in xmlarea. Tried what was suggested here in this thread but didn't work. I also posted the problem in Setup and Design section:

http://ez.no/community/forum/setup_design/xmlarea_problem_with_nbsp

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Lucas Rocha

Tuesday 23 May 2006 7:04:20 am

For those who are having problems with xmlarea on eZ Publish >= 3.7.x at the 154 line of /var/www/xxx/htdocs/lib/ezxml/classes/ezxml.php, you need to replace all domTree method static calls with instance calls inside xmlarea code.

liu spider

Tuesday 23 May 2006 7:07:37 am

this extension has no update for a long time

you may want to try sjsd

http://liucougar.scim-im.org
SCIM Input Method Platform
http://scim.sf.net
SJSD Online Editor
http://sf.net/projects/sjsd

eZ debug

Timing: Jan 18 2025 04:29:19
Script start
Timing: Jan 18 2025 04:29:19
Module start 'content'
Timing: Jan 18 2025 04:29:21
Module end 'content'
Timing: Jan 18 2025 04:29:21
Script end

Main resources:

Total runtime1.6855 sec
Peak memory usage4,096.0000 KB
Database Queries266

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0079 588.2422180.8359
Module start 'content' 0.00791.4737 769.0781964.6172
Module end 'content' 1.48160.2038 1,733.6953380.4375
Script end 1.6854  2,114.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.2603210.0002
Check MTime0.00140.0860210.0001
Mysql Total
Database connection0.00140.081110.0014
Mysqli_queries1.553192.14572660.0058
Looping result0.00360.21472640.0000
Template Total1.647197.720.8235
Template load0.00270.159220.0013
Template processing1.644497.563620.8222
Template load and register function0.00010.008810.0001
states
state_id_array0.00160.097410.0016
state_identifier_array0.00240.140520.0012
Override
Cache load0.00250.1486980.0000
Sytem overhead
Fetch class attribute can translate value0.00180.1072100.0002
Fetch class attribute name0.00130.0795220.0001
XML
Image XML parsing0.00370.2182100.0004
class_abstraction
Instantiating content class attribute0.00010.0033290.0000
General
dbfile0.00300.1776530.0001
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
12content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
17content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
24content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 66
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs