Forums / Setup & design / Help - I deleted the Users class group

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

eZ debug

Timing: Jan 18 2025 11:11:37
Script start
Timing: Jan 18 2025 11:11:37
Module start 'content'
Timing: Jan 18 2025 11:11:37
Module end 'content'
Timing: Jan 18 2025 11:11:37
Script end

Main resources:

Total runtime0.2059 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 587.8281180.8281
Module start 'content' 0.00660.0063 768.6563102.0234
Module end 'content' 0.01300.1928 870.6797530.3281
Script end 0.2058  1,401.0078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00371.7917200.0002
Check MTime0.00150.7525200.0001
Mysql Total
Database connection0.00090.443110.0009
Mysqli_queries0.153074.29931410.0011
Looping result0.00130.64531390.0000
Template Total0.192493.510.1924
Template load0.00090.420610.0009
Template processing0.191693.050410.1916
Override
Cache load0.00060.301710.0006
Sytem overhead
Fetch class attribute can translate value0.00130.615410.0013
XML
Image XML parsing0.00030.140510.0003
General
dbfile0.00532.5633200.0003
String conversion0.00000.002430.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs