can't edit object assigned to root node (2)

Author Message

Andrew Kelly

Tuesday 05 June 2007 7:29:25 am

Hi all,

I've just upgraded from 3.8.6 to 3.8.8 and suddenly I cannot edit the object at my root node (object ID 1, Node ID 2). It keeps chucking a fatal error with transaction ID in the browser, and the error logs tell me
Error: error executing query: DELETE FROM eznode_assignment WHERE id='' ERROR: invalid input syntax for integer: ""

I've tracked this to the purge function in kernel/classes/eznodeassignment.php (which incidentally is unchanged compared to the previous version).

Anybody seen something like this before?

Andy

Andrew Kelly

Tuesday 07 August 2007 6:08:47 am

Still baffled by this one, folks, and looking for any help out there.

There's an additional problem, very likely related. If I'm embedding an object and choose to select an existion object, I get an error if I try to "go upstream" of node 2. Basically this call:

/layout/set/dialog/content/browse/1

returns an error, "The requested object is not available...."

What is causing all this?

Anybody?

Andy

Kristof Coomans

Friday 10 August 2007 12:34:48 am

Hello Andrew

Looks like you have some serious troubles. Did you run all database update scripts? The issue didn't occur on 3.8.6, did it?

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

Andrew Kelly

Friday 10 August 2007 6:31:06 am

Hi Kristof, long time no read ;-)

You know, I can't really answer that question for you right now, not with any real accuracy anyway. I do know that I first encountered this error condition after the upgrade to 3.8.8. And I do know that this condtion did not exist immediately after the upgrade to 3.8.6. But I cannot say if the condition appeared immediately following the upgrade to 3.8.8 or if it was already present at that time. Editing the root node isn't something we really need to do much, you see.

To more tightly localise when this might have first appeared, I'm going to have to play in some backups and check things out. Sadly, though, the disks I need are off-site in a vault and everybody who has access is currently away on vacation and will be for a while yet. (How's that for great planning at the boss-level ;-) ).

My guts are telling me that the problem has something to do with a node-assignment record disappearing, or something of that nature. It's definitely in the db, at any rate.

For what it's worth, I upgraded to 3.9.2 two days ago, and the condition persists.

Out of curiosity, how the heck is node 1 maintained in the DB. I can't find a direct assignment in any table anywhere. The closest I can come is finding it listed (correctly) as parent node of several others.

Andy

Andrew Kelly

Wednesday 19 September 2007 3:35:43 am

Just a follow up, in case anybody ever bumps into this as well.

I've been able to verify that the upgrade from 3.8.6 to 3.8.8 did not have any involvement. The "breakage" occurred prior to and independantely of the upgrade.
It's impossible for me to reconstruct HOW it happened, but WHAT happened was pretty much what I had suspected. In table 'ezcontentobject_tree', the record for contentobject_id=1 had gone missing. A reconstruction of this record solved this, and several other related problems.

Andy

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 11:08:12
Script start
Timing: Jan 18 2025 11:08:12
Module start 'layout'
Timing: Jan 18 2025 11:08:12
Module start 'content'
Timing: Jan 18 2025 11:08:13
Module end 'content'
Timing: Jan 18 2025 11:08:13
Script end

Main resources:

Total runtime0.6319 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0114 588.0391152.6406
Module start 'layout' 0.01150.0049 740.679739.4766
Module start 'content' 0.01630.6143 780.1563568.8438
Module end 'content' 0.63060.0012 1,349.000016.1250
Script end 0.6318  1,365.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.7391160.0003
Check MTime0.00190.3029160.0001
Mysql Total
Database connection0.00160.248210.0016
Mysqli_queries0.565589.5004630.0090
Looping result0.00110.1739610.0000
Template Total0.587693.020.2938
Template load0.00260.405320.0013
Template processing0.585092.586320.2925
Template load and register function0.00010.014310.0001
states
state_id_array0.00130.212710.0013
state_identifier_array0.00160.245920.0008
Override
Cache load0.00220.3559380.0001
Sytem overhead
Fetch class attribute can translate value0.00060.098920.0003
Fetch class attribute name0.00110.178370.0002
XML
Image XML parsing0.00100.150920.0005
class_abstraction
Instantiating content class attribute0.00000.0036100.0000
General
dbfile0.00100.1587220.0000
String conversion0.00000.002340.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/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/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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