Re: [Tiki-devel] After installing a package on a Tiki24.1 => dependencies require a PHP version ">= 8.0.0"
Bernard Sfez via TikiWiki-devel <[email protected]>
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <[email protected]> |
Related feature request : https://dev.tiki.org/item7820-Installing-package-is-hardly-possible-on-shared-hosting-without-an-option-to-select-the-PHP-CLI-to-use > On 23 Aug 2022, at 13:18, Bernard Sfez via TikiWiki-devel <[email protected]> wrote: > > Related to the way installing a package works and pick the server default php version (first available in order). > > Thanks to Jonny 🍻 that could diagnose (and fixe my issue for this Tiki and the package) > IMO, we need a way to tell the package/composer things which PHP to use because when we’ll move to PHP8 and have to maintain several Tiki with both versions it will be a nightmare… > > I think I had a ticket for this, I will update. > —— > > Solution: > php7.4 temp/composer.phar remove mpdf/mpdf > > php7.4 temp/composer.phar require mpdf/mpdf > > update-alternatives --set php /usr/bin/php7.4 > (Now the default PHP for all the VPS in this server will be PHP7.4, if I understood correctly). > > Bernard > >> On 23 Aug 2022, at 12:02, Jonny Bradley via TikiWiki-devel <[email protected] <mailto:[email protected]>> wrote: >> >> >> Sorry, i see the fontawsome change was reverted, and i just uninstalled and reinstalled mpdf on php 7.4 and it was fine here - anyone else seeing this? >> >> jonny >> >> >> >>> On 23 Aug 2022, at 09:51, Jonny Bradley via TikiWiki-devel <[email protected] <mailto:[email protected]>> wrote: >>> >>> Hi Bernard >>> >>> Yes, this must be wrong - Tiki 24 needs to stay on php 7.4 - i'll see what happened. >>> >>> Also we saw there was a major upgrade of fontawesome in 24.x recently, i certainly saw one site missing its icons after an upgrade, and yet others seem fine... usually a fontawesome upgrade needs some changes to the Icons php code - so maybe we should revert both of these changes before 24.1? >>> >>> jonny >>> >>> >>> >>> >>>> On 23 Aug 2022, at 09:30, Bernard Sfez via TikiWiki-devel <[email protected] <mailto:[email protected]>> wrote: >>>> >>>> Hello, >>>> >>>> On a Tiki24.1 (updated from Git today) I installed “my" usual Tiki packages, npm-asset/lozad and mpdf/mpdf. >>>> >>>> Installing mpdf/mpdf broke the Tiki with this error displayed : Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.30. >>>> >>>> >>>> Please, whoever updated the dependencies should make sure this doesn’t happen especially not on an LTS. >>>> mpdf/mpdf is an essential package and the correct version should be set back for Tiki24 using PHP7.4. >>>> >>>> —— >>>> >>>> Troubleshooting and fixing the issue (it may help someone else); >>>> >>>> I tried to check the packages from the console but it displayed the same error: >>>> php7.4 console.php >>>> Composer detected issues in your platform: >>>> Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.30. >>>> >>>> I had to switch the PHP version for this domain to PHP8.0. >>>> Then using the console I deleted the mpdf/mpdf package manually so I can switch the domain back to PHP7.4. >>>> >>>> This let me with another error "Service Unavailable…” >>>> I changed the PHP option from FPM to CGI wrapper and then back again to FPM to kick a little PHP (MySQL) and get the domain back online and working. (I hope) >>>> >>>> Regards, >>>> Bernard >>>> _______________________________________________ >>>> TikiWiki-devel mailing list >>>> [email protected] <mailto:[email protected]> >>>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel >>> >>> >>> >>> _______________________________________________ >>> TikiWiki-devel mailing list >>> [email protected] <mailto:[email protected]> >>> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel >> >> >> >> _______________________________________________ >> TikiWiki-devel mailing list >> [email protected] <mailto:[email protected]> >> https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel > > _______________________________________________ > TikiWiki-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel _______________________________________________ TikiWiki-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel