Share » Forums » Install & configuration » DB transaction error when creating...

DB transaction error when creating new objects

DB transaction error when creating new objects

Tuesday 06 June 2006 9:19:14 pm - 4 replies

Author Message

Kristof Coomans

Tuesday 06 June 2006 11:24:04 pm

Hi James

You can put

var_dump( debug_backtrace() );

inside eZMySQLDB (right before the query gets executed).

I recommend you to upgrade to the latest version of the 3.6 branch. It maybe could be a bug that has been fixed.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

James Robertson

Thursday 08 June 2006 10:11:31 pm

Thanks for the tip Kristof. :-)

[No need to use debug_backtrace() however as I have Zend Studio with breakpoints and a call stack view - lucky me ;-]

Have finally tracked down the error in our override template for design/admin/templates/content/edit.tpl. Seems that '{$object.main_parent_node_id}' was causing the fatal DB Transaction error, which is a bit poor.

[I'm guessing main_node_id is not set for new (unpublished) objects and therefore the lookup of main_parent_node_id was causing eZ publish to crash.]

Kristof Coomans

Thursday 08 June 2006 11:19:15 pm

That's a bug I've reported a while ago: http://ez.no/community/bugs/fatal_error_with_attribute_object_main_parent_node_id

It has been fixed in 3.6.5.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

James Robertson

Monday 12 June 2006 3:06:43 pm

Nice work Kristof. I guess you were right about upgrading to the latest version of eZ publish :-)

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu