Support

Admin Tools

#9801 .htaccess maker can affect Gantry operations

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 nicholas on Monday, 28 March 2011 08:26 CDT

user33310
This post is not really so much a request for help as it is a solution for those that may have the same problem. I am not a PHP nor Joomla code expert so if someone has a better fix, please speak up!

The environment:
Joomla 1.5.22, Gantry version 3.1.10, .htaccess file created with Admin Tools Pro v2.0.1. Have tried this with a LAMP setup on Ubuntu as well as on a web hosted account with the same result.

Issue:
Gantry has the ability to apply template settings on a per menu item basis. Using the AT Pro .htaccess maker defaults to create the .htaccess file can prevent Gantry from being able to save the menu specific settings. Clicking the Save or Apply button looks like it's saving, but it never completes and you have to click Close to get out of Gantry.

Workarounds:
After a day of testing and hair pulling (Google and the usual resources were no help on this one) I have found two different ways to "fix" this.

Easy way: Use ssh, ftp/sftp, cpanel file manager or another method to rename the .htaccess file to something else, then make Gantry changes, then rename the file back to .htaccess. Of course, your site is less secure using this method since you're essentially turning off Apache security.

Somewhat easy way: Use the .htaccess maker aspect of AT Pro and set Server Protection - Backend Protection to NO, then click the Save and Create .htaccess button. Make your Gantry changes. Then set Backend Protection back to YES and click Save and Create. Of course, you can just leave Backend Protection set to NO if you're OK with less security.

NOTE: The menu specific change ability of Gantry is the only part I've had trouble with since using the .htaccess maker. Other functions seem to work fine with Backend Protection set to YES.

Also, I have the Gantry zipper and cache plugins disabled permanently, so they should not be causing the problem. It seems to be related to whatever Gantry is trying to do to save settings - my guess is the Backend Protection is essentially denying permissions to a pertinent folder or file.

nicholas
Akeeba Staff
Manager
Hello Mark,

I have a Gantry-based theme on my live and test server and have enabled Admin Tools protection. I tried the per menu item settings and I found them to be working. Gantry doesn't use any strange methods, it just uses Joomla!'s index.php to call com_admin with a special template parameter which causes Gantry to intercept the request and process its settings. Since WAF's template filter and most of the WAF rules don't run in the back-end, I can't see anything else which might be getting in the way.

If you send me a Personal Message (use the links on the top right module of this forum page, I am use "nicholas") with Super Admin login information to your site I will be able to perform some live troubleshooting on your server in order to determine where the issue is coming from.

Edit: Or, you can file a Private Support Ticket using the "My Tickets" link in the User Menu so that we can co-ordinate better. Moreover, your request will also receive top priority if you use the ticket system.

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!

user33310
Thanks, Nicholas. Sorry for the delayed reply. Business is, well, busy!

Fortunately, the site is not live yet so you can dabble at will!

Am sending you a PM after this post.

By the way, I am using a Rocket Launcher. Don't know if that will make a difference or not. Be nice to find out as that's what we often use them as the demo for a client.

user24407
Have the same problem as Marc C.

nicholas
Akeeba Staff
Manager
Please upgrade to the latest Gantry release as instructed by your template's administration section. Gantry 3.0.8 had a bug which didn't allow it to run properly.

Note: There is absolutely no clash with Admin Tools' .htaccess file. The problem happens at the PHP level of the Gantry framework in Gantry 3.0.8. The latest release works fine. Not to mention that it solves some security issues as well!

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!

user24407
I´m runnig Gantry 3.1.8

The problem starts with 3.1.9 and 3.1.10

nicholas
Akeeba Staff
Manager
3.1.10 here and I can't duplicate this issue? Can you PM me Super Admin details to your site?

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!

user24407
Dont have the time with Gantry at the moment. updating Gantry changes fonts and font sizes and i dont have the time to change at the moment.
I do however have the same problem on another site. As you say though, it might not have anything at all to do with Admin Tools.

I would really appreciate if you had a look at the other post i wrote in:
Cant get URL Redirection to work!
I´ll be happy to send you login details if you think you can help me there.

I actually have not enable very much in the Admin Tools because i´m afraid it gonna break something of Jomres, our booking channel

nicholas
Akeeba Staff
Manager
The two issues seem to be unrelated. However, please give me Super Admin access to your site so that I can take a look at both issues.

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!

user24407
Could do that but cant really figure out how to work the PM function, if there is one...

some sort of Compose, the choose from a dropdown list hmm

nicholas
Akeeba Staff
Manager
Go to Personal Messages, Compose and type in "nicholas" (without the quotes) in the user field.

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!

user33310
Respectfully, my original post here states that Gantry 3.1.10 exhibits the same behavior. Nonetheless, I have tested with v3.1.10 again today both on a local LAMP box and on my SiteGround account. No change.

Actually, I am quite happy with the workaround of disabling Backend Protection. As such I do not expect a "fix" for AT Pro. Further, the instructions for .htaccess maker clearly state that it can break functionality.

Having said all of that, I am super happy with Akeeba products and support. The Deluxe version is a bargain!!

nicholas
Akeeba Staff
Manager
Mark, your test site had 3.1.8 installed, not 3.1.10, hence my comment.

Anyway, I am trying Gantry 3.1.10 on a local host and on this site (hosted on Rochen) without a problem. The back-end protection does disallow direct access to rogue PHP scripts. However, Gantry doesn't use such a feature. In fact it is posting to administrator/?option=com_admin&tmpl=gantry-ajax-admin. One thing that could interfere would be WAF's tmpl=foo filtering, but it doesn't run in the back-end of the site. I can't see any reason for the request to fail, except a browser specific issue. Have you tried using a different browser, just in case?

I would also like to ask which RocketTheme template are you using? I did all my testing with Omnicron. Maybe it's something occurring only with a specific template, so if you tell me the exact template I will investigate it further.

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!

user33310
Am using Crystalline which is an older template but I also tried Juxta with same result. Since disabling htaccess fixed it I didn't suspect WAF but will try it a bit later. On the road right now.

nicholas
Akeeba Staff
Manager
Thanks! Using that template did the trick. It was a problem with the way the back-end protection rule was written and how Gantry tries to load and save per menu item settings. It's now fixed in the latest developer's release.

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!