Section 0 does not exist

Author Message

Benjamin Selmer

Wednesday 13 September 2006 2:59:15 am

I have upgraded a site from 3.4.0 to 3.8.3. Everything works just fine exept for one thing:

On the old site all images are in section 0. On the new site there is no section zero. This causes all images to be inaccessible unless you are logged in as administrator.

Is there a simple way of making them all part of another section? Anyone have a script? There are houndreds of objects with section 0 so doing it manually is not very tempting.

Or is there a way to make a section with the id zero? Or does that zero mean that these objects are not part of any section?

The images are scattered all over the content tree (not in the medialibrary). If I could move them all into the media library and then reasing the media section to the media folder, they should all become part ov the media section. But as I said, there are houndreds of them scattered all over the place. Is there a way of bulk moving all objects of a certain class?

Per-Espen Kindblad

Wednesday 13 September 2006 3:34:42 am

I haven't tried this, but maybe you can fix this in the db, by using:
update ezcontentobject set section_id=1 where contentclass_id =5;

I guess your image class got id=5

*Remember backup before you test* ;)

Best regards
Per-Espen Kindblad

Benjamin Selmer

Wednesday 13 September 2006 3:57:52 am

That will probably work.

Thanks.

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 05:05:38
Script start
Timing: Jan 18 2025 05:05:38
Module start 'layout'
Timing: Jan 18 2025 05:05:38
Module start 'content'
Timing: Jan 18 2025 05:05:40
Module end 'content'
Timing: Jan 18 2025 05:05:40
Script end

Main resources:

Total runtime1.4284 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.9375152.6250
Module start 'layout' 0.00520.0027 740.562539.4453
Module start 'content' 0.00801.4185 780.0078510.7188
Module end 'content' 1.42650.0019 1,290.726612.1641
Script end 1.4283  1,302.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2442160.0002
Check MTime0.00140.0958160.0001
Mysql Total
Database connection0.00060.044910.0006
Mysqli_queries1.378496.5055570.0242
Looping result0.00050.0341550.0000
Template Total1.387197.120.6936
Template load0.00190.130120.0009
Template processing1.385396.982420.6926
Template load and register function0.00010.006910.0001
states
state_id_array0.00190.132410.0019
state_identifier_array0.00590.410720.0029
Override
Cache load0.00150.1074210.0001
Sytem overhead
Fetch class attribute can translate value0.00060.041620.0003
Fetch class attribute name0.00120.082150.0002
XML
Image XML parsing0.00080.057820.0004
class_abstraction
Instantiating content class attribute0.00000.000860.0000
General
dbfile0.00110.0778190.0001
String conversion0.00000.000540.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0003 secs