During installation getting that error
Strict standards: Non-static method LogicHook::initialize() should not be called statically in C:\wamp\www\New folder\SuiteCRM-7.0.2\SuiteCRM7.0.2\include\utils.php on line 3014
During installation getting that error
Strict standards: Non-static method LogicHook::initialize() should not be called statically in C:\wamp\www\New folder\SuiteCRM-7.0.2\SuiteCRM7.0.2\include\utils.php on line 3014
Hi dev,
This error is normally relating to the version of PHP you are using being prior to 5.3. What version of PHP is your server running?
Thanks,
Will.
php 5.4.12
Hi dev,
What version of PHP is your server running? The WAMP server is just your server which runs PHP/MySQL etc
Thanks,
Will.
php version is 5.4.12
mysql is 5.6.12
Hi dev,
Actually that kind of warning comes from PHP 5.4 onwards, not before. see here for some discussion and possible solutions. You could try injecting the error reporting values they suggest into your php.ini file
The code comments in include/utils/LogicHook.php declare that the function is static
/**
* Static Function which returns and instance of LogicHook
*
* @return unknown
*/
function initialize(){
if(empty($GLOBALS['logic_hook']))
$GLOBALS['logic_hook'] = new LogicHook();
return $GLOBALS['logic_hook'];
}
so you could just put the static keyword there, where it should be and try again.
/**
* Static Function which returns and instance of LogicHook
*
* @return unknown
*/
static function initialize(){
if(empty($GLOBALS['logic_hook']))
$GLOBALS['logic_hook'] = new LogicHook();
return $GLOBALS['logic_hook'];
}
Cheers
Bruce