Loading...
 
Skip to main content

tiki23 KO after adding the composer package for google youtube videos which adds php 8.0 dependencies

Status
Closed
Subject
tiki23 KO after adding the composer package for google youtube videos which adds php 8.0 dependencies
Version
23.x
Category
  • Error
  • Regression
Feature
Packages
Video (Kaltura, YouTube, etc.)
Resolution status
Fixed or Solved
Submitted by
Xavier de Pedro
Volunteered to solve
rjsmelo
Keep informed
Marc Laporte
Lastmod by
Xavier de Pedro
Rating
(0)
Description

I recently upgraded a production tiki site from 21.x to 23.x in a new server, and when adding the missing composer packages in the new server, tiki became unusable after adding the google api client package:

Copy to clipboard
"google/apiclient ^2.2.2 Apache-2.0 wikiplugin_googlechart, wikiplugin_youtube"


This added from dependency on php 8.0, apparently, and since tiki23 .x uses php 7.4, tiki became broken: WSOD with just one text message saying:

"Composer detected issues in your platform: Your Composer dependencies require a PHP version "= 8.0.0".


I had to enter the server through ssh and remove all contents from the vendor folder plus the composer files in the root folder.
Dead end for a new tiki site admin not knowing all these tricky emergency measures, probably?

Solution

The dependency on this for wikiplugin_youtube was incorrect i think, so i will remove that, and from the entry on packagist.org it looks to me like it depends on php 5 OR 7 or 8, like this:

requires:

php:
5.6|
7.0|^8.0

So we have removed the blocker status from this bug and advise people not to install it for now

Importance
9
Easy to solve?
8
Priority
72
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7855
Created
Monday 04 October, 2021 16:32:09 UTC
by Xavier de Pedro
LastModif
Saturday 22 January, 2022 21:55:50 UTC


Show PHP error messages