[Pkg-giraffe-discuss] kopano-webapp and PHP 7.1
Carsten Schoenert
c.schoenert at t-online.de
Thu Dec 21 19:14:21 UTC 2017
Hi,
after pulling the changes the Ubuntu people have done on kopanocore I
tried to play around with bumping PHP version to 7.1. So I have build
the current 8.5.0 pre-version against php7.1-dev (php-mapi)
After fighting a bit with the php packages for getting the needed
modules installed and activated I can't see now the kopano-webapp site
anymore after login due critical PHP errors.
> [Thu Dec 21 18:22:22.775763 2017] [php7:error] [pid 14260] [client 192.168.122.1:33750] PHP Fatal error: Uncaught Error: Class 'SimpleXMLElement' not found in /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php:849\nStack trace:\n#0 /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php(417): PluginManager->extractPluginDataFromXML('<?xml version="...', 'files')\n#1 /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php(211): PluginManager->processPlugin('files')\n#2 /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php(164): PluginManager->readPluginFolder(Array)\n#3 /usr/share/kopano-webapp/index.php(167): PluginManager->detectPlugins('')\n#4 {main}\n thrown in /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php on line 849, referer: https://192.168.122.43/webapp/
> [Thu Dec 21 18:22:34.970843 2017] [php7:error] [pid 14256] [client 192.168.122.1:33764] PHP Fatal error: Uncaught Error: Class 'SimpleXMLElement' not found in /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php:849\nStack trace:\n#0 /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php(417): PluginManager->extractPluginDataFromXML('<?xml version="...', 'files')\n#1 /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php(211): PluginManager->processPlugin('files')\n#2 /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php(164): PluginManager->readPluginFolder(Array)\n#3 /usr/share/kopano-webapp/index.php(167): PluginManager->detectPlugins('')\n#4 {main}\n thrown in /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php on line 849, referer: https://192.168.122.43/webapp/
> [Thu Dec 21 18:22:49.544871 2017] [php7:error] [pid 14261] [client 192.168.122.1:33772] PHP Fatal error: Uncaught Error: Class 'SimpleXMLElement' not found in /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php:849\nStack trace:\n#0 /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php(417): PluginManager->extractPluginDataFromXML('<?xml version="...', 'files')\n#1 /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php(211): PluginManager->processPlugin('files')\n#2 /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php(164): PluginManager->readPluginFolder(Array)\n#3 /usr/share/kopano-webapp/index.php(167): PluginManager->detectPlugins('')\n#4 {main}\n thrown in /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php on line 849, referer: https://192.168.122.43/webapp/?user=foo
> [Thu Dec 21 18:22:52.704896 2017] [php7:error] [pid 14263] [client 192.168.122.1:33774] PHP Fatal error: Uncaught Error: Class 'SimpleXMLElement' not found in /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php:849\nStack trace:\n#0 /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php(417): PluginManager->extractPluginDataFromXML('<?xml version="...', 'files')\n#1 /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php(211): PluginManager->processPlugin('files')\n#2 /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php(164): PluginManager->readPluginFolder(Array)\n#3 /usr/share/kopano-webapp/index.php(167): PluginManager->detectPlugins('')\n#4 {main}\n thrown in /usr/share/kopano-webapp/server/includes/core/class.pluginmanager.php on line 849, referer: https://192.168.122.43/webapp/?user=foo
I'm definitely no PHP expert and maybe there is also some dependency for
the PHP7.1 stuff in Debian unstable not correct. After installing
php7.1-xml the webapp is working again (I assume).
Given that php7.0 is currently still the default in unstable I'm in
favor for staying on PHP 7.0 also for kopanocore and kopano-webapp and
using the (*)php-foo packages within the dependencies.
I guess upstream has no strong objection on moving to PHP 7.1 quickly
due needed supporting also older versions of PHP.
On then other side, the webapp 3.4.1 is also working the the current
kopanocore snapshot 8.5.0. That encourages me that the current state in
debian/experimental could be given a try in experimental or I can push
my work to Alioth at least. This would including most of the
modifications that Ubuntu has done on top of the 8.3.4-4.
If I can figure also out what are still needed in the webapp package I
would also prepare the 3.4.1 for uploading. So far I remember from the
last weekend it was just a little thing ...
--
Regards
Carsten Schoenert
More information about the Pkg-giraffe-discuss
mailing list