Support

Admin Tools

#37110 AJAX Loading Error - HTTP Status 504

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
3.10.9
PHP version
7.4.26
Admin Tools version
6.1.5

Latest post by nicholas on Monday, 16 May 2022 01:38 CDT

enclavecoa

I've just upgrades the Joomla version on my site to 3.10.9 from 6.10.8.

I began the Backend PHP File Change Scanner and then after several minutes of scanning, I received the "AJAX Loading Error" "HTTP Status 504" dialog box (see partial screen shot below).

Any ideas on how to fix this error so that I can run the scanner to completion?  Can you help?

nicholas
Akeeba Staff
Manager

The 504 error means that the web server gave up on the request because it is taking too long. You will need to adjust the timing settings in Components, Admin Tools, Options, File Scanner.

Set the Minimum Request Time to 5, Maximum Work Time to 3 and Work Time Bias to 75. 

If you still have problems you may want to additionally set “Calculate diffs when scanning” to No.

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!

enclavecoa

Thanks Nicholas.  That solved my timeout issue.

I'd like to make a enhancement request:  Please add a comment capability to each report in the PHP File Change Scanner reports screen.  This would allow the user (administrator) to add a comment to each report so that the report could be identified as to why it was executed at some later date.   Such as - "Scan after install of Joomla 3.10.9",  "Scan after install of Akeeb Admin Tools Pro 6.1.5 Install", etc. See attachment

nicholas
Akeeba Staff
Manager

Um, this feature was implemented something like a decade ago?

Click on the scan date of the entry. There's your comment area.

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!

enclavecoa

Hi Nicholas:

I see the two buttons at the top of the screen when I view the PHP Scan Report.  I'm able to press the Edit Comment button and add a comment. However, the Show Comment button doesn't seem to work.  I say this because no matter how many times I press the Show Comment button, nothing is displayed.  Am I doing something wrong?

I still think the Show Comment might be a better fit on the list of reports screen.  The way it is now, the user must open each report in order to see the comment.  I you have many reports and are looking for a particular report, you will have to open each report until you find the one you are looking for.  If the Show Comment were on the list of reports screen, you could display the comment right on the list screen.  This would make the comment more "User Friendly". Just my two cents.

James Borders

nicholas
Akeeba Staff
Manager

We cannot display the HTML comment as a tooltip or in the list view of scans or in the scan results page because of security concerns. It is possible that a SQL injection attack or a malicious user with administrative rights includes a malicious embed or malicious code or even a malicious SVG (which can have executable code) in there. The only safe way to display the comment is in the editor as the editable area does not execute any of that code.

We cannot show the editor in the scan results; it would increase the page rendering time 3 to 10 times (even if we have it hidden by default) and it'd make it impractical navigating the list.

Therefore the only practical solution is the scans list page has the scan date as a link and the scan results page has an Edit Comment button, both taking you to the same editor page.

The Show Comment button should've been removed. We've already done that in Admin Tools 7 for Joomla 4.

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!

enclavecoa

Hi Nicholas:

Thanks for the explanation.  I didn't realize that a comment had so many security concerns.  However, you don't know until you ask and sometimes a user will stumble upon a good and useful idea.

Thanks for the update on the "Show Comment" button.  That makes more sense now.

James Borders

nicholas
Akeeba Staff
Manager

It is definitely one of those very much non-obvious things we have to think about when writing software. The only alternative would be a non-HTML (plain text) comment but we've found that people strongly prefer being able to have formatted text. So, we're stuck with the current solution.

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!