My new content class is missing

Author Message

Adolfo Barragán

Wednesday 01 January 2003 11:11:39 pm

I have created a new content class: I login as admin, I click in "classes" and I see a list of "Class Group". I pick "Content" an I get a list of content class, then I click on "New" button, an I enter the new content class attributes and "apply" changes.

eZPublish tell me "Input was stored sucesfully" but I don't see my new class. I clear cache and my new class is still missing.

I look at tables in database and there is a new row in "ezcontentclass" (and "ezcontentclass_classgroup") with my new class.

Why the admin interface don't show my new class?

Thanks in advance
Adolfo

Adolfo Barragán

Sunday 05 January 2003 3:23:48 am

> I have created a new content class...
>
> I look at tables in database and there is a new row in
> "ezcontentclass" (and "ezcontentclass_classgroup") with my
> new class.
>
> Why the admin interface don't show my new class?

Again, I reply myself, so anyboy will know what happen.

I think that it is a bug:

When we create a new class eZPublish assign a value of "1" to field "version_id". But the script /kernel/class/classlist.php fetch *allways* classes with a version_id of "0" (around line 94

$classids = & eZContentClassClassGroup::fetchClassList( 0, $GroupID, $asObject = true);
$classes_list = & eZContentClass::fetchList( 0,
$asObject = true,
false,
$sort,
$fields );

I we change version_id to 0 in tables ezcontenclass and ezcontentclass_classgroup our new content class show up in class list.

Happy new year
Adolfo

Claus Jensen

Friday 09 January 2004 4:56:42 am

Hello Adolfo,
What version are you using? I have some problems that could be related to this bug. Im using 3.3.1, 3.2.4 3.2.1 and such...

regards,
claÜs

Kåre Køhler Høvik

Friday 09 January 2004 6:01:29 am

This is probably releated to this bug : http://ez.no/developer/ez_publish_3/bug_reports/incorrect_work_in_classes

--
Kåre Høvik

Kåre Høvik

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

Main resources:

Total runtime0.7738 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.0313152.6406
Module start 'layout' 0.00540.0041 740.671939.4766
Module start 'content' 0.00950.7630 780.1484580.7969
Module end 'content' 0.77250.0013 1,360.945312.1484
Script end 0.7738  1,373.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.4182160.0002
Check MTime0.00120.1594160.0001
Mysql Total
Database connection0.00030.044710.0003
Mysqli_queries0.719292.9442620.0116
Looping result0.00060.0828600.0000
Template Total0.739495.620.3697
Template load0.00220.289520.0011
Template processing0.737195.264820.3686
Template load and register function0.00020.029910.0002
states
state_id_array0.00100.135010.0010
state_identifier_array0.00140.180420.0007
Override
Cache load0.00200.2560390.0001
Sytem overhead
Fetch class attribute can translate value0.00070.094830.0002
Fetch class attribute name0.00140.184450.0003
XML
Image XML parsing0.00070.096030.0002
class_abstraction
Instantiating content class attribute0.00000.001850.0000
General
dbfile0.00090.1111150.0001
String conversion0.00000.001640.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 6

Time used to render debug report: 0.0001 secs