Support

Admin Tools

#38884 Cant change user to Super User after update Joomla 4.3

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
4.3
PHP version
8.1
Admin Tools version
7.3.2

Latest post by ssnobben on Thursday, 20 April 2023 04:33 CDT

ssnobben

Hi

after update to Joomla 4.3 I cant change a user to be Super user

https://forum.joomla.org/viewtopic.php?f=9&t=1001198&p=3690065#p3690065

ย "I have problem when you create a user and change his Assigned User Group to "Super Administrator".

If you do that and save this user to that group it gives you an error:

"An error has occurred.

403 Access Denied"

Anyone else have this problem?

** update seems to be a problem with Akeeba Admin Tools Pro there after update. After disable the System - Admin Tools plg you can change the user to Superuser there...hope Nikos testing this icon_smile.gif "

tampe125
Akeeba Staff

Hello,

this is a built-in feature of Admin Tools, please take a look at this page for more details: https://www.akeeba.com/documentation/admin-tools-joomla/atspecialusers.html

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

ssnobben

Thks for this reply and did that and could now do the change a user to be a super user b u t got this error anyhow going back there..

/index.php?option=com_users&layout=edit&id=1025

An error has occurred."

.0 array_diff(): Argument #1 ($array) must be of type array, null given

ย 

and now I cant change that user back to be just a register user! It doesnt work to change back to register user only still in Superuser and after save still is superuser.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

I got some updated files from Stackideas bcs EasySocial didnt work after update to Joomla 4.3 can that have something to do with this? Error said to be here see attachment files

The changes are in these files
root\administrator\components\com_easysocial\includes\registry\helpers\joomla40.php

New File
root\administrator\components\com_easysocial\includes\registry\helpers\custom_registry.php
New Folder
root\administrator\components\com_easysocial\includes\registry\helpers\format

ย 

ps did you see get the attached files there?

tampe125
Akeeba Staff

Let's make sure that the problem is indeed caused by Admin Tools. In order to do so, try the following:

1. Try setting the Error Reporting level in your Global Configuration to "None". Many errors are caused by harmless PHP Notices and Warnings being output to the browser, breaking anything which requires HTTP header manipulation such as Joomla!'s session management, AJAX calls and download systems.

2. Try to replicate the issue after disabling the "System - Admin Tools" plugin. If you can still replicate the issue, it is not caused by Admin Tools. Disabling that plugin means that Admin Tools code (including the Web Application Firewall) is not running on your site.

3. If you suspect an issue with the .htaccess file, replace its contents with the contents of the stock htaccess.txt file shipped with every version of Joomla!. If you are on GoDaddy please wait for 1-30 minutes for the changes to be effective. Then, retry loading the problem page. If you can still reproduce the error, then it is not caused by .htaccess Maker.

If doing any of the above resulted in the issue still occurring, it's not related with Admin Tools and we can't help you. If doing any of the above did stop the issue from occurring, we'll have to do some troubleshooting.

First go to Admin Tools, Web Application Firewall, Configure WAF. Make sure "Log security exceptions" is set to Yes; if it's not, set it to Yes and click on Save. Now try reproducing your issue. Immediately after that, please go to Admin Tools, Web Application Firewall, Security Exceptions Log. The latest log entry at the top should have the date and time of when the issue occurred. Please copy the Reason and Target URL here so that we can further help you.

If, however, you do not see a log entry, or the Date and/or IP address do not match your last access, this problem is not caused by Admin Tools' WAF. In this case, you will have to do some .htaccess troubleshooting. You may need to read the general .htaccess troubleshooting page, as well as the page on finding out necessary .htaccess exceptions.

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

ssnobben

1. I have done that

ย 

2. Efter trying to make and disable this Admin Tool system plg I get this error

An error has occurred.
403 Access Denied
So it stops there

tampe125
Akeeba Staff

https://www.akeeba.com/documentation/admin-tools-joomla/web-application-firewall.html#waf-configure-basic-protection

Please disable the option "Defend against plugin deactivation"

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

ssnobben

Yes did this.

https://www.akeeba.com/documentation/admin-tools-joomla/web-application-firewall.html#waf-configure-basic-protection

Please disable the option "Defend against plugin deactivation"

But go to Joomla user and try to remove a user as SuperUser give me this error message and the user still is superuser..

Error0 An error has occurred.
0 array_diff(): Argument #1 ($array) must be of type array, null given

tampe125
Akeeba Staff

So if Admin Tools is disabled you still get the error? It means that something is happening and is not caused by our code.

Can you please enable the debug mode and set the error reporting to the maximum level? What's the full error?

Davide Tampellini

Developer and Support Staff

๐Ÿ‡ฎ๐Ÿ‡นItalian: native ๐Ÿ‡ฌ๐Ÿ‡งEnglish: good โ€ข ๐Ÿ• My time zone is Europe / Rome (UTC +1)
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

ssnobben

Yes I think this coming from a EasySocial register error bug and there is fix for that now so hope that solve the problem..

Thks for sorting things out!


All the best!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!