Support

Admin Tools

#40581 Admin Tools and Akeeba Errors on new site install

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
5.03
PHP version
8.2
Admin Tools version
7.5.0

Latest post by anotart on Tuesday, 16 April 2024 12:14 CDT

anotart

I moved my hosting from Hostgator to A2 Hosting last month. This is the first new account I've created and my first Joomla 5 to install. So I have a lot of new variables for me.

Everything was going well, but soon after I installed Admin Tools, both the front and backend lost all its graphic interface -- everything is text-based.  (Only other extensions at this point is Akeeba Backup and JCE Editor. Still Casseiopia template -- nothing else done on the site.)

If I removed the .htaccess file, everything came back fine.  I went into Admin Tools and had an error: (Somewhere else along the line I saw that I added a "-" in the administrator URL, which I saw wasn't allowed, but it wouldn't let me change it.) Even with the .htaccess file removed, I can't recreate the file using the htaccess maker -- get this message:

500 Akeeba\Component\AdminTools\Administrator\Model\HtaccessmakerModel::extractHandler(): Argument #1 ($server_config) must be of type string, null given, called in /home/drsylviaregalla/public_html/administrator/components/com_admintools/src/View/Htaccessmaker/HtmlView.php on line 85

File <root>/administrator/components/com_admintools/src/Model/HtaccessmakerModel.php Line 125

In one of your previous answers, I saw something about the database collection collation needing to be _unicode_ci and I saw further down on the error page that mine is not.  You suggested that the best way to fix this was restoring a backup and forcing UTF8 (or something like that).

Database collation utf8mb4_unicode_ci
Database connection collation utf8mb4_0900_ai_ci

This is where I ran into problems with Akeeba Backup.  When I try to restore, I'm getting this error:

Could not open /home/drsylviaregalla/public_html/installation/extrainfo.json for writing. The folder permissions are 755 and the file permissions are 655.

Can you help me out please?

Thanks!

nicholas
Akeeba Staff
Manager

The Admin Tools issue is a known one, it will be fixed with a new release today.

Restoring the site, what you get is a permissions issue. Please ask your host for help.

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!

anotart

Thank you for the quick reply -- as usual!

I applied the Admin Tools update.  It did solve the error I got in the backend, but when I created the .htaccess file, the frontend is still text-based.  The backend was graphical, but there were issues with it. When I removed the .htacess file everything worked.

I also applied the Backup update.  I now did not get the permissions error, but did get this:

#0 /home/drsylviaregalla/public_html/installation/platform/models/joomlasetup.php(1014): substr()
#1 [internal function]: AngieModelJoomlaSetup->{closure}()
#2 /home/drsylviaregalla/public_html/installation/platform/models/joomlasetup.php(1013): array_map()
#3 /home/drsylviaregalla/public_html/installation/platform/models/joomlasetup.php(1183): AngieModelJoomlaSetup->updateAdminToolsAllowedDomains()
#4 /home/drsylviaregalla/public_html/installation/platform/models/joomlasetup.php(55): AngieModelJoomlaSetup->updateAdminToolsParams()
#5 /home/drsylviaregalla/public_html/installation/angie/controllers/base/setup.php(23): AngieModelJoomlaSetup->applySettings()
#6 /home/drsylviaregalla/public_html/installation/framework/controller/controller.php(511): AngieControllerBaseSetup->apply()
#7 /home/drsylviaregalla/public_html/installation/framework/dispatcher/dispatcher.php(264): AController->execute()
#8 /home/drsylviaregalla/public_html/installation/framework/application/application.php(177): ADispatcher->dispatch()
#9 /home/drsylviaregalla/public_html/installation/index.php(130): AApplication->dispatch()
#10 /home/drsylviaregalla/public_html/installation/index.php(245): mainLoop()
#11 {main}

I can no longer log into the backend -- it always trying to complete the restore.

I'm so early in this, I could start from scratch, but I would like to know if there is something I'm going to run into again first.

Thanks

nicholas
Akeeba Staff
Manager

For the restoration:

After extracting the backup archive and before clicking on "run the installer" edit the file installation/platform/models/joomlasetup.php.

Find line 981 which currently reads

if (empty($allowedDomains))

and change it to

if (empty($allowedDomains) || true)

Now go back to Kickstart and click on Run the Installer.

For Admin Tools after applying the .htaccess file: did you try the troubleshooting info in our documentation?

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!

anotart

Thank you!

Everything is working now. Once the restore worked, I then updated both Backup and Admin Tools and it solved the problems.  I wish I knew what I do wrong -- seems like every time I start a new site, I get tied up for hours with Admin Tools issues.  And, yes, believe me -- I spent hours yesterday trying to get through all the issues, reviewing the documentation and other support requests-- I don't submit support requests until I don't know what to do. I guess I know enough to make a mess, but not to be efficient.

Thank you for your help!

 

nicholas
Akeeba Staff
Manager

Look, don't beat yourself :) Security is far from being one-size-fits-all. If that was the case, we'd have no options in Admin Tools. Especially when it comes to .htaccess files, there are many moving parts which can affect which features work at all, and which might cause a problem. Add to that the complexities introduced by Joomla! extensions which diverge significantly from Joomla! best practices - especially some templates and site builders - and you have too many unknowns.

Just keep in mind that we don't have a magic way to set up Admin Tools on a new site either. At best, and just because we tend to mostly use software we write and one of the few hosts we tend to use (or a server we set up ourselves), we have a good "feel" of what might go wrong and are ready to either disable a feature upfront, or recover from it quickly. When we do support we actually follow the same instructions we give you for 99% of the cases. There are very few cases where we have to diverge, and these usually result in some change in Admin Tools to better cater for yet another edge case.

So, don't worry. You're doing great. You are handling this much better than the majority of our clients :)

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!

anotart

Thanks for the encouragement!  I feel bad for those handling it worse than me -- I can't imagine!!

Thanks again for your quick help getting me moving forward!

Have a good day!

Anne

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!