Forums / Developer / MySQL syntax error while editing object

MySQL syntax error while editing object

Author Message

Marko Žmak

Tuesday 04 October 2005 4:33:47 am

I tried to edit an object in my site and got transaction failed error with the following debug info:

Error: eZMySQLDB  	Oct 04 2005 13:24:14

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-a8811327e49e04d60d116b3edb0259cc 	Oct 04 2005 13:24:14

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

I don't know why is this happening, it started a day ago and it seems that it happens for all objects that have links in XML Fields. I'm using eZ 3.7.0rc1. Also I'm using XMLArea editor for XML Fields. How can I fix this?

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

Hubert Farnsworth

Marko Žmak

Tuesday 04 October 2005 4:39:34 am

I've just discovered that the problem disappears when I disable XMLArea editor. Is there way to solve this problem so that I can use XMLArea?

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

Hubert Farnsworth

Gabriel Ambuehl

Tuesday 04 October 2005 5:11:20 am

You could try http://pubsvn.ez.no/community/trunk/extension/xmlarea-for-36/

It worked for me without errors in a short test in 3.6 and 3.7.

Visit http://triligon.org

Olivier Pierret

Wednesday 05 October 2005 8:58:13 am

This xmlarea-for-36 version did not work for me - failed with the following error:

Fatal error: A database transaction in eZ publish failed.

The current execution was stopped to prevent further problems.
You should contact the System Administrator of this site with the information on this page.
The current transaction ID is TRANSID-0fea1f36031226b3e45a4a440f6df8a3 and has been logged.
Please include the transaction ID and the current URL when contacting the system administrator.

Did someone succesfully test xmlarea with eZ publish (Version: 3.6.0 (3.6.0) Révision SVN: 11973)
?
many thanks

Olivier

Eirik Alfstad Johansen

Thursday 06 October 2005 12:47:57 am

Hi guys,

I replaced the original xmlarea with this one, and the first time I tried to edit an object, I got the same db transaction error. I then disabled the editor, edited the object in "text mode" wheere I removed the links, and then tried again.

This time, I got to editing mode, but I was only able to edit the second of the two WYSIWYG controls for the object. Also, the links created in the editor do not appear on the web site.

In conclusion, it seems like the original xmlarea editor actually works better for me on v. 3.6. Any idea what I could be doing wrong?

Thanks in advance!

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Marko Žmak

Saturday 08 October 2005 10:42:58 am

I think that the source of this problem is the new way of handling links in XML fields in eZ.

Could someone from eZ crew, or the creator of XMLArea contribution confirm this, and/or suggest a fix?

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

Hubert Farnsworth

eZ debug

Timing: Jan 18 2025 11:05:58
Script start
Timing: Jan 18 2025 11:05:58
Module start 'content'
Timing: Jan 18 2025 11:05:59
Module end 'content'
Timing: Jan 18 2025 11:05:59
Script end

Main resources:

Total runtime0.9047 sec
Peak memory usage4,096.0000 KB
Database Queries207

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 588.9453180.8281
Module start 'content' 0.00900.7166 769.7734652.7109
Module end 'content' 0.72560.1789 1,422.4844337.0703
Script end 0.9046  1,759.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.4943210.0002
Check MTime0.00160.1823210.0001
Mysql Total
Database connection0.00240.266710.0024
Mysqli_queries0.808089.32002070.0039
Looping result0.00260.28822050.0000
Template Total0.866295.720.4331
Template load0.00220.247320.0011
Template processing0.863995.498920.4320
Template load and register function0.00010.012510.0001
states
state_id_array0.00080.090010.0008
state_identifier_array0.00230.249820.0011
Override
Cache load0.00190.2108310.0001
Sytem overhead
Fetch class attribute can translate value0.00230.256350.0005
Fetch class attribute name0.00150.168480.0002
XML
Image XML parsing0.00170.191650.0003
class_abstraction
Instantiating content class attribute0.00000.0026100.0000
General
dbfile0.00370.4131350.0001
String conversion0.00000.000730.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs