Magento 2.1.0 Roles Resource Tree not showingRole Landing PagesACL Role Resource DefaultRestrict administrator to one store viewextending magento ACLACL working but checkboxes not selected in role edit formRole resource tree not displaying in magento2Magento 1.9X Role Resource Tree customization?Admin User unable to access webapiMy extension links not showing on custom roles on adminIssue with User Role Resources Tree
Is it acceptable to use working hours to read general interest books?
Philosophical question on logistic regression: why isn't the optimal threshold value trained?
Can a Bard use the Spell Glyph option of the Glyph of Warding spell and cast a known spell into the glyph?
Drawing a german abacus as in the books of Adam Ries
Where was the County of Thurn und Taxis located?
Can a level 2 Warlock take one level in rogue, then continue advancing as a warlock?
Integral that is continuous and looks like it converges to a geometric series
How can I wire a 9-position switch so that each position turns on one more LED than the one before?
How do I reattach a shelf to the wall when it ripped out of the wall?
"My boss was furious with me and I have been fired" vs. "My boss was furious with me and I was fired"
An array in a equation with curly braces in both sides
Trouble removing package using Yum on CentOS7
Magical attacks and overcoming damage resistance
What is purpose of DB Browser(dbbrowser.aspx) under admin tool?
"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?
Which big number is bigger?
Why did Rep. Omar conclude her criticism of US troops with the phrase "NotTodaySatan"?
Why must Chinese maps be obfuscated?
Would the change in enthalpy (ΔH) for the dissolution of urea in water be positive or negative?
How much cash can I safely carry into the USA and avoid civil forfeiture?
What does a straight horizontal line above a few notes, after a changed tempo mean?
Retract an already submitted recommendation letter (written for an undergrad student)
A Paper Record is What I Hamper
std::unique_ptr of base class holding reference of derived class does not show warning in gcc compiler while naked pointer shows it. Why?
Magento 2.1.0 Roles Resource Tree not showing
Role Landing PagesACL Role Resource DefaultRestrict administrator to one store viewextending magento ACLACL working but checkboxes not selected in role edit formRole resource tree not displaying in magento2Magento 1.9X Role Resource Tree customization?Admin User unable to access webapiMy extension links not showing on custom roles on adminIssue with User Role Resources Tree
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
in the backend, going to system->roles, adding a new role and setting it to custom permissions, the resource tree is empty.
Stepping through the code I can see, in module_user/Block/Role/Tab/Edit.php in function getTree()
it returns three ACL-resources
public function getTree()
$resources = $this->_aclResourceProvider->getAclResources();
$rootArray = $this->_integrationData->mapResources(
isset($resources[1]['children']) ? $resources[1]['children'] : []
);
return $rootArray;
The one used for the mapResources-call is Admin_Backend::all
with an empty children array. Now in my opinion this leads to the resource tree being empty. Shouldn't there be an extra handling of the this role as it doesn't have explicitly assigned resources to it in the acl.xml? If I change the mapResources
to use $resource[2]
the tree is shown. But this feels a little awkward as I don't know what side effects that would have.
Any idea what's going wrong?
magento2 backend user-roles acl resources
|
show 2 more comments
in the backend, going to system->roles, adding a new role and setting it to custom permissions, the resource tree is empty.
Stepping through the code I can see, in module_user/Block/Role/Tab/Edit.php in function getTree()
it returns three ACL-resources
public function getTree()
$resources = $this->_aclResourceProvider->getAclResources();
$rootArray = $this->_integrationData->mapResources(
isset($resources[1]['children']) ? $resources[1]['children'] : []
);
return $rootArray;
The one used for the mapResources-call is Admin_Backend::all
with an empty children array. Now in my opinion this leads to the resource tree being empty. Shouldn't there be an extra handling of the this role as it doesn't have explicitly assigned resources to it in the acl.xml? If I change the mapResources
to use $resource[2]
the tree is shown. But this feels a little awkward as I don't know what side effects that would have.
Any idea what's going wrong?
magento2 backend user-roles acl resources
I added a new role and set it to custom permissions and the tree exists. Is this a default/clean install? Can you show log files? Have you enabled any new extensions?
– Mat Hellums
Aug 21 '16 at 16:47
debug.logmain.DEBUG: cache_invalidate: "method":"POST","url":"...","invalidateInfo":"tags":["BACKEND_MAINMENU"],"mode":"matchingAnyTag","is_exception":false []
– Jérôme
Aug 21 '16 at 18:08
Setup is quite clean but uses some extensions: Firegento, Mageplaza-Affiliate, and lots from Plazathemes that came with the theme I use. It´s the first time I use the roles feature, so I can not tell when it stopped working or whether it ever worked. Could it be, that acl.xml from an extension messes it up? Is the described acl-resource array the one expected? @MatHellums
– Jérôme
Aug 21 '16 at 18:13
@MatHellums Does this still work after you added an admin via the console?
– Jérôme
Aug 31 '16 at 17:17
1
The problem is induced by the theme I use. After installation of this theme (bought from a 3rd party) the resource tree isnt shown anymore. In case I ever figure out what exactly generated that error I will answer it here!
– Jérôme
Sep 14 '16 at 14:00
|
show 2 more comments
in the backend, going to system->roles, adding a new role and setting it to custom permissions, the resource tree is empty.
Stepping through the code I can see, in module_user/Block/Role/Tab/Edit.php in function getTree()
it returns three ACL-resources
public function getTree()
$resources = $this->_aclResourceProvider->getAclResources();
$rootArray = $this->_integrationData->mapResources(
isset($resources[1]['children']) ? $resources[1]['children'] : []
);
return $rootArray;
The one used for the mapResources-call is Admin_Backend::all
with an empty children array. Now in my opinion this leads to the resource tree being empty. Shouldn't there be an extra handling of the this role as it doesn't have explicitly assigned resources to it in the acl.xml? If I change the mapResources
to use $resource[2]
the tree is shown. But this feels a little awkward as I don't know what side effects that would have.
Any idea what's going wrong?
magento2 backend user-roles acl resources
in the backend, going to system->roles, adding a new role and setting it to custom permissions, the resource tree is empty.
Stepping through the code I can see, in module_user/Block/Role/Tab/Edit.php in function getTree()
it returns three ACL-resources
public function getTree()
$resources = $this->_aclResourceProvider->getAclResources();
$rootArray = $this->_integrationData->mapResources(
isset($resources[1]['children']) ? $resources[1]['children'] : []
);
return $rootArray;
The one used for the mapResources-call is Admin_Backend::all
with an empty children array. Now in my opinion this leads to the resource tree being empty. Shouldn't there be an extra handling of the this role as it doesn't have explicitly assigned resources to it in the acl.xml? If I change the mapResources
to use $resource[2]
the tree is shown. But this feels a little awkward as I don't know what side effects that would have.
Any idea what's going wrong?
magento2 backend user-roles acl resources
magento2 backend user-roles acl resources
edited Aug 21 '16 at 18:16
Jérôme
asked Aug 21 '16 at 9:18
JérômeJérôme
757
757
I added a new role and set it to custom permissions and the tree exists. Is this a default/clean install? Can you show log files? Have you enabled any new extensions?
– Mat Hellums
Aug 21 '16 at 16:47
debug.logmain.DEBUG: cache_invalidate: "method":"POST","url":"...","invalidateInfo":"tags":["BACKEND_MAINMENU"],"mode":"matchingAnyTag","is_exception":false []
– Jérôme
Aug 21 '16 at 18:08
Setup is quite clean but uses some extensions: Firegento, Mageplaza-Affiliate, and lots from Plazathemes that came with the theme I use. It´s the first time I use the roles feature, so I can not tell when it stopped working or whether it ever worked. Could it be, that acl.xml from an extension messes it up? Is the described acl-resource array the one expected? @MatHellums
– Jérôme
Aug 21 '16 at 18:13
@MatHellums Does this still work after you added an admin via the console?
– Jérôme
Aug 31 '16 at 17:17
1
The problem is induced by the theme I use. After installation of this theme (bought from a 3rd party) the resource tree isnt shown anymore. In case I ever figure out what exactly generated that error I will answer it here!
– Jérôme
Sep 14 '16 at 14:00
|
show 2 more comments
I added a new role and set it to custom permissions and the tree exists. Is this a default/clean install? Can you show log files? Have you enabled any new extensions?
– Mat Hellums
Aug 21 '16 at 16:47
debug.logmain.DEBUG: cache_invalidate: "method":"POST","url":"...","invalidateInfo":"tags":["BACKEND_MAINMENU"],"mode":"matchingAnyTag","is_exception":false []
– Jérôme
Aug 21 '16 at 18:08
Setup is quite clean but uses some extensions: Firegento, Mageplaza-Affiliate, and lots from Plazathemes that came with the theme I use. It´s the first time I use the roles feature, so I can not tell when it stopped working or whether it ever worked. Could it be, that acl.xml from an extension messes it up? Is the described acl-resource array the one expected? @MatHellums
– Jérôme
Aug 21 '16 at 18:13
@MatHellums Does this still work after you added an admin via the console?
– Jérôme
Aug 31 '16 at 17:17
1
The problem is induced by the theme I use. After installation of this theme (bought from a 3rd party) the resource tree isnt shown anymore. In case I ever figure out what exactly generated that error I will answer it here!
– Jérôme
Sep 14 '16 at 14:00
I added a new role and set it to custom permissions and the tree exists. Is this a default/clean install? Can you show log files? Have you enabled any new extensions?
– Mat Hellums
Aug 21 '16 at 16:47
I added a new role and set it to custom permissions and the tree exists. Is this a default/clean install? Can you show log files? Have you enabled any new extensions?
– Mat Hellums
Aug 21 '16 at 16:47
debug.log
main.DEBUG: cache_invalidate: "method":"POST","url":"...","invalidateInfo":"tags":["BACKEND_MAINMENU"],"mode":"matchingAnyTag","is_exception":false []
– Jérôme
Aug 21 '16 at 18:08
debug.log
main.DEBUG: cache_invalidate: "method":"POST","url":"...","invalidateInfo":"tags":["BACKEND_MAINMENU"],"mode":"matchingAnyTag","is_exception":false []
– Jérôme
Aug 21 '16 at 18:08
Setup is quite clean but uses some extensions: Firegento, Mageplaza-Affiliate, and lots from Plazathemes that came with the theme I use. It´s the first time I use the roles feature, so I can not tell when it stopped working or whether it ever worked. Could it be, that acl.xml from an extension messes it up? Is the described acl-resource array the one expected? @MatHellums
– Jérôme
Aug 21 '16 at 18:13
Setup is quite clean but uses some extensions: Firegento, Mageplaza-Affiliate, and lots from Plazathemes that came with the theme I use. It´s the first time I use the roles feature, so I can not tell when it stopped working or whether it ever worked. Could it be, that acl.xml from an extension messes it up? Is the described acl-resource array the one expected? @MatHellums
– Jérôme
Aug 21 '16 at 18:13
@MatHellums Does this still work after you added an admin via the console?
– Jérôme
Aug 31 '16 at 17:17
@MatHellums Does this still work after you added an admin via the console?
– Jérôme
Aug 31 '16 at 17:17
1
1
The problem is induced by the theme I use. After installation of this theme (bought from a 3rd party) the resource tree isnt shown anymore. In case I ever figure out what exactly generated that error I will answer it here!
– Jérôme
Sep 14 '16 at 14:00
The problem is induced by the theme I use. After installation of this theme (bought from a 3rd party) the resource tree isnt shown anymore. In case I ever figure out what exactly generated that error I will answer it here!
– Jérôme
Sep 14 '16 at 14:00
|
show 2 more comments
3 Answers
3
active
oldest
votes
I had the same issue with the resources tree rendering blank, and I've found out that the issue was with the acl.xml file of one of the installed modules (it can also be from a theme).
In my case, the module's resources were not inside the Magento_Backend::admin resource tag:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="UOL_PagSeguro::Conciliation" title="Conciliation" sortOrder="10" />
<resource id="UOL_PagSeguro::Abandoned" title="Abandoned" sortOrder="20" />
<resource id="UOL_PagSeguro::Cancellation" title="Cancellation" sortOrder="30" />
<resource id="UOL_PagSeguro::Refund" title="Refund" sortOrder="40" />
<resource id="UOL_PagSeguro::Credentials" title="Credentials" sortOrder="50" />
</resources>
</acl>
</config>
After making the changes such as placing the resources inside a group resource tag (one for all the module related resources), and also placing it inside the Magento_Backend::admin tag, fixed the problem.
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="Magento_Backend::admin">
<resource id="UOL_PagSeguro::admin" title="PagSeguro">
<resource id="UOL_PagSeguro::Conciliation" title="Conciliation" sortOrder="10" />
<resource id="UOL_PagSeguro::Abandoned" title="Abandoned" sortOrder="20" />
<resource id="UOL_PagSeguro::Cancellation" title="Cancellation" sortOrder="30" />
<resource id="UOL_PagSeguro::Refund" title="Refund" sortOrder="40" />
<resource id="UOL_PagSeguro::Credentials" title="Credentials" sortOrder="50" />
</resource>
</resource>
</resources>
</acl>
</config>
Finally, to find out the module/theme thats causing this issue, check their acl.xml files or try to disable one by one and check the roles & permissions page to see if the tree is visible again.
Remember to clear cache if you're not running in developer mode!
@Jérôme Did this answer clarify the causes of your issue?
– Pedro Guedes
Apr 11 '17 at 15:01
add a comment |
Open The path
/vendor/magento/module-user/Block/Role/Tab/Edit.php
And Change isset($resources[1]['children']) ? $resources[1]['children']
Intoisset($resources[2]['children']) ? $resources[2]['children']
Tree Will Showing
For More Details https://www.oolalaji.com
add a comment |
Had the same issue and the reason appeared to be some malware which came with google chrome extension. I would recommend to take a look inside the developer console of your browser.
You may also see the html source of the page and find the div element that will look like this:
<div class="tree x-tree" data-role="resource-tree" data-mage-init="..."
Under data-mage-init attribute there should be the json structure of the tree. If you do not see the huge json string inside data-mage-init attribute, search for the problem on the server side.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f132329%2fmagento-2-1-0-roles-resource-tree-not-showing%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
I had the same issue with the resources tree rendering blank, and I've found out that the issue was with the acl.xml file of one of the installed modules (it can also be from a theme).
In my case, the module's resources were not inside the Magento_Backend::admin resource tag:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="UOL_PagSeguro::Conciliation" title="Conciliation" sortOrder="10" />
<resource id="UOL_PagSeguro::Abandoned" title="Abandoned" sortOrder="20" />
<resource id="UOL_PagSeguro::Cancellation" title="Cancellation" sortOrder="30" />
<resource id="UOL_PagSeguro::Refund" title="Refund" sortOrder="40" />
<resource id="UOL_PagSeguro::Credentials" title="Credentials" sortOrder="50" />
</resources>
</acl>
</config>
After making the changes such as placing the resources inside a group resource tag (one for all the module related resources), and also placing it inside the Magento_Backend::admin tag, fixed the problem.
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="Magento_Backend::admin">
<resource id="UOL_PagSeguro::admin" title="PagSeguro">
<resource id="UOL_PagSeguro::Conciliation" title="Conciliation" sortOrder="10" />
<resource id="UOL_PagSeguro::Abandoned" title="Abandoned" sortOrder="20" />
<resource id="UOL_PagSeguro::Cancellation" title="Cancellation" sortOrder="30" />
<resource id="UOL_PagSeguro::Refund" title="Refund" sortOrder="40" />
<resource id="UOL_PagSeguro::Credentials" title="Credentials" sortOrder="50" />
</resource>
</resource>
</resources>
</acl>
</config>
Finally, to find out the module/theme thats causing this issue, check their acl.xml files or try to disable one by one and check the roles & permissions page to see if the tree is visible again.
Remember to clear cache if you're not running in developer mode!
@Jérôme Did this answer clarify the causes of your issue?
– Pedro Guedes
Apr 11 '17 at 15:01
add a comment |
I had the same issue with the resources tree rendering blank, and I've found out that the issue was with the acl.xml file of one of the installed modules (it can also be from a theme).
In my case, the module's resources were not inside the Magento_Backend::admin resource tag:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="UOL_PagSeguro::Conciliation" title="Conciliation" sortOrder="10" />
<resource id="UOL_PagSeguro::Abandoned" title="Abandoned" sortOrder="20" />
<resource id="UOL_PagSeguro::Cancellation" title="Cancellation" sortOrder="30" />
<resource id="UOL_PagSeguro::Refund" title="Refund" sortOrder="40" />
<resource id="UOL_PagSeguro::Credentials" title="Credentials" sortOrder="50" />
</resources>
</acl>
</config>
After making the changes such as placing the resources inside a group resource tag (one for all the module related resources), and also placing it inside the Magento_Backend::admin tag, fixed the problem.
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="Magento_Backend::admin">
<resource id="UOL_PagSeguro::admin" title="PagSeguro">
<resource id="UOL_PagSeguro::Conciliation" title="Conciliation" sortOrder="10" />
<resource id="UOL_PagSeguro::Abandoned" title="Abandoned" sortOrder="20" />
<resource id="UOL_PagSeguro::Cancellation" title="Cancellation" sortOrder="30" />
<resource id="UOL_PagSeguro::Refund" title="Refund" sortOrder="40" />
<resource id="UOL_PagSeguro::Credentials" title="Credentials" sortOrder="50" />
</resource>
</resource>
</resources>
</acl>
</config>
Finally, to find out the module/theme thats causing this issue, check their acl.xml files or try to disable one by one and check the roles & permissions page to see if the tree is visible again.
Remember to clear cache if you're not running in developer mode!
@Jérôme Did this answer clarify the causes of your issue?
– Pedro Guedes
Apr 11 '17 at 15:01
add a comment |
I had the same issue with the resources tree rendering blank, and I've found out that the issue was with the acl.xml file of one of the installed modules (it can also be from a theme).
In my case, the module's resources were not inside the Magento_Backend::admin resource tag:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="UOL_PagSeguro::Conciliation" title="Conciliation" sortOrder="10" />
<resource id="UOL_PagSeguro::Abandoned" title="Abandoned" sortOrder="20" />
<resource id="UOL_PagSeguro::Cancellation" title="Cancellation" sortOrder="30" />
<resource id="UOL_PagSeguro::Refund" title="Refund" sortOrder="40" />
<resource id="UOL_PagSeguro::Credentials" title="Credentials" sortOrder="50" />
</resources>
</acl>
</config>
After making the changes such as placing the resources inside a group resource tag (one for all the module related resources), and also placing it inside the Magento_Backend::admin tag, fixed the problem.
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="Magento_Backend::admin">
<resource id="UOL_PagSeguro::admin" title="PagSeguro">
<resource id="UOL_PagSeguro::Conciliation" title="Conciliation" sortOrder="10" />
<resource id="UOL_PagSeguro::Abandoned" title="Abandoned" sortOrder="20" />
<resource id="UOL_PagSeguro::Cancellation" title="Cancellation" sortOrder="30" />
<resource id="UOL_PagSeguro::Refund" title="Refund" sortOrder="40" />
<resource id="UOL_PagSeguro::Credentials" title="Credentials" sortOrder="50" />
</resource>
</resource>
</resources>
</acl>
</config>
Finally, to find out the module/theme thats causing this issue, check their acl.xml files or try to disable one by one and check the roles & permissions page to see if the tree is visible again.
Remember to clear cache if you're not running in developer mode!
I had the same issue with the resources tree rendering blank, and I've found out that the issue was with the acl.xml file of one of the installed modules (it can also be from a theme).
In my case, the module's resources were not inside the Magento_Backend::admin resource tag:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="UOL_PagSeguro::Conciliation" title="Conciliation" sortOrder="10" />
<resource id="UOL_PagSeguro::Abandoned" title="Abandoned" sortOrder="20" />
<resource id="UOL_PagSeguro::Cancellation" title="Cancellation" sortOrder="30" />
<resource id="UOL_PagSeguro::Refund" title="Refund" sortOrder="40" />
<resource id="UOL_PagSeguro::Credentials" title="Credentials" sortOrder="50" />
</resources>
</acl>
</config>
After making the changes such as placing the resources inside a group resource tag (one for all the module related resources), and also placing it inside the Magento_Backend::admin tag, fixed the problem.
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd">
<acl>
<resources>
<resource id="Magento_Backend::admin">
<resource id="UOL_PagSeguro::admin" title="PagSeguro">
<resource id="UOL_PagSeguro::Conciliation" title="Conciliation" sortOrder="10" />
<resource id="UOL_PagSeguro::Abandoned" title="Abandoned" sortOrder="20" />
<resource id="UOL_PagSeguro::Cancellation" title="Cancellation" sortOrder="30" />
<resource id="UOL_PagSeguro::Refund" title="Refund" sortOrder="40" />
<resource id="UOL_PagSeguro::Credentials" title="Credentials" sortOrder="50" />
</resource>
</resource>
</resources>
</acl>
</config>
Finally, to find out the module/theme thats causing this issue, check their acl.xml files or try to disable one by one and check the roles & permissions page to see if the tree is visible again.
Remember to clear cache if you're not running in developer mode!
answered Apr 3 '17 at 15:32
Pedro GuedesPedro Guedes
667
667
@Jérôme Did this answer clarify the causes of your issue?
– Pedro Guedes
Apr 11 '17 at 15:01
add a comment |
@Jérôme Did this answer clarify the causes of your issue?
– Pedro Guedes
Apr 11 '17 at 15:01
@Jérôme Did this answer clarify the causes of your issue?
– Pedro Guedes
Apr 11 '17 at 15:01
@Jérôme Did this answer clarify the causes of your issue?
– Pedro Guedes
Apr 11 '17 at 15:01
add a comment |
Open The path
/vendor/magento/module-user/Block/Role/Tab/Edit.php
And Change isset($resources[1]['children']) ? $resources[1]['children']
Intoisset($resources[2]['children']) ? $resources[2]['children']
Tree Will Showing
For More Details https://www.oolalaji.com
add a comment |
Open The path
/vendor/magento/module-user/Block/Role/Tab/Edit.php
And Change isset($resources[1]['children']) ? $resources[1]['children']
Intoisset($resources[2]['children']) ? $resources[2]['children']
Tree Will Showing
For More Details https://www.oolalaji.com
add a comment |
Open The path
/vendor/magento/module-user/Block/Role/Tab/Edit.php
And Change isset($resources[1]['children']) ? $resources[1]['children']
Intoisset($resources[2]['children']) ? $resources[2]['children']
Tree Will Showing
For More Details https://www.oolalaji.com
Open The path
/vendor/magento/module-user/Block/Role/Tab/Edit.php
And Change isset($resources[1]['children']) ? $resources[1]['children']
Intoisset($resources[2]['children']) ? $resources[2]['children']
Tree Will Showing
For More Details https://www.oolalaji.com
answered Jul 28 '17 at 8:32
oolalaji.comoolalaji.com
112
112
add a comment |
add a comment |
Had the same issue and the reason appeared to be some malware which came with google chrome extension. I would recommend to take a look inside the developer console of your browser.
You may also see the html source of the page and find the div element that will look like this:
<div class="tree x-tree" data-role="resource-tree" data-mage-init="..."
Under data-mage-init attribute there should be the json structure of the tree. If you do not see the huge json string inside data-mage-init attribute, search for the problem on the server side.
add a comment |
Had the same issue and the reason appeared to be some malware which came with google chrome extension. I would recommend to take a look inside the developer console of your browser.
You may also see the html source of the page and find the div element that will look like this:
<div class="tree x-tree" data-role="resource-tree" data-mage-init="..."
Under data-mage-init attribute there should be the json structure of the tree. If you do not see the huge json string inside data-mage-init attribute, search for the problem on the server side.
add a comment |
Had the same issue and the reason appeared to be some malware which came with google chrome extension. I would recommend to take a look inside the developer console of your browser.
You may also see the html source of the page and find the div element that will look like this:
<div class="tree x-tree" data-role="resource-tree" data-mage-init="..."
Under data-mage-init attribute there should be the json structure of the tree. If you do not see the huge json string inside data-mage-init attribute, search for the problem on the server side.
Had the same issue and the reason appeared to be some malware which came with google chrome extension. I would recommend to take a look inside the developer console of your browser.
You may also see the html source of the page and find the div element that will look like this:
<div class="tree x-tree" data-role="resource-tree" data-mage-init="..."
Under data-mage-init attribute there should be the json structure of the tree. If you do not see the huge json string inside data-mage-init attribute, search for the problem on the server side.
answered Jun 16 '18 at 20:59
Kirill KostKirill Kost
385
385
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f132329%2fmagento-2-1-0-roles-resource-tree-not-showing%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I added a new role and set it to custom permissions and the tree exists. Is this a default/clean install? Can you show log files? Have you enabled any new extensions?
– Mat Hellums
Aug 21 '16 at 16:47
debug.log
main.DEBUG: cache_invalidate: "method":"POST","url":"...","invalidateInfo":"tags":["BACKEND_MAINMENU"],"mode":"matchingAnyTag","is_exception":false []
– Jérôme
Aug 21 '16 at 18:08
Setup is quite clean but uses some extensions: Firegento, Mageplaza-Affiliate, and lots from Plazathemes that came with the theme I use. It´s the first time I use the roles feature, so I can not tell when it stopped working or whether it ever worked. Could it be, that acl.xml from an extension messes it up? Is the described acl-resource array the one expected? @MatHellums
– Jérôme
Aug 21 '16 at 18:13
@MatHellums Does this still work after you added an admin via the console?
– Jérôme
Aug 31 '16 at 17:17
1
The problem is induced by the theme I use. After installation of this theme (bought from a 3rd party) the resource tree isnt shown anymore. In case I ever figure out what exactly generated that error I will answer it here!
– Jérôme
Sep 14 '16 at 14:00