Support

Admin Tools

#27844 AdminTools setup

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 on Wednesday, 28 June 2017 17:17 CDT

user81878
 Hello, I am a new user of AdminTools Pro.

I went through the AdminTools startup wizard and saved the settings. I tried the admin login and it appeared to work fine. Then I tried to update AdminTools to the latest version and now my site is down and following message is displayed

Fatal error: Call to a member function isFrontend() on null in /home/ieterna/public_html/arabianswest.com/plugins/system/admintools/feature/muashield.php on line 21

When I logged into your website I downloaded the updated AdminTools but it gave me the "core" version even though I purchased the "Pro" version.

Also the auto-update from within Joomla backend did not work.

I contacted SiteGround admin and they disabled AdminTools so my site was back online. What should I do now?

nicholas
Akeeba Staff
Manager
This is a bug with Joomla! sometimes forgetting to copy files on update. It only happens in about 3% of updates, making it very hard to reproduce and solve. Believe me, all three people who understand how Joomla's extensions installer works under the hood, myself included, have tried repeatedly to no avail.

Let's see how to solve this, now.

First, extract Admin Tools' package to your computer. Inside you will find a lib_fof30.zip file. Extract this file. You will see a directory called fof having been extracted. Go inside it. Copy all of its files and folders to your site's libraries/fof30 directory.

Next up, delete the plugins/system/admintools folder.

Finally, log in to your site's backend. Install the Admin Tools package twice in a row without uninstalling it before or in between.

Sorry for the complicated approach but we are not allowed to provide our own installer, which wouldn't suffer from this issue, on pain of being banned from the Joomla! Extensions Directory. We know Joomla is broken when performing extension updates but we are forced to use it anyway :(

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!

user81878
Thank you for your reply. I followed the procedure you described and AdminTools is now installed with the updated version 4.2.0

However, when starting AdminTools for the first time after the reinstallation, the setup wizard did not appear. Should it? In the documentation there are cautions about using the wizard if it has already been done once. In addition the ID# was retained as well. I have read through the documentation, but now am a bit cautious of trying to configure AdminTools from scratch. Is there a document listing "reommended" safe settings to be applied to most common websites?

I have had my site compromised twice and shut down by repeated attempts to break in that overload the website host resources. I was hoping to configure AdminTools to provide protection in the future.

Thanks!

user81878
I tried the AdminTools php scan and the scan completed successfully. I marked all files as "safe".

This produced an error 0 Class "FOF Model" not found

