vincentatsc
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Importer] WordPress Importer – PHP Compatibility Checker reportMKSnMKS the curly brace form I posted is backwards compatible, though I haven’t personally tested it.
wiaofim, as I posted earlier in this thread:
$$meta[‘key’] = $meta[‘value’];should be
${$meta[‘key’]} = $meta[‘value’];Note the curly braces around $meta[‘key’]
- This reply was modified 8 years, 6 months ago by vincentatsc.
Forum: Plugins
In reply to: [WordPress Importer] WordPress Importer – PHP Compatibility Checker reporthttp://php.net/manual/en/language.variables.variable.php
Curly braces may also be used, to clearly delimit the property name. They are most useful when accessing values within a property that contains an array, when the property name is made of mulitple parts, or when the property name contains characters that are not otherwise valid (e.g. from json_decode() or SimpleXML).
It appears the syntax is well supported in php 5.6 and I suspect earlier minor versions.
Forum: Plugins
In reply to: [WordPress Importer] WordPress Importer – PHP Compatibility Checker reportYes, that fixed importing menu items in php 7.
This issue has been brought up a few times in the support forums, hopefully the author updates the code as php 7 is used more frequently.Forum: Plugins
In reply to: [WordPress Importer] WP importer compatible with PHP 7.1?It is not compatible. You can manually fix the problem:
Line 884 of wordpress-importer.php is:
$$meta['key'] = $meta['value'];
and needs to be:
${$meta['key']} = $meta['value'];PHP 7 changed the order of operations of variable variables.
Forum: Plugins
In reply to: [WordPress Importer] PHP 7 compatibility issuesThis is a legitimate php 7 issue.
Line 884 is:
$$meta['key'] = $meta['value'];
and should be:
${$meta['key']} = $meta['value'];I have spent about 8 hours tracking down this issue and would appreciate seeing it fixed.
Forum: Plugins
In reply to: [WordPress Importer] WordPress Importer – PHP Compatibility Checker reportThis is a legitimate php 7 issue.
Line 884 is:
$$meta['key'] = $meta['value'];
and should be:
${$meta['key']} = $meta['value'];I have spent about 8 hours tracking down this issue and would appreciate seeing it fixed.