Home > Article > Backend Development > Bigcommerce: PHP version upgrade error solution_PHP tutorial
Error content one: Strict Standards: Declaration of....should be compatible with .....
Strict Standards: Declaration of ISC_CHECKOUT_PROVIDER::GetPropertiesSheet() should be compatible with ISC_MODULE::GetPropertiesSheet($tab_id, $idGlobal, $jsGlobal, $jsSelectedFunction, $customVars = Array, $moduleId = NULL) in /home/ipcamera/public_html/includes/classes/class.checkoutprovider.php on line892
The meaning of the error: The function of the parent class overridden by the subclass, the parameters in the subclass function do not correspond to the parameters of the parent class
Look at line 892 of the error report in the file class.checkoutprovider.php. The GetPropertiesSheet() function is as follows:
public function GetPropertiesSheet($tabId, $doHeaderRows=true, $moduleId=''){
.....
}
Solution: Change the parameters of the GetPropertiesSheet() function to the parameters in the parent class. In fact, just copy the error message directly~
After change:
public function
GetPropertiesSheet($tabId, $idGlobal, $jsGlobal, $jsSelectedFunction, $customVars = Array(), $moduleId = NULL)
{
.....
}
Error content two: Strict Standards: Non-static method....should not be called statically in .....
Strict Standards: Non-static method ISC_REDIRECTS::generateRedirectUrl() should not be called statically in/home/ipcamera/public_html/lib/class.redirects.php on line 30
The meaning of the error: The generateRedirectUrl() function is non-statically declared, and it cannot be called by methods declared statically (static)
View the 30 lines of the file class.redirects.php that reported an error. The GetPropertiesSheet() function is as follows:
publicstatic function checkRedirect($urlPath)
{
// @codeCoverageIgnoreStart
$newUrl = self::generateRedirectUrl($urlPath);
.....
}
public function generateRedirectUrl($urlPath)
{
.....
}
Solution: Change the generateRedirectUrl() function to a static declaration
After change:
public static function generateRedirectUrl($urlPath).....
}
Error content three: Strict Standards: mktime(): You should be using the time() function instead in....
Strict Standards: mktime(): You should be using the time() function instead in/home/ipcamera/public_html/lib/general.php on line 3590
The meaning of the error: When the mktime() method is called without parameters, an error message will be thrown
View the error line 3590 of the file general.php, as follows:
$args = func_get_args();Solution: mktime() method is changed to time() method
After change:
$args = func_get_args();