Support

Admin Tools

#36562 Solving the problem with JoomlArt's T4 Page Builder using .htaccess builder.

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
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by diagonal on Tuesday, 08 February 2022 16:17 CST

diagonal

Hi, Joomlart T4 Pagebuilder Pro comes with a library of page designs which fails to load from Joomlart after Admin Tools is installed.  I quickly spun up a spare site to test which extension was causing the issue, installing extension after extension until the library came up blank, and the problem appeared after Admin Tools started to protect the site slightly too well 😛.

I had this issue in J3 as well, but at the time I had no need for the library, in J4 I do so I started to have a closer look.

Using the .htaccess maker and walking through option by option, I found that the problem disappeared when I disabled "server protection - backed protection" which narrowed things down a bit, but left me with the uncomfortable feeling that I had opened an elephant-sized doorflap for an issue that was probably mouse-sized, so I walked through the chapter in the manual "6.2.1 How to determine which exceptions are required"

Cutting a long story short, adding "administrator/components/com_t4pagebuilder/views/pages/tmpl/page.riot" to the "Exceptions from Server Protection" cured the problem in both Joomla 3 and 4 so the library will at least load.

Update: no singing fat lady just yet, after also adding media/vendor/skipto/js/skipto.min.js and media/vendor/metismenujs/js/metismenujs.min.js to that file list on account of a 403 and a "You do not have permission" while actually trying to use one of the now visible templates I now get a code error (Uncaught TypeError: jQuery.ajax(...).done(...).error is not a function) which suggests there's more that needs attention.  I have sent this to JoomlArt because I'm now beyond my skillset. 

Alas, still to be continued.

Cheers, Peter

nicholas
Akeeba Staff
Manager

It is correct that .riot files will not load by default. You can add that extension to Components, Admin Tools for Joomla, .htaccess Maker, Backend file types allowed in selected directories. Remember to click on Save & Create .htaccess

FWIW, I don't know what these .riot files are. The only reference to that file extension is in Apache Jena but this is related to Java (NOT JavaScript) application development. So whatever they are doing is a bit... weird?

You do not need to explicitly add any .js files in the media folder. They are already allowed since media is a folder already added in Frontend directories where file type exceptions are allowed and Frontend file types allowed in selected directories already contains js (only the part after the last dot is considered a file extension).

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!

diagonal

Well, I'm not quite sure where the remaining problems originate, but I am certain it's Admin Tools that get in the way.  When I install a blank Joomla setup all works well until I install Admin Tools.  The guys from JoomlArt are now taking a look at the site to see where it still doesn't work.

Oh well - we'll find a solution, one way or the other :).

nicholas
Akeeba Staff
Manager

Can you please file a new private ticket and send me connection information (URL, Super User username and password) to an affected site? Please do reference ticket 36562 and my name so that if Davide gets to it before me he'll no to assign it back to me. Thank you in advance!

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!

nicholas
Akeeba Staff
Manager

Thank you for the login info! I have confirmed that my instructions in my first reply were correct. It looks like you never followed them. Let me remind you what I said and what I did on your site.

  • Go to Components, Admin Tools for Joomla, .htaccess Maker
  • Find the Backend file types allowed in selected directories field.
  • Click on the empty space and type riot, then press the ENTER key on your keyboard.
  • Click on the Save & Create .htaccess button in the toolbar.

This allows JoomlaArt's .riot files which implement the blocks you can add in their page builder to load without a problem. I have played around with the page called “Akeeba Test”, adding various random blocks — at least the ones not marked as “Pro” since there was no pro licensing for the page builder — and found no problems whatsoever. Some elements are hard to use, e.g. editing text on buttons, but that's the same with and without Admin Tools; nothing is blocked, this is just a UI issue.

To make it clear. You do NOT need to explicitly allow any other files. You do NOT need to explicitly allow JS and CSS files in the media folder (they are allowed by default).

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!

diagonal

Ah, sorry, I didn't tell you I had undone the changes because there was more happening (duh), and I have finally discovered why: there's something with Firefox that wasn't right - even after I disabled all plugins.  I assume it's some setting somewhere that is diagreeable so I'll re-install it from scratch after backing up the profile, just in case it's some setting somewhere - just using its troubleshooting mode didn't clear the trouble, so to speak.

The issue was that it all worked until I actually tried an import which kept resulted in this permission message (attached).  You will not have had the problem, but I couldn't shift this, but when I used Safari it worked.  Anyway, thank you very much for the help.

If install FF from scratch helps I'll ping you an update.

diagonal

Update: with a new Firefox install (and restore of bookmarks and passwords) it all works.

Thanks for the help.

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!