In this article, I would like to introduce you to the Ecshop Strict standards:only variables should is passed by the reference in the solution, I hope this tutorial is helpful to your classmates.
Error message
Strict standards:only variables should be passed by reference in d:/wamp/ecshop/includes/cls_template.php on line 406
Open 406 lines with the software is this sentence $tag _sel = Array_shift ("Explode (", $tag));
Workaround
More than 5.3 versions of the issue should also be related to configuration
As long as 406 lines break this sentence into two sentences, there's no problem.
The code is as follows |
Copy Code |
$tag _sel = Array_shift (Explode (", $tag)); Change to: $tag _arr = Explode (", $tag); $tag _sel = Array_shift ($tag _arr); |
Because the arguments of Array_shift are passed by reference, more than 5.3 by default can only pass specific variables, but not through function return values
Or if it is configured like this:
error_reporting = E_all | E_strict
ECshop Strict standards:only variables should be passed by reference in solution