?
avatar schultz-it-solutions
schultz-it-solutions
19 Aug 2016

Steps to reproduce the issue

0) referring to Joomla 3.6.2 stable
1) login to administration, open the "Options" dialog window for "Banners" (or any other component)
this works as expected
2) change the components "config.xml" file by "commenting out" the permissions tab like this:

19-08-2016 15-20-00

Expected result

this used to work without issues up to Joomla version 3.5.1
just "not showing" the Permissions tab, but everything else in the configuration.

Actual result

you cannot access the configuration panel anymore, you get an:
0 Call to a member function getFieldsets() on boolean
error

System information (as much as possible)

Joomla 3.6.2

Additional comments

I used this method to secure our demo website, where potential customers can try out our joomla extensions. I want them to be able to configure the extensions, however I do not want them to be able to change the "Permissions" (and some other crucial settings).

What is the background why this is no longer possible?

avatar schultz-it-solutions schultz-it-solutions - open - 19 Aug 2016
avatar schultz-it-solutions schultz-it-solutions - edited - 19 Aug 2016
avatar brianteeman
brianteeman - comment - 19 Aug 2016

I can not confirm this. I deleted the code you highlighted and the configuration shows as expected

screen shot 2016-08-19 at 10 21 37


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/11668.

avatar Bakual
Bakual - comment - 19 Aug 2016

@schultz-it-solutions You know you can set the ACL so the user is able to edit the options but not the permissions? No need to hack the files ?
We added this around Joomla 3.4

avatar brianteeman
brianteeman - comment - 19 Aug 2016

I am closing this as not a bug and as @Bakual states this can be done without hacking the core using the existing ACL

avatar brianteeman brianteeman - change - 19 Aug 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-08-19 20:45:47
Closed_By brianteeman
avatar brianteeman brianteeman - close - 19 Aug 2016
avatar brianteeman brianteeman - close - 19 Aug 2016
avatar ggppdk
ggppdk - comment - 19 Aug 2016

I cannot confirm the issue

I commented out the permissions in com_banners and in another component
and the error does not occur

  • and we can not know where the issue is because we do not print file and number of where the error occured, see: #11675, and this info (PHP7) is not printed even when DEBUG flag is ON

@schultz-it-solutions
can it be, that that the error is not thrown not inside Joomla code, but inside a 3rd party extension ?
please add line and file to the error.php of isis backend template and check ...

@Bakual
we cannot deny ACL to super admins , right ?
but even if could , it would still be problematic of the component to configure such on installation
and then user could change ACL and hit on the issue

all this if there was an issue, because i cannot confirm it

avatar Bakual
Bakual - comment - 19 Aug 2016

@ggppdk Super Admins can do anything per definition ?

avatar schultz-it-solutions
schultz-it-solutions - comment - 20 Aug 2016

Thanks for your answer.
I know superadmins can do anything. but in this case (a demo site) I want "Managers" to be able to configure the component, but not changing permissions. @Bakual: I am not aware of the possibility to "finegrain" the usage of the options dialog, will check this - if this works as expected, that would of course solve the issue.
I will doublecheck (again) and try to find more infos about the issue...

avatar ggppdk
ggppdk - comment - 20 Aug 2016

@schultz-it-solutions

and we can not know where the issue is because we do not print file and number of where the error occured, see: #11675, and this info (PHP7) is not printed even when DEBUG flag is ON

avatar schultz-it-solutions
schultz-it-solutions - comment - 20 Aug 2016

@brianteenman: Please note that "deleting" the respective passage is not identical to "uncommenting". If I delete the complete fieldset, I also get no error message. So the issue has to be connected to the "commenting" behaviour.
@ggppdk: agreed, this makes debugging harder. but If I ONLY flipflop this one change (doing it and undoing it) and have the behaviour consistent, I tend to belief this is the root of the issue.

avatar brianteeman
brianteeman - comment - 20 Aug 2016

Looking again at your screenshot it looks to me like you are not commenting a multi line block correctly. My understanding is that you begin the block with <!-- and end the block --!> But you are ending the line not the block

avatar schultz-it-solutions
schultz-it-solutions - comment - 20 Aug 2016

the "End Comment" is "inactive" in the first line, it is - -> with SPACE between the two hyphens
at the end, the "Beginn Comment" (at the last line) is "inactive as well with SPACES between the exclamation mark and the hypens.

  • this used to work up to the current version.

But I agree, the issue must be somewhere in the interpretation of these things. If I make "just one comment" (I think this is what you are referring to), the error does not appear.

But this would mean, that the interpreting of the xml stream beliefs this " <! - - " to be a "start comment as well..

avatar brianteeman brianteeman - change - 23 Aug 2016
Labels Added: ?

Add a Comment

Login with GitHub to post a comment