goranbru Merchant Tól től Slovenia Tagság szept. 2025 óta goranbru 16 okt. 2025 00:29 Hi, Since I have problems with securing the webshop (csp security) I added a new user (as normal administrator) in Admin panel and gave almost all permissions to it so the user IBBoard can check what's going on. But if he or I log in the admin panel using this new user, then the new page opens with the error: Warning: Undefined array key "docs" in ~/admin/index.php (Line 36) Fatal error: in_array(): Argument #2 ($haystack) must be of type array, null given in ~/admin/index.php (Line 36) instead of classic admin panel. What can I do? Btw, AdminStuff is subpage for the Admin panel. Btw, the store was installed using Softaculous installation. Best regards, Goran
goranbru Merchant Tól től Slovenia Tagság szept. 2025 óta goranbru 16 okt. 2025 00:52 Hi Tim, in users, edit the (new) user.
tim Founder Tól től Sweden Tagság máj. 2013 óta tim 16 okt. 2025 22:04 Yes, that's where they are. But what are they? Can you reproduce this problem in the demo? demo.litecart.net
goranbru Merchant Tól től Slovenia Tagság szept. 2025 óta goranbru 16 okt. 2025 23:50 Hi Tim, unfortunately I can't. First of all "This feature is not available in demo" and secondly, there are far less permissions available.
tim Founder Tól től Sweden Tagság máj. 2013 óta tim 17 okt. 2025 00:11 Ok show a screendump of what your permission settings are to better understand what you have there.
goranbru Merchant Tól től Slovenia Tagság szept. 2025 óta goranbru 17 okt. 2025 00:34 Here is comparison of user permissions between my webshop and demo shop. There are far more permissions in my webshop than in demo.
tim Founder Tól től Sweden Tagság máj. 2013 óta tim 17 okt. 2025 01:37 Ok, so no subpages were selected. Do one at minimum for each enabled app. We could add a warning during save to be more clear about this.
goranbru Merchant Tól től Slovenia Tagság szept. 2025 óta goranbru 17 okt. 2025 01:44 I see... I thought that click on eg. Modules means that all subpages are enabled as well. Maybe You could update code that clicking on each page would check/uncheck all subpages and then warnings are not needed.
tim Founder Tól től Sweden Tagság máj. 2013 óta tim 17 okt. 2025 10:54 Hmm.. When I click on an app like modules it automatically selects all underlying options. This is done by javascript and the part that it doesn't do that for you suggests there can be a javascript error in your F12 console. Can you have a look?
goranbru Merchant Tól től Slovenia Tagság szept. 2025 óta goranbru 18 okt. 2025 01:00 Tim, I am not familiar with HTM/PHP development so although I use FireFox, I am not sure where to look. But I can say that disabling IBBoard mod fixed the problem. When enabled I have to click on each item, when disabled, then clicking on an app enables/disables all modules.
tim Founder Tól től Sweden Tagság máj. 2013 óta tim 19 okt. 2025 22:54 Ok, it sounds like you addressed the problem to CSP blocking javascript from doing it's thing.