Now I cannot return to the Joomla admin area - it is stuck on the error message. Pressing on the "Return to Control Panel" button has no effect. Even logging out of Joomla altogether and logging back in does not help. Logging in brings you to the same error page......oh my : (

Fortunately the front end website is still working, but the backend is broken. Things aren't going so well.

nicholas
Akeeba Staff
Manager
Remember that we did not completely uninstall Admin Tools in order to preserve the settings. Since the settings (web application firewall and component configuration) are preserved the wizard must NOT show and the download ID MUST be carried over. This is what you observe which is a good thing. Anything else would be a bug.

As for your other question: there are no absolute rules which apply to all sites. What is "good enough" for most sites is the settings you get after running the configuration wizard with its default options.

Finally, you mention something important:
shut down by repeated attempts to break in that overload the website host resources


What you describe here is a Denial of Service attack. You cannot fight it with software installed on your site by its very definition. The problem occurs because your server's operating system and web server are overwhelmed by the number of requests. That's long, long, LONG before Joomla and, by extent, Admin Tools have any chance to run. This tells you that you need to put something in front of your server. That something is a DoS mitigation service such as CloudFlare. These services monitor the incoming requests and if you seem to be under attack they act as a floodgate, keeping the flood of malicious requests from ever reaching your server.

Regarding your last post, did you touch anything in plugins/system/admintools?! You can't possibly be getting this message unless you have some really old files in there. Try removing that folder and install the Admin Tools package again. If that fixes your issue call your host and tell them to stop restoring arbitrary files on your site without your consent.

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!

user81878
Thanks for such a quick reply!

OK, I have been able to get the backend admin control back and the error message gone.....whew.

I did not touch anything in plugins/system/admintools after following the procedure you previously outlined.

Should I remove plugins/system/admintools folder only and reinstall...or... completely remove AdminTools and reinstall? In the second case I will have to enter the ID again and the startup wizard as well.

For the previous attempted break in issue, the website host implemented CloudFlare. I was curious if you are familiar with the "Brute Force Stop" plugin. Does it have a similar function?

John

nicholas
Akeeba Staff
Manager
If you are back into your administrator don't touch anything.

Regarding the plugin, I already explained why it wouldn't work.

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!

user81878
Well, now each time I log into the administrator backend, it still presents the same error message and page. If I click, for instance, on the "Components" "AdminTools", then the Admin Tools control panel comes up and I can navigate the backend as normal. However, the next time I log into the backend I get the same error message.....??

nicholas
Akeeba Staff
Manager
Here's the problem. You are not giving me the exact error message. If you would paste the EXACT error message I could be more specific.

If the message references FOFModel (F Oh F) then it's coming from Joomla! itself or a third party extension. Joomla! 3.2 and later include the old version of our FOF framework and it's currently used by Joomla! itself (for the Post-installation Messages component) as well as third party extensions. The most likely cause for this is that you didn't pay attention to my instructions and you copied the extracted "fof" folder of lib_fof30.zip into libraries/fof, not libraries/fof30 as I said. In this case you've broken Joomla!. The easy way to fix it is: delete the libraries/fof folder (AND ONLY THIS ONE!!!!); extract a Joomla! installation ZIP file locally; upload the extracted libraries/fof to your site's libraries folder.

If the message references F0FModel (F Zero F) then the problem is an outdated Admin Tools, Akeeba Backup or other VERY OLD Akeeba extension file on your site. Long story cut short, we had a private copy of our framework distributed with our extensions since Joomla! wouldn't update FOF fast enough. The private copy had the prefix F0F (F zero F) to prevent conflicts with Joomla's copy of FOF. However, we haven't been using it since May 2016, i.e. the last year. If you have a message about it you either have a woefully out of date file on your site or your host has screwed up the files on the site. Without the error message I have no idea which of the two is most likely.

If the message references anything else I have no idea without looking at the actual error message and the file it references.

Thus if you want me to help you I need you to copy and paste the exact error message, verbatim.

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!

user81878
Good morning and thanks for your reply.

Attached is a screenshot of the error message I sent earlier, but it doesn't give much data.

For reference, my current AkeebaBackup is - Akeeba Backup Core 5.4.0 (2017-05-18)

I followed your instructions and replaced the fof directory with one from a newly extracted Joomla package. I am able to login to the Joomla admin without errors now! Thank you.

Just one last question: the Quick Setup wizard is now displayed when logging in to AdminTools. In the documentation it says that the Quick Setup Wizard button will not show up once it has been used. After the recent issues and changes, I'm not sure whether I should run it or not. Is there a way to check and make sure I don't run it twice?

John

nicholas
Akeeba Staff
Manager
I am glad my educated guess helped :) With the screenshot I can see that indeed the referenced class is FOFModel (F-oh-F), not F0FModel (F-zero-F), as I suspected.

Just one last question: the Quick Setup wizard is now displayed when logging in to AdminTools. In the documentation it says that the Quick Setup Wizard button will not show up once it has been used. After the recent issues and changes, I'm not sure whether I should run it or not. Is there a way to check and make sure I don't run it twice?


Do you see the Quick Setup Wizard itself or the Quick Setup Wizard button? If you see the button, don't run the wizard. If you try to you'll get a big, red warning that doing so will reset your settings. That's why we don't want to do it. So, in this case there is nothing to do, stop reading my reply ;)

If, however, you see the Quick Setup Wizard page itself it'd seem that at some point you uninstalled Admin Tools which means that all your settings are gone. If you also get a red error message at the top of every backend page stating that Admin Tools is not configured yet then and only then go through with the Quick Setup Wizard.

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!