Bigcommerce: PHP version upgrade error solution

Source: Internet
Author: User
Error 1: StrictStandards: DeclarationofshouldbecompatiblewithStrictStandards: DeclarationofISC_CHECKOUT_PROVIDER: GetPropertiesSheet () shouldbe

Error 1:Strict Standards: Declaration of... shocould be compatible .....

Strict Standards: Declaration of attributes: GetPropertiesSheet () shocould be compatible with ISC_MODULE: GetPropertiesSheet ($ tab_id, $ idGlobal, $ jsGlobal, $ jsSelectedFunction, $ customVars = Array, $ moduleId = NULL) in/Home/ipcamera/public_html/uplodes/classes/class. checkoutprovider. phpOn line892

Meaning of error:A function of the parent class that is rewritten by a subclass. the parameters in the subclass function do not correspond to the parameters of the parent class.

View row 892 of the error reported by class. checkoutprovider. php. the GetPropertiesSheet () function is as follows:

Public function GetPropertiesSheet ($ tabId, $ doHeaderRows = true, $ moduleId = ''){

.....

}

Solution:Change the parameter of the GetPropertiesSheet () function to the parameter in the parent class. In fact, you can directly Copy the error message ~

After modification:

Public function GetPropertiesSheet ($ tabId, $ idGlobal, $ jsGlobal, $ jsSelectedFunction, $ customVars = Array (), $ moduleId = NULL)
{

.....

}


Error message 2:Strict Standards: Non-static method... shocould not be called statically in .....

Strict Standards: Non-static method ISC_REDIRECTS: generateRedirectUrl () shocould not be called statically in/Home/ipcamera/public_html/lib/class. redirects. phpOn line30

Meaning of error:The generateRedirectUrl () function is non-static and cannot be (Static) Declared method call

View the 30 rows reported by class. redirects. php in the file. the GetPropertiesSheet () function is as follows:

PublicStaticFunction checkRedirect ($ urlPath)
{
// @ CodeCoverageIgnoreStart
$ NewUrl = self: generateRedirectUrl ($ urlPath );

.....

}

Public function generateRedirectUrl ($ urlPath)
{

.....

}

Solution:Change the generateRedirectUrl () function to static declaration.

After modification:

Public static function generateRedirectUrl ($ urlPath)
{

.....

}



Error 3:Strict Standards: Mktime (): You shocould be using the time () function instead in .....

Strict Standards: Mktime (): You shocould be using the time () function instead in/Home/ipcamera/public_html/lib/general. phpOn line3590

Meaning of error:When the mktime () method is called without parameters, an error message is thrown.

View the error 3590 line in the general. php file, as shown below:

$ Args = func_get_args ();
$ Result = call_user_func_array ("mktime", $ args );

Solution:Change the mktime () method to the time () method.

After modification:

$ Args = func_get_args ();
$ Result = call_user_func_array ("time", $ args );





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.