PHP7 Compatibility issue
-
Hi ??
Your plugin have a compatibility issue with last version of php.
You use dynamic variables names like this :
$$all_options['first_order']
but it is ambigous like explained here : https://php.net/manual/en/language.variables.variable.php
In order to use variable variables with arrays, you have to resolve an ambiguity problem. That is, if you write $$a[1] then the parser needs to know if you meant to use $a[1] as a variable, or if you wanted $$a as the variable and then the [1] index from that variable. The syntax for resolving this ambiguity is: ${$a[1]} for the first case and ${$a}[1] for the second.
Consequence : sitemap is not displayed and a lot of notices are displayed on frontend and backend settings page.
The solution is to replace the code by :
${$all_options['first_order']}
- The topic ‘PHP7 Compatibility issue’ is closed to new replies.