Shop Confirm Order fails: Fatal error: A database...

Author Message

Maarten Holland

Monday 31 July 2006 3:05:48 am

Hi everyone,

I'm running 3.7 and created some products. When testing, I've choosen 'add to basket', set quantity to one, filled in my personal details and clicked 'confirm' in the final screen. At that point an error is returned:

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

ezPublish error.log shows:

Query error: Access denied for user 'myusername'@'localhost' to database 'mydatabase'.
Query: LOCK TABLES ezorder WRITE. Transaction in progress failed due to DB error, transaction was rollbacked. Transaction ID is TRANSID-f8b2b30blabla07b17.

I've checked the MySQL username and database: Both are correct. The order IS inserted into table 'ezorder'.

I've tried this both as anonymous user and administrator with full control.

I truly hope you can shine some light on this problem.

Your help is highly appreciated.

Cheers,

Maarten

Pascal Specht

Friday 08 June 2007 6:54:32 am

Hello,

this still may happen in 3.9.2 and is not a bug in the shop system.
Turning on SQL Debug information was very precious to find the origin of the problem:

Error: eZMySQLDB
Access denied for user 'johndoe'@'localhost' to database 'mylovelycustomer'. Query: LOCK TABLES ezorder WRITE

... well, the user hadn't the LOCK table authorization...

Hope this helps others!

Pascal

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 22:24:02
Script start
Timing: Jan 18 2025 22:24:02
Module start 'layout'
Timing: Jan 18 2025 22:24:02
Module start 'content'
Timing: Jan 18 2025 22:24:02
Module end 'content'
Timing: Jan 18 2025 22:24:02
Script end

Main resources:

Total runtime0.0150 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.0469152.6406
Module start 'layout' 0.00590.0027 740.687539.4922
Module start 'content' 0.00860.0044 780.179789.3672
Module end 'content' 0.01300.0019 869.546930.3047
Script end 0.0149  899.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002416.2702140.0002
Check MTime0.00117.4153140.0001
Mysql Total
Database connection0.00085.290010.0008
Mysqli_queries0.002114.130630.0007
Looping result0.00000.081310.0000
Template Total0.001610.710.0016
Template load0.00095.938910.0009
Template processing0.00074.688910.0007
Override
Cache load0.00064.199510.0006
General
dbfile0.00031.867080.0000
String conversion0.00000.047840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs