Support

Admin Tools

#37972 Selection options not responding unless put site in debug mode

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.2.4
PHP version
8.1.10
Admin Tools version
7.1.11

Latest post by nicholas on Tuesday, 01 November 2022 05:34 CDT

abilityfirst

When in Configure Waf there are a small number of items that should present a popup, such as file paths to monitor, domain names, and protected users. The "Plus" button is not responding to any of these unless I put the site into debug mode. As soon as I turn debug mode off again the problem recurs.

abilityfirst

After some experimentation it appears to be something in the .htaccess file, since when I remove it then it works fine. The file was created from the .htaccess maker with no custom code.

I've also noticed that when launching the admin login page from another browser none of the CSS styles are applied when the .htaccess file exists.

 

abilityfirst

After more experimentation it seems to be something to do with the option "Automatically compress static resources". When I disabled this, it seems to work.

I'm using up to date browsers, so seems odd.

nicholas
Akeeba Staff
Manager

The "Automatically compress static resources" option depends on your web server's ability to do that. It is possible that an older web server cannot detect file types correctly, messing up the automatic compression of JavaScript files which would indeed cause JavaScript errors on your site. If that happens, disable this option.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

abilityfirst

Thanks for the reply. The server is my localhost using XAMPP on Windows (latest version), so it's useful to know it's probably that.

nicholas
Akeeba Staff
Manager

If I am not terribly mistaken —it's been a while since I last used XAMPP— I seem to recall that Apache on XAMPP has a conflict with Joomla 4's pre-compressed JS and CSS files. It does not return the correct headers, causing the pre-compressed files to be re-compressed which, of course, breaks them. When you set Debug Site to Yes you are also telling Joomla to use the non-minified, non-pre-compressed versions of the core CSS and JS files which would explain why that works.

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

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!