CMS MADE SIMPLE FORGE

CGExtensions

 

[#12026] Installing CGExtension 1.62.6 on a fresh v2.2.10 installation causes site failure ....

avatar
Created By: Darren Kierman (kierweb)
Date Submitted: Tue Apr 30 10:53:52 -0400 2019

Assigned To: Robert Campbell (calguy1000)
Version: 1.62.6
CMSMS Version: 2.2.10
Severity: Critical
Resolution: Awaiting Response
State: Open
Summary:
Installing CGExtension 1.62.6 on a fresh v2.2.10 installation causes site failure ....
Detailed Description:
"PHP Fatal error:  Default value for parameters with a class type hint can only
be NULL in
/home/robertso/public_html/modules/CGExtensions/CGExtensions.module.php on line
852"



History

Comments
avatar
Date: 2019-04-30 16:22
Posted By: Robert Campbell (calguy1000)

Are you running PHP 7.2.1+ ... that is the minimum requirement
      
avatar
Date: 2019-05-01 04:07
Posted By: Darren Kierman (kierweb)

Hi Robert,

I'm running PHP 7.2.17.

I did manage to get it installed by doing the following ...

Set PHP to 7.1, Install 1.62.3 of CG Extensions - and then upgrade to v1.62.6
which produces a PHP minimum error.
Upgrade PHP to 7.2 and then click "Upgrade" on CG Extensions.

But v1.62.6 will not install directly onto a fresh installation running PHP 7.2
      
avatar
Date: 2019-05-02 12:49
Posted By: Hyun Kelle (SwBd)

Hello everyone,
Same with version 1.62.7 and Php 7.2.1 on CMSMS 2.2.10


Installation of 1.62.7 -> Nok 
Installation of 1.62.6 -> Nok

Installation of 1.62.3 -> ok
Update to 1.62.7 -> ok but several bugs to the installation of other modules
depends on CGextensions

Error message :

Deprecated: Non-static method CGExtensions\jsloader\jsloader::register() should
not be called statically in
/home/devsiteaal/www/clients/test/modules/CGExtensions/method.install.php on
line 98

Fatal error: Uncaught Error: Using $this when not in object context in
/home/devsiteaal/www/clients/test/modules/CGExtensions/lib/jsloader/class.jsloader.php:148
Stack trace:
#0
/home/devsiteaal/www/clients/test/modules/CGExtensions/method.install.php(98):
CGExtensions\jsloader\jsloader::register(Object(CGExtensions\jsloader\libdefn))
#1 /home/devsiteaal/www/clients/test/lib/classes/class.CMSModule.php(994):
include('/home/devsiteaa...')
#2
/home/devsiteaal/www/clients/test/lib/classes/class.moduleoperations.inc.php(468):
CMSModule->Install()
#3
/home/devsiteaal/www/clients/test/lib/classes/class.moduleoperations.inc.php(534):
ModuleOperations->_install_module(Object(CGExtensions))
#4
/home/devsiteaal/www/clients/test/modules/ModuleManager/action.installmodule.php(104):
ModuleOperations->InstallModule('CGExtensions')
#5 /home/devsiteaal/www/clients/test/lib/classes/class.CMSModule.php(1403):
includ in
/home/devsiteaal/www/clients/test/modules/CGExtensions/lib/jsloader/class.jsloader.php
on line 148


Best regards.
      
Updates

Updated: 2019-04-30 16:22
resolution_id: => 10