Support

Admin Tools

#31978 FOF30 Extensions

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 wynchcote on Friday, 08 November 2019 08:46 CST

wynchcote
This enquiry is related to #30901.

I can see three FOF extensions listed in the Joomla! Extensions Manager for most of the Joomla! websites I am working with:

file_fof30
v3.4.7
2019-10-18

FOF
v2.4.3
2015-04-22

FOF30
v3.3.7
2018-11-15

In some sites there are only two, namely:

file_fof30
v3.4.7
2019-10-18

FOF
v2.4.3
2015-04-22

Can you please confirm it is safe to uninstall the following extenison:

FOF30
v3.3.7
2018-11-15

Best wishes,

Ken :)

nicholas
Akeeba Staff
Manager
FOF v2.4.3 is part of Joomla. You cannot and must not try to uninstall it.

The FOF30 library extension (e.g. version v3.3.7) is the old version of FOF 3. It was delivered as a "library" extension type.

The "file_fof30" file extension is the new version of FOF 3. It is now delivered as a "file" extension type.

Both of the latter point to the same directory on your site, `libraries/fof30`. If you try to remove either you'll break your site. There is no easy solution to remove the no longer used FOF30 library extension.

If you're wondering why this happens, it has to do with Joomla being very inconsistent in the way it handles extension updates. Developers are supposed to use the "library" extension type for frameworks such as FOF. However, Joomla does two stupid things with "library" extensions:

1. It completely deletes the entire library extension's folder before it tries to copy over the new files. This means that if it fails to copy over the new files your site is broken, you see an error that wrongly points the finger to our framework and you get angry with us for "breaking your site" when, in fact, it's Joomla that did.
2. Unlike literally every other package type it does not support pre- and post-installation scripts before Joomla 3.9. This means that we cannot safely prevent you from uninstalling the framework when other extensions depend on it and we can't prevent you from downgrading it. In both cases your site breaks and, like before, the error message wrongly points to the finger to our framework.

Quite comically, the "files" extension type does not have either of these problems. I say "comically" because the "files" extension type was only ever meant to install language files, i.e. non-executable files. These are the kind of packages that wouldn't break your site if they removed files before update or if they accidentally allowed you to uninstall or downgrade them. Yet, the way Joomla is written makes the "files" extension type more useful for libraries than the "library" extension type.

After having replied to countless emails and support requests from people who accidentally broke their sites – some of them using rather strong language – we decided to switch our framework to the wrong package type, "files", which actually let us work around those Joomla issues. The only downside is that since the extension type changed Joomla had to change the extension ID as well, leaving behind a reference to the old "library" package. We can't remove it because the "library" package points to the folder being used by our framework, therefore it'd uninstall the files if you uninstall the package. We can't prevent the uninstallation because, as I said, that was one of the problems with using a "library" extension type in the first place.

In so many words, please do nothing. It's just a reminder that Joomla sometimes makes no sense but it's still better than the competition for creating complex sites with great performance.

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!

wynchcote
Thanks for your quick response Nicholas!

I will follow your advice.

Best wishes,

Ken :)

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!