Support

Admin Tools

#37210 directive contains no authorization directives

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
PHP version
8.1
Admin Tools version
7.1.7

Latest post by bytekultur on Tuesday, 31 May 2022 03:05 CDT

bytekultur

I have encountered an issue with htaccess on PHP 8.1 - after changing the version from 7.4 I have an Error 500 and this is the log entry: 

<RequireAll> directive contains no authorization directives

 

Any chance you could tell me which setting is creating those lines of HTACCESS code, or what I would have to add to get this to work in PHP 8.1?

<IfModule mod_authz_core.c>
<RequireAll>
</RequireAll>
</IfModule>

They seem to cause it, and if I can't get it to work, at least I would like to change the settings accordingly via the htaccess maker.

--- byteKultur.net

 

tampe125
Akeeba Staff

Hello,

can you please give me more details? What's the location of the .htaccess containing those lines?

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!

bytekultur

It's currently not online, and the hoster seems to reset the php version to 7.4 as well, so I can't demonstrate it now.

But I can send you the HTACCESS file as well as the log if you wish.

--- byteKultur.net

 

tampe125
Akeeba Staff

Can you please tell me where the file lives? It's in the root, in the "administrator" folder etc etc.

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!

bytekultur

Yes, it's on the webroot of the domain where the joomla frontend is.

--- byteKultur.net

 

tampe125
Akeeba Staff

mhm... Admin Tools should not create those directives, since it means that you're going to block the whole website. Can you please make a backup copy of current .htaccess and ask Admin Tools to create it again?

Do you still have that invalid directive?

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!

bytekultur

What I did now was resetting the HTACCESS to the Joomla standard one, and then recreating it.

I saw that the hosting provider adds  an AddHandler to the HTACCESS when I chose a non-standard version of PHP. So, after recreating the AdminTools HTACCESS, I added the AddHandler to it via "custom rules at the top of the file". Now it works.

Those lines of code are added again though:

<IfModule mod_authz_core.c>

  <RequireAll>

                Require all granted

                Require not env stayout

  </RequireAll>

</IfModule>

--- byteKultur.net

 

tampe125
Akeeba Staff

Yes, moving the rules created by your host inside the "Custom rules" field is the correct way to do it.

That should fix your issue. Let me know if you need further help.

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!

bytekultur

Thank you, Ticket can be closed for now.

--- byteKultur.net

 

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!