Home > Backend Development > PHP Tutorial > Bigcommerce: PHP version upgrade error solution_PHP tutorial

Bigcommerce: PHP version upgrade error solution_PHP tutorial

WBOY
Release: 2016-07-13 17:18:46
Original
859 people have browsed it

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();
$result = call_user_func_array("mktime", $args);

Solution: mktime() method is changed to time() method

After change:

$args = func_get_args();
$result = call_user_func_array("time", $args);





www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/621622.htmlTechArticleError content 1: Strict Standards: Declaration of....should be compatible with ..... Strict Standards : Declaration of ISC_CHECKOUT_PROVIDER::GetPropertiesSheet() should be comp...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template