Closed UtopiaOpera closed 2 years ago
The difficulty is that one part of this plugin requires php 7.1, the inlining of css styles, but most of it does not. I left the dependency at php 5.6 but there is a fairly recent, in February I think, addition to composer to check that the requirement of php 7.1 is met.
If I change the dependency to 7.1 then you won't be able to use the plugin, or you will need to upgrade php. If you are stuck then just remove the CommonPlugin.php file from the plugins directory.
It is the pelago/emogrifier package below that requires php 7.1. I had tried to avoid making that a hard requirement
duncan@duncan-OptiPlex-990 ~/Development/GitHub/phplist-plugin-common $ composer show --tree chdemko/bitarray 1.0.0 BitArray for PHP >= 5.4 └──php >=5.4.0 jasongrimes/paginator 1.0.2 A lightweight PHP paginator, for generating pagination controls in the style of Stack Overflow and Flickr. The 'first' and 'last' page links are shown inline as page numbers, and excess page numbers are replaced by ellipses. └──php >=5.3.0 jdorn/sql-formatter v1.2.17 a PHP SQL highlighting library └──php >=5.2.4 jmathai/php-multi-curl 9999999-dev A high performance PHP library for asynchronous curl http calls. jmathai/php-multi-curl dev-master A high performance PHP library for asynchronous curl http calls. katzgrau/klogger 1.2.1 A Simple Logging Class ├──php >=5.3 └──psr/log ^1.0.0 mouf/picotainer v1.1.0 This package contains a really minimalist dependency injection container compatible with container-interop. ├──container-interop/container-interop ~1.2 │ └──psr/container ^1.0 │ └──php >=5.3.0 └──psr/container ^1.0 └──php >=5.3.0 pelago/emogrifier v5.0.1 Converts CSS styles into inline style attributes in your HTML code ├──ext-dom * ├──ext-libxml * ├──php ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 └──symfony/css-selector ^3.4.32 || ^4.4 || ^5.1 └──php ^5.5.9|>=7.0.8 psr/container 1.0.0 Common Container Interface (PHP FIG PSR-11) └──php >=5.3.0 psr/log 1.0.0 Common interface for logging libraries setasign/tfpdf v1.32 This class is a modified version of FPDF that adds UTF-8 support. As of version 1.31 it is based on FPDF 1.82. Before it was based on FPDF 1.7. symfony/css-selector v3.4.47 Symfony CssSelector Component └──php ^5.5.9|>=7.0.8 symfony/filesystem v3.4.0 Symfony Filesystem Component └──php ^5.5.9|>=7.0.8
The plugin now disables that check of the php version. If you had to manually remove the file I mentioned then you should be able to re-install the plugin on the Manage Plugins page.
Oh, right on. With the error, I ended up restoring the complete backup I made before my PHPList core update. I just updated the plugin again after your instruction, and all seems tip-top Magoo. Cheers, Bramley. 🍺
The "depends: php 5.6" tag on the phplist website for this plugin needs updating (https://resources.phplist.com/plugin/common).
I updated the plugin today on my php 5.6 install.
My install of PHPList still allowed this plugin to update despite the dependency of php 7.1 not being met on my server running php 5.6, and it broke my install, just leaving me with an error message about php 7.1.