Upgrading OJS 3.3 > 3.5

Hi,
I’m trying to upgrade OJS 3.3. to 3.5

From CLI, after the command php tools/upgrade.php check I get


Composer detected issues in your platform:

Your Composer dependencies require the following PHP extensions to be installed: bcmath, intl.

PHP Fatal error:  Uncaught RuntimeException: Composer detected issues in your platform: Your Composer dependencies require the following PHP extensions to be installed: bcmath, intl. in /var/www/vhosts/.../lib/pkp/lib/vendor/composer/platform_check.php:47

From phpinfo() it seem that the extensions are availables:

image

Do you have any suggestion?

Thank you,
Enzo

Hi @Enzo,

There are probably different PHP configurations for command-line and web-based PHP invocations. Try running php -i from the command line and I suspect you’ll see that those modules aren’t enabled.

Regards,
Alec Smecher
Public Knowledge Project Team

Yes you are right.
With php -i I see different extensions available, but don’t bcmath and intl.

My server has Plesk. Do you have any suggestion on how allign configurations for command-line and web-based PHP?

Thanks

Hi @Enzo,

Have a look at e.g.:

https://talk.plesk.com/threads/php-additional-directives-do-not-apply-to-php-cli.369104/

Regards,
Alec Smecher
Public Knowledge Project Team

I solved using the command:

/opt/plesk/php/8.3/bin/php tools/upgrade.php check

Thank you for your fast and useful answer.

Enzo