ECshop Strict Standards: Only variables shocould be passed by reference in solution

Source: Internet
Author: User
Tags explode

Error message

Strict Standards: Only variables shocould be passed by reference in D:/wamp/ecshop/nodes des/cls_template.php on line 406

Use the software to open the 406 lines.$ Tag_sel = array_shift (explode ('', $ tag ));

Solution

Problems with version 5.3 and later should also be related to configuration

There is no problem if you split this sentence into two sentences in line 3.

The code is as follows: Copy code

$ Tag_sel = array_shift (explode ('', $ tag ));

Changed:

$ Tag_arr = explode ('', $ tag );
$ Tag_sel = array_shift ($ tag_arr );

Because the array_shift parameter is passed by reference, by default, more than 5.3 can only pass specific variables, but cannot return values through the function.

Or, if the configuration is as follows:

Error_reporting = E_ALL | E_STRICT

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.