Forums / General / Problem when I publish an object with special chars

Problem when I publish an object with special chars

Author Message

AGUENOT Nicolas

Wednesday 27 October 2010 9:15:12 am

Hi,
When I publish an object with special chars (for example lambda), I've an error on a red block :

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-xxxxxxxxxxxxxxxxxxxxx and has been logged.
Please include the transaction ID and the current URL when contacting the 
system administrator.

I've this problem just when I publish. When I save my draft, my special chars is on my content and I can continue my modifications.
My database is in MyISAM but I was tested in InnoDb with the same result.
The charset is UTF8_general_ci.
Thanks for your solutions.

Gaetano Giunta

Wednesday 27 October 2010 12:14:34 pm

You will find in the file var/error.log the offending sql query. You can post it here for further analysis

Principal Consultant International Business
Member of the Community Project Board

AGUENOT Nicolas

Thursday 28 October 2010 12:22:28 am

Il this file var/log/error.log, I've these error :

eZMySQLiDB: Query error (1271): Illegal mix of collations for operation '
 IN '. Query: SELECT * FROM ezsearch_word WHERE word IN ( ......)

and :

eZDBInterface::commit TRANSID-xxxxxxxxxxxx:Transaction in progress 
failed due to DB error, transaction was rollbacked. Transaction ID is 
TRANSID-xxxxxxxxx.

I think the second error is related to the first.

In addition, my specialChars was not well encoded in the first request.
For example, when I insert the lambda special char, I've this λ in my request.

Thanks for your solutions.

Edi Modrić

Thursday 28 October 2010 12:38:31 am

If your database is MyISAM, I presume your installation is an older version of eZ Publish or upgrade from older version.

Maybe you can try to backup data, drop and recreate the table in question and then restore data?

eZ Publish certified developer

http://ez.no/certification/verify/350658

AGUENOT Nicolas

Thursday 28 October 2010 12:44:26 am

I've just discovered that my field "word" on my table "ezsearch_word" was encoded in "latin1_swedish".

I changed it to "utf8_general_ci" and I my problem was solved.

Thanks a lot for your help.

eZ debug

Timing: Jan 29 2025 13:44:06
Script start
Timing: Jan 29 2025 13:44:06
Module start 'content'
Timing: Jan 29 2025 13:44:06
Module end 'content'
Timing: Jan 29 2025 13:44:07
Script end

Main resources:

Total runtime0.1291 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.0703180.8281
Module start 'content' 0.00580.0054 768.898498.1328
Module end 'content' 0.01120.1178 867.0313527.1094
Script end 0.1290  1,394.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00312.3667200.0002
Check MTime0.00120.9402200.0001
Mysql Total
Database connection0.00090.662310.0009
Mysqli_queries0.087867.97611410.0006
Looping result0.00100.78531390.0000
Template Total0.117591.010.1175
Template load0.00060.501210.0006
Template processing0.116890.506610.1168
Override
Cache load0.00050.357210.0005
Sytem overhead
Fetch class attribute can translate value0.00080.588610.0008
XML
Image XML parsing0.00020.180610.0002
General
dbfile0.00473.6614200.0002
String conversion0.00000.003330.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs