After upgrade to 8.7.0, my site fails

I upgraded from 8.6.2 to 8.7.0. I was using PHP 7.4.3 but saw some errors stating I need to upgrade PHP to > 8.1. I updated my server to PHP 8.2. I then re-ran the upgrade commands but I’m getting and error in the browser as follows:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0".

How can I fix this?

Below is output from the last updates I ran:

$ sudo -u www-data ./bin/console suitecrm:app:upgrade -t SuiteCRM-8.7.0

SuiteCRM Upgrade
============

Running: backup-original-modules
step: backup-original-modules | status: done
Successfully backed up files
Running: check-package
step: check-package | status: done
Package found in path
Running: extract-package
step: extract-package | status: done
Package extracted
Running: check-permissions
step: check-permissions | status: done
Permissions checked
Running: install-upgrade-package
step: install-upgrade-package | status: done
Successfully installed package
Running: clear-symfony-cache
step: clear-symfony-cache | status: done
Successfully cleared cache
Warning! Please re-set permissions after this upgrade step has completed

$ sudo -u www-data ./bin/console suitecrm:app:upgrade-finalize -t SuiteCRM-8.7.0

SuiteCRM Finalize Upgrade
============

Running: legacy-post-upgrade
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
libpng warning: Interlace handling should be turned on when using png_read_image
step: legacy-post-upgrade | status: done
Post Upgrade process complete
Running: add-new-config-entries
step: add-new-config-entries | status: done
No new entries to add to the config file
Running: metadata-merge
step: metadata-merge | status: done
Metadata successfully merged
Running: run-migrations
step: run-migrations | status: done
Successfully run migrations
Running: finalize-clear-symfony-cache
step: finalize-clear-symfony-cache | status: done
Successfully cleared cache
Warning! Please re-set permissions after this upgrade step has completed
$
1 Like

You need to set permission and ownership correctly.

Also, SuiteCRM 8.7-beta is not for production yet. You can use 8.6.

I downloaded it from the released pages:

Not the BETA

I did reset the permissions correctly.

I’m getting this error in the browser:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0

but I am running PHP 8.2 >>

I just cheeked it

I don’t know if it is mistake or something. They did not do any announcement for it.

Maybe it is bug in the upgrade version.

Read release notes:

Maybe you will get some hints.

@suitecrm_team, did you already release v8.7? :thinking: :eyes:

Seems like, yes:

I read about early Oct in the roundup:

Probably there’ll be an annoucement following soon, let’s see:

Hey @wavesailor,

Could it be that apache is using another php version? That error clearly hints that somewhere a wrong php version is being used.

I agree with @anthony.oak.castro , the CLI PHP version is likely not the same.

Check with

php -v

from the command-line

php -v showed PHP version 8.2

but phpinfo(); showed PHP version 7.4

So apache2 was not updated to use PHP version PHP 8.2.

Once I fixed that, SuiteCRM works correctly now.

Thanks

1 Like