Help - I deleted the Users class group

Author Message

Paul Brandt

Sunday 04 June 2006 8:25:24 am

Stupid? Yes. I must have fallen asleep while pushing buttons.

What did I do: in the admin view, in the setup section I entered the <i>class</i> part. I then deleted from the class group list the <i>Users</i> group with all its content.

What will be the consequences and what is there to be done about it?

thanks in advance,
regards
Paul

Kristof Coomans

Monday 05 June 2006 12:15:51 am

Hi Paul

I guess all your user and user group objects have been deleted too.

I would recommend to restore a database backup.

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

Paul Brandt

Monday 05 June 2006 5:49:51 am

Hi Kristof e.a.,

Since I am in the process of installing the system, I only had an admin user configured. For some reason the admin user has not been deleted. Furthermore I don't have a backup yet, so there is nothing to restore. I do have some content already, so I'm not too enthusiastic to fully re-install it.

In the admin view, <b>Setup tab</b>, I recreated a <i>Users [Class group]</i> group. Obviously, this class group is empty. It was my intention to add to this newly recreated class group the various user classes that came with the default installation. However, these have been deleted as well and I presume have to be recreated as well. First: I'm not sure what to add here. Second: what I add here should be considered new items that don't have any relation whatsoever with the hooks that were already part of the core system. Hence, what else do I have to recreate?

In the admin view, the <b>User Accounts tab</b> now presents 4 subitems: <i>Anonymous Users</i>, <i>Editors</i>, <i>Administrative Users</i> and the <i>Guest Accounts</i>. I presume nothing has changed here, but what's the relation to the classes that have been deleted? Why are these items still here? Further down, there are no related objects, related roles and available policies whatsoever. Not can I create somthing here since the pull down list is empty.

In conclusion, I presume the system is out of balance now with objects without related classes and relations pointing to thin air. My main question is whether the system can be fixed to its original state or not. And if so, would it still be more efficient to take my loss and start all over again?

Thanks in advance
Paul

Kristof Coomans

Monday 05 June 2006 6:18:45 am

It's rather strange that the user group objects and user objects are still there.

What do you get when accessing /class/view/3 and /class/view/4 ? Normally you should see the user group and user class. If they are still there, then you can add them to your users class group again. Also change this setting in content.ini.append:

[ClassGroupIDs]
Users=2

Replace 2 with the id of your new users class group.

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

Paul Brandt

Monday 05 June 2006 7:14:20 am

Indeed these were still existent.

Hence I both added them to the recreated class group and changed the content.ini.append accordingly to refer to the recreated class group ID (both in de "settings/siteaccess/site" as well as the "settings/siteaccess/site_admin" folders).

Will this be sufficient?

thanks for your advice.
Paul

Kristof Coomans

Monday 05 June 2006 9:04:14 am

I think it will be sufficient, yes. But I didn't try it myself, so I can't give you any garantees.

Good luck!

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

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

Main resources:

Total runtime0.6865 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.1484152.6406
Module start 'layout' 0.00580.0032 741.789139.4766
Module start 'content' 0.00900.6757 781.2656575.1563
Module end 'content' 0.68470.0017 1,356.421916.1406
Script end 0.6864  1,372.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.5340160.0002
Check MTime0.00140.2006160.0001
Mysql Total
Database connection0.00070.106010.0007
Mysqli_queries0.618290.0503660.0094
Looping result0.00060.0909640.0000
Template Total0.647694.320.3238
Template load0.00220.316020.0011
Template processing0.645494.015920.3227
Template load and register function0.00020.032110.0002
states
state_id_array0.00170.244010.0017
state_identifier_array0.00120.168920.0006
Override
Cache load0.00190.2717380.0000
Sytem overhead
Fetch class attribute can translate value0.00060.088020.0003
Fetch class attribute name0.00120.172670.0002
XML
Image XML parsing0.00060.091420.0003
class_abstraction
Instantiating content class attribute0.00000.006590.0000
General
dbfile0.00130.1852160.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs