1. vmurphy
  2. RO CSVI
  3. Monday, 13 December 2021
  4.  Subscribe via email
Hi,
I just updated RO CSVI to 8.0.0, Joomla install 3.10.3
I have a RO CSVI template job which I run with cron for loading address info into J2Store.
After the update the job is failing with an error related to composer.
Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.3.0". You are running 7.2.34-28+0~20211119.67+debian9~1.gbpf24e81. in /var/www/clients/client1/web21/web/administrator/components/com_csvi/assets/vendor/composer/platform_check.php on line 24
The website involved is running php 7.4.26
The default php on the server is indeed < 7.3 (7.2.34)
Composer has a php check in
administrator/components/com_csvi/assets/vendor/composer/platform_check.php
which appears to be picking up the default php rather than the php version running on the site.
I've commented the check out for now and all is working ok but I'm wondering if there's a proper fix?

Thanks...Vince
Accepted Answer Pending Moderation
Hello Vince,

The composer check I actually looked at the other day because it should not be checking against PHP 7.3 but PHP 7.2 as that is the minimum supported version. This is fixed for the upcoming 8.0.1 release next week. You can change line 7 to read:

if (!(PHP_VERSION_ID >= 70200)) {
This will do a check against PHP 7.2

If the website is running PHP 7.4, why not run PHP 7.4 as default for the cron jobs?
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO CSVI
  3. # 1
Accepted Answer Pending Moderation
Thanks Roland,
I'll make that change to the check code but of course you are correct, I should have just moved the cron job to php 7.4, which I'll do also.
Thanks for the quick response. Much appreciated.

Cheers...Vince
  1. more than a month ago
  2. RO CSVI
  3. # 2
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!