#478 error on installation attempt

Posted in ‘Technical Support / Bugs’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Olivier on Friday, 03 October 2025 13:51 UTC

Pete Stewart

Installing j2commerce on a joomla4 website generates a fatal error 'class F0FDatabaseDriverJoomla extends F0FDatabase implements F0FDatabaseInterface' etc. see attached screenshot.

Olivier

Hello Pete,

it looks like the extension is not using the right version of the f0f library.

You probably have several versions on your system that conflict. Let me check that out, since you gave us credentials.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Olivier

OK,

it looks like you did not go through the migration process (https://www.j2commerce.com/migration-from-j2store-3-to-4).

There are conflicting f0f libraries, indeed. I applied Magic Eraser from Akeeba for a minor cleanup. 

J2Store is at version 3.3.20 and at this point, under Joomla 4, it should already be at a version 4+.

At this point, it is deadlocked as necessary data migration had to be done under Joomla 3.

Let me know what you want to do (migrate from Joomla 3 to 4 again, it seems like you were a long way to be done with this migration). 

Migrating j2store under Joomla 4 will proably lead to issues down the road, it would be best to migrate properly with the J2Store Migration Checker first under Joomla 3.

 

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Pete Stewart

OK I've bitten the bullet and am restoring a backup of the last time the site was J3 (having taken detailed notes of the changes I had made

Olivier

Sometimes it is better to start over and avoid issues down the road. Thanks for the feedback.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Pete Stewart

OK; I restored Joomla 3, followewd the rules in your migartion instructions, including using the Magic Eraser to remove the duplicate fof folders and disabled all the plugins and successfully upgraded to 4.4.14. I now get the message:

An error has occurred.
0 Class "F0FModel" not found
with no other information; the only fof file that exists is fof30, mostly dated Sep 2018 with a few 2021;  is there a fix for this or does it mean I have to re-run the whole backup restoration process?

Pete Stewart

I note that the error log shows the following the J4 upgrade: 

"[01-Oct-2025 16:33:16 UTC] PHP Warning: include_once(..../libraries/f0f/include.php): failed to open stream: No such file or directory in .../plugins/system/j2canonical/j2canonical.php on line 13"

I have a back up taken shortly before the 'Magic eraser' clean-up. Presumably restoring that would fix this?

 

Olivier

I can see there was an other plugin that still needed to be unpublished. I think you are good to go and continue with the upgrade process. You can ignore the warning now that the canonical plugin is disabled.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Pete Stewart

I disabled the two items that the joomla update said were a problem and then ran the update it looked OK initially but on attempting to enable the Community builder as suggested on the Dashboard, I get the error 

Attempted to load class "J2Store" from the global namespace.
Did you forget a "use" statement?

One of the tracks is in the attachment; (sorry; the file got rejected due to including spaces in the name); here's the first lines:

".../plugins/system/j2canonical/j2canonical.php (line 40)

  1.     }
  2.     function onBeforeCompileHead () {
  3.         $app = JFactory::getApplication();
  4.         if (J2Store::platform()->isClient('administrator')) {
  5.             return;
  6.         }

Olivier

It looks like you have enabled the system plugin 'canonical' from J2Store. Are you under Joomla 4 now?

You don't need this plugin enabled at this time.

You will have to go to the database, find the plugin element 'j2canonical' in the 'extensions' table and set 'enabled' to 0 to recover.

 

Then, I you are under Joomla 4, I suggest you update to J2Commerce v4.0.18.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Pete Stewart

Brilliant; many thanks for this; I've done what you suggest, it worked and I will now update the J2Commerce as you suggest.

Pete Stewart

OK I updated the installation, enabled the plug-ins and now get an error ' Class "JRequest" not found ' which has broken the site again

Pete Stewart

the front end now shows: (php 8.2)

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /.../libraries/f0f/less/less.php on line 2428

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /...libraries/f0f/less/less.php on line 2428

Deprecated: Creation of dynamic property plgSystemJ2pagecache::$_cache is deprecated in.../plugins/system/j2pagecache/j2pagecache.php on line 46

Pete Stewart

logging in to the front end shows a long list of 'deprecated' errors all involving; J2StoreTableProduct:: eg:


Deprecated: Creation of dynamic property J2StoreTableProduct::$j2store_product_id is deprecated in .../libraries/f0f/table/table.php on line 645

 

 

Pete Stewart

For the time-being, I've set the error reporting to 'none'

Olivier

Hi Pete,

the issues you were seeing about f0f and other dynamic property, ... are just warnings. It's because J2Store was built on the f0f library which is no longer maintained and has not received significant updates to ensure full compatibility with PHP 8. These are just warning about functionality that will be removed in PHP 9.

Setting error reporting to 'none' hide this but it also prevents your site from seeing other potential issues with JOomla or other extensions. Therefore I would suggest, if you can easily update the php.ini file, to set, in that file (there should be a section, commented or not already in the file):

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

Then in Joomla, set error reporting to 'system default'. That will hide the warnings but let you see errors, if there are some.

The next version of J2Commerce is built on Joomla alone, with no added external library. This will prevent this kind of issues in the future.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Olivier

As far as plugins being re-enabled and crashing the site: make sure you have updated all plugins with their Joomla 4 supported counterparts before re-enabling them (unless they are part of the J2Commerce core extension). The errors you have encounters are most likely based on the fact that you had re-enabled plugins that were still made for Joomla 3 and not updated to Joomla 4.

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Pete Stewart

I resolvedthe Request error by editing the code at j2xml.php line 60 to accord with the php 8.2 requirements and the site now seems to be working front and back

 

Pete Stewart

Many thanks for your help with this and the prompt resonses; these issues have been resolved and I can move on to the next ones...

And thanks to you all for taking over J2Store, which was perfect for my requirements, especially the Royal Mail plug-in

 

Olivier

You are welcome, Pete! I am glad we were able to assist :-)

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Stay Updated

Subscribe for free and be the first to know about the latest features, updates, and new additions.