install.php fails: pclzip.lib.php on line 475

Evening,

Anyone any ideas why install.php fails early on with the following (run via. a browswer http:///SuiteCRM/install.php):

[Mon Jan 15 10:08:24.046938 2018] [php7:error] [pid 31153] [client 192.x.x.x:58518] PHP Fatal error: Cannot use result of built-in function in write context in /var/www/html/SuiteCRM/include/pclzip/pclzip.lib.php on line 475

CentOS 7.4.1708
MariaDB5.5
php 7.2.1

Support for PHP 7.2 is still experimental in SuiteCRM Beta3, so with earlier SuiteCRM versions you’re bound to get into trouble.

Anyway you can start by checking if you have all the necessary modules, namely the zip module.

For PHP 7.0 on Ubuntu I do this to get them all in one go:

apt install zip unzip php-mbstring php7.0-mbstring php-gettext php-xml-parser php7.0-zip php7.0-imap php7.0-gd php7.0-curl phpmyadmin

And I add php-xdebug if it’s a development machine.

Thanks for the tip.
It would appear that I have resolved this by replacement of the pclzip.lib.php file (in the tree) with .latest.
I found 2.8.2 dropped in nicely.

1 Like