Forums / Developer / problem with creating classes (report as a bug?)

problem with creating classes (report as a bug?)

Author Message

Marko Žmak

Monday 22 August 2005 11:27:20 pm

This is what I did:

- made a copy of one of my custom classes
- edited that copy and changed it's display name and identifier to "menu_item". There was already a class with that identifier, so eZ complained about it.
- then I deleted the exsisting class with "menu_item" identifier and tried again to change the identifier of the copied class to it.

And then the problems started. I couldn't change the name and identifier of the copied class. Then I found out that I couldn't make any new classes. Creating new class works OK until I get to save it. I get an error message:

Object ID not valid
Object not available

Also when I edit an exsisting class and try to save it, nothing happens, the class remains unchanged.

I've tried to clear the cache, nothing happens. Before this incident I was able to create and modify all my classes freely.

So did anyone have problems with this?

Should I report this as a bug?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Frederik Holljen

Monday 22 August 2005 11:48:20 pm

Definitely a bug. Please report. It might be worth it to check if you can reproduce it from a clean installation. If you can't it may be very hard to fix it.

Marko Žmak

Wednesday 24 August 2005 1:11:01 am

Hm... Today I just logged in the admin interface, and the problem was misteriously gone. I can change the classes freely again. There were no changes to the sistem in the meantime.

Do I still report this as a BUG?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Bertrand Dunogier

Sunday 28 August 2005 11:07:40 am

Sometimes weird behaviour appears during dev and goes away the next day... most prolly related to sessions. Did you try to clear all cache when the problem was there ?

Marko Žmak

Sunday 28 August 2005 11:38:48 am

Yep I tried clearing the cache several times, from the admin interface, using clearcache.sh, and also manually deleting the cache folder. But nothing happened. Only after a day (during which I did nothing) the problem disappeared. ???

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Bertrand Dunogier

Monday 29 August 2005 10:34:20 am

The same stuff happened to me due to _ I think _ session stuff... next time it happens (I'm not wishing any bad stuff to you ^^), try killing the session from Setup/Sessions... it's as far as I know the only place after cache where stuff is stored.

eZ debug

Timing: Jan 18 2025 16:23:40
Script start
Timing: Jan 18 2025 16:23:40
Module start 'content'
Timing: Jan 18 2025 16:23:40
Module end 'content'
Timing: Jan 18 2025 16:23:41
Script end

Main resources:

Total runtime0.7848 sec
Peak memory usage4,096.0000 KB
Database Queries205

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 587.8438180.8125
Module start 'content' 0.00660.6731 768.6563618.5391
Module end 'content' 0.67960.1051 1,387.1953337.0547
Script end 0.7847  1,724.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4661210.0002
Check MTime0.00140.1738210.0001
Mysql Total
Database connection0.00080.100810.0008
Mysqli_queries0.717591.43172050.0035
Looping result0.00190.24162030.0000
Template Total0.757796.620.3789
Template load0.00210.270120.0011
Template processing0.755696.281220.3778
Template load and register function0.00010.011110.0001
states
state_id_array0.00070.092910.0007
state_identifier_array0.00080.100320.0004
Override
Cache load0.00180.2239290.0001
Sytem overhead
Fetch class attribute can translate value0.00090.115040.0002
Fetch class attribute name0.00100.133480.0001
XML
Image XML parsing0.00110.143740.0003
class_abstraction
Instantiating content class attribute0.00000.0016100.0000
General
dbfile0.00220.2747350.0001
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs