WHMCS Module on PHP 7.1 server dead.
10-18-2018, 06:23 AM
(This post was last modified: 10-18-2018, 06:26 AM by aaronlroberts.)
I've been using the WHMCS module on my server for a while now, but now that WHMCS has added support for PHP 7.1, and it is required for the new version. The WHMCS installation is NOT on the same server as the one which the hosting account will be created. They are 2 separate servers, and this worked fine before.
It seems that the module dies upon executing the command to do anything with the sentora server via the module. 2 lines are output in the error log as follows:
Note: I had to add spaced between the # and a number as this forum replaces it with another thread title. I also removed my domain information / folder structure from the logs too.
Dead dead dead.. any ideas?
System
Linux x 2.6.32-042stab127.2 # 1 SMP Thu Jan 4 16:41:44 MSK 2018 x86_64
PHP Version 7.1.23-2+ubuntu14.04.1+deb.sury.org+1
Server API Apache 2.0 Handler
Zend Engine v3.1.0, Copyright © 1998-2018 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.4, Copyright © 2002-2018, by ionCube Ltd.
with Zend OPcache v7.1.23-2+ubuntu14.04.1+deb.sury.org+1, Copyright © 1999-2018, by Zend Technologie
It seems that the module dies upon executing the command to do anything with the sentora server via the module. 2 lines are output in the error log as follows:
Note: I had to add spaced between the # and a number as this forum replaces it with another thread title. I also removed my domain information / folder structure from the logs too.
Quote:[Wed Oct 17 21:48:38.500097 2018] [php7:error] [pid 1041] [client 78.96.65.14:63093] PHP Fatal error: Cannot use lexical variable $eventName as a parameter name in /XXXXXXXXXX/modules/servers/sentora/lib/senitor/vendor/guzzlehttp/guzzle/src/Event/Emitter.php on line 48, referer: https://WHMCSDOMAIN.COM/admin/ordersadd.php?userid=10
Quote:[Wed Oct 17 21:48:38.502360 2018] [php7:notice] [pid 1041] [client 78.96.65.14:63093] [WHMCS Application] ERROR: Whoops\\Exception\\ErrorException: Cannot use lexical variable $eventName as a parameter name in /XXXXXXXXXX/modules/servers/sentora/lib/senitor/vendor/guzzlehttp/guzzle/src/Event/Emitter.php:48 Stack trace: # 0 /XXXXXXXXXX/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\\Utility\\Error\\Run->handleError(64, 'Cannot use lexi...', '/var/sentora/ho...', 48) # 1 [internal function]: WHMCS\\Utility\\Error\\Run->handleShutdown() # 2 {main} {"exception":"[object] (Whoops\\\\Exception\\\\ErrorException(code: 64): Cannot use lexical variable $eventName as a parameter name at //XXXXXXXXXX/modules/servers/sentora/lib/senitor/vendor/guzzlehttp/guzzle/src/Event/Emitter.php:48)"} [], referer: https://WHMCSDOMAIN.COM/admin/ordersadd.php?userid=10
Dead dead dead.. any ideas?
System
Linux x 2.6.32-042stab127.2 # 1 SMP Thu Jan 4 16:41:44 MSK 2018 x86_64
PHP Version 7.1.23-2+ubuntu14.04.1+deb.sury.org+1
Server API Apache 2.0 Handler
Quote:/etc/php/7.1/apache2/conf.d/10-mysqlnd.ini, /etc/php/7.1/apache2/conf.d/10-opcache.ini, /etc/php/7.1/apache2/conf.d/10-pdo.ini, /etc/php/7.1/apache2/conf.d/15-xml.ini, /etc/php/7.1/apache2/conf.d/20-bcmath.ini, /etc/php/7.1/apache2/conf.d/20-bz2.ini, /etc/php/7.1/apache2/conf.d/20-calendar.ini, /etc/php/7.1/apache2/conf.d/20-ctype.ini, /etc/php/7.1/apache2/conf.d/20-curl.ini, /etc/php/7.1/apache2/conf.d/20-dba.ini, /etc/php/7.1/apache2/conf.d/20-dom.ini, /etc/php/7.1/apache2/conf.d/20-exif.ini, /etc/php/7.1/apache2/conf.d/20-fileinfo.ini, /etc/php/7.1/apache2/conf.d/20-ftp.ini, /etc/php/7.1/apache2/conf.d/20-gd.ini, /etc/php/7.1/apache2/conf.d/20-gettext.ini, /etc/php/7.1/apache2/conf.d/20-iconv.ini, /etc/php/7.1/apache2/conf.d/20-imagick.ini, /etc/php/7.1/apache2/conf.d/20-imap.ini, /etc/php/7.1/apache2/conf.d/20-intl.ini, /etc/php/7.1/apache2/conf.d/20-json.ini, /etc/php/7.1/apache2/conf.d/20-ldap.ini, /etc/php/7.1/apache2/conf.d/20-mbstring.ini, /etc/php/7.1/apache2/conf.d/20-mcrypt.ini, /etc/php/7.1/apache2/conf.d/20-mysqli.ini, /etc/php/7.1/apache2/conf.d/20-pdo_mysql.ini, /etc/php/7.1/apache2/conf.d/20-phar.ini, /etc/php/7.1/apache2/conf.d/20-posix.ini, /etc/php/7.1/apache2/conf.d/20-readline.ini, /etc/php/7.1/apache2/conf.d/20-shmop.ini, /etc/php/7.1/apache2/conf.d/20-simplexml.ini, /etc/php/7.1/apache2/conf.d/20-soap.ini, /etc/php/7.1/apache2/conf.d/20-sockets.ini, /etc/php/7.1/apache2/conf.d/20-sysvmsg.ini, /etc/php/7.1/apache2/conf.d/20-sysvsem.ini, /etc/php/7.1/apache2/conf.d/20-sysvshm.ini, /etc/php/7.1/apache2/conf.d/20-tokenizer.ini, /etc/php/7.1/apache2/conf.d/20-wddx.ini, /etc/php/7.1/apache2/conf.d/20-xmlreader.ini, /etc/php/7.1/apache2/conf.d/20-xmlrpc.ini, /etc/php/7.1/apache2/conf.d/20-xmlwriter.ini, /etc/php/7.1/apache2/conf.d/20-xsl.ini, /etc/php/7.1/apache2/conf.d/20-zip.ini
Zend Engine v3.1.0, Copyright © 1998-2018 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.4, Copyright © 2002-2018, by ionCube Ltd.
with Zend OPcache v7.1.23-2+ubuntu14.04.1+deb.sury.org+1, Copyright © 1999-2018, by Zend Technologie