Support

Akeeba Backup for Joomla!

#37370 FOF causing issues

Posted in ‘Akeeba Backup 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
3.10.10
PHP version
8.0
Akeeba Backup version
n/a

Latest post by nicholas on Sunday, 26 June 2022 02:01 CDT

chrisvaughan

Hi

I could not see a category that was relevant.

I am trying to update a number (200) of our sites to use PHP 8.0 from 7.4

When I change this site it fails and when I investigate I find that I have been getting warning  errors on libraries/fof

See attached images.

When I change to 8.0 this causes the site to crash with a 500 code

When I look at which fof libraries we had I find three

the latest file_fof40

and two old versions that I assume came with Akeeba backup in the past

I tried disabling the non protected one but that made no difference.

Is the 2015 version still required and if not can it be disabled/uninstalled and how?

If it is required is there a php 8.0 version?

 

thanks for any help

nicholas
Akeeba Staff
Manager

The version of FOF you see in the error message is 2.x. We stopped developing it in 2014 and stopped using it in our software in 2015. Obviously, it predates PHP 8 by several years and does not support it. Some third party extension is using it. We cannot offer any support for a library we discontinued 7 years ago and we cannot offer support for any third party extension using an ancient version of a library.

Also note that the latest version of FOF is 4 and we only use it for our Joomla 3 software. Our Joomla 4 software no longer uses FOF or FEF. We have deprecated both libraries and will discontinue them permanently without a replacement on August 17th, 2023 when we stop maintaining our Joomla 3 software as we announced on August 6th, 2021.

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!

chrisvaughan

Nicholas

thanks for the very quick reply. Unfortunately I am not a Joomla programmer so I am at a lost what to do.

I understand you do not support these FOF libraries any longer.

You say "Some third party extension is using it."

I have not knowingly installed software that uses these libraries. SO I have no idea how to find if an extension is using them

I do see that this library is called at the line of code 

if (!class_exists('FOFAutoloaderFof')) { include_once JPATH_LIBRARIES . '/fof/include.php'; }   I then scanned the files on my site for FOFAutoloaderFof and only found it in Admin Tools (dated 2022 May) so I have disabled / uninstalled this package. Now no files contain that class name but this include_once JPATH_LIBRARIES . '/fof/include.php'; is still being executed.   How do I find what if creating this class/using the Fof?

nicholas
Akeeba Staff
Manager

There is no way that what you found is Admin Tools dated May 2022! That would be Admin Tools 6 which is using FOF 4 (which is compatible with PHP 8.1!) and is loaded with the code

if (!defined('FOF40_INCLUDED') && !@include_once(JPATH_LIBRARIES . '/fof40/include.php'))
{
throw new RuntimeException('This extension requires FOF 4.');
}

The code you found is from a very early FOF 2 version dating BEFORE 2013. It looks like you've messed something up on your site. Do install Admin Tools 6, the actual version released in 2022 instead of whatever nine year old mishmash you somehow ended up having on your site before. Admin Tools 6 does work on PHP 8.1 just fine.

Also note that the library you had problem was in the folder libraries/f0f (EFF ZERO EFF, not eff oh eff). Check your plugins folder for f0f/include.php. That is: foxtrot zero foxtrot forward-slash indigo November Charlie Lima uniform delta echo period papa hotel papa.

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!