Restore from trash: "Restore at original location (unavailable)"

Author Message

Leif Arne Storset

Monday 08 February 2010 2:37:27 pm

My users were complaining that they could not restore objects from the trash, receiving the greyed-out selection "Restore at original location (unavailable)" when they tried. Turned out it was because I had forgotten to give them permission to 'content/create'. (This may sound strange, but the content in question was very old, much older than the current permission policy. It was still heavily modified but the class never again created.)

So, if you want your users to be able to restore from the trash, make sure they can create objects of all relevant classes.

Leif Arne Storset

Robin Muilwijk

Tuesday 09 February 2010 2:29:53 am

Thanks for sharing this information.

Regards, Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

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 29 2025 23:50:53
Script start
Timing: Jan 29 2025 23:50:53
Module start 'layout'
Timing: Jan 29 2025 23:50:53
Module start 'content'
Timing: Jan 29 2025 23:50:54
Module end 'content'
Timing: Jan 29 2025 23:50:54
Script end

Main resources:

Total runtime0.8945 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 588.3906151.2422
Module start 'layout' 0.00840.0035 739.632836.7109
Module start 'content' 0.01190.8817 776.3438474.5078
Module end 'content' 0.89360.0009 1,250.85167.7813
Script end 0.8945  1,258.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3461160.0002
Check MTime0.00130.1428160.0001
Mysql Total
Database connection0.00150.163810.0015
Mysqli_queries0.853595.4138540.0158
Looping result0.00040.0464520.0000
Template Total0.861896.320.4309
Template load0.00180.205520.0009
Template processing0.860096.137320.4300
Template load and register function0.00010.014210.0001
states
state_id_array0.00120.133910.0012
state_identifier_array0.00150.165620.0007
Override
Cache load0.00140.1621100.0001
Sytem overhead
Fetch class attribute can translate value0.00050.058220.0003
Fetch class attribute name0.00090.099540.0002
XML
Image XML parsing0.00280.312120.0014
class_abstraction
Instantiating content class attribute0.00000.001040.0000
General
dbfile0.00360.3995240.0001
String conversion0.00000.001840.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs