Upgrading OJS - Required PHP extension not found

Describe the issue or problem
I’m trying to upgrade OJS to the newest version through my hosting company’s website’s control panel. I get the following error:

The following errors were found :

  • Required PHP extension not found : bcmath

  • Required PHP extension not found : fileinfo

  • Required PHP extension not found : intl

  • Required PHP extension not found : zip

Steps I took leading up to the issue
I contacted my hosting company and they said, “The software you are using is saying those extensions are not available.

However, under the phpinfo.php, you can search for each one and they are installed and available to use.

I would reach out to them and see if they have any ideas on how to resolve on their end.”

What application are you using?
3.3.0.15 but trying to upgrade to 3.5.0.1

Hi @trey1111,

Are you running the web-based upgrade tool or the command-line one? Note that command-line and web-based PHP might use different php.ini files, so different modules might be enabled.

If you’re using the command-line tool to upgrade, check php -i to see what it says your enabled modules are.

Note that we’ll be releasing OJS/OMP/OPS 3.5.0-2 very soon – possibly today! – so I’d suggest holding off on the upgrade until that’s available.

Regards,
Alec Smecher
Public Knowledge Project Team

I was using the web-based upgrade tool through Softaculous. I do not know how to do it through the command line option. I don’t mind waiting to upgrade for the newer version, but I was having problems updating user roles in the OJS so thought I would need to upgrade in order to resolve it.

Thanks,

Trey

In the meantime, any advice regarding upgrading via a web-based tool? My OJS has been losing functionality since my server was upgraded to PHP 8, so I need to do something other than wait for the latest issue of OJS to drop. Is there a date for that yet?

Thanks,

Trey

Hi @trey1111,

OJS uses a standard mechanism to determine which modules are present and which are not, so it’s pretty unlikely that it would report that modules are not present when they actually are. It’s more likely that something about your server is treating OJS differently than the phpinfo script – I know some servers can apply different PHP configurations and versions to different applications. Perhaps Softaculous contains some configuration that’s the problem. Unfortunately it’s outside of our knowledge and control so I’m not sure what to suggest to resolve it. I don’t think OJS is lying about those modules not being present.

(Make sure you take a good backup before you run the upgrade! Tools like Softaculous hide some of the complexity of running a server – but don’t rely on it to manage everything.)

Regards,
Alec Smecher
Public Knowledge Project Team

Is anyone able to upgrade my OJS to the latest version without using the web-based approach? It has officially lost its functionality and is in dire need of being upgraded. I lack the know-how to do the upgrade at the server level.

Thanks,

Trey

This topic was automatically closed after 9 days. New replies are no longer allowed.