4.4 upgrade giving Fatal Error in formatting.php line 3896
-
map_deep ( mixed $value, callable $callback )
Having just upgraded to 4.4 I am now getting an error when calling urlencode.
This function now calls this new map_deep function and is giving an error: –
Fatal error: An iterator cannot be used with foreach by reference in /home/domain/public_html/domain/wp-includes/formatting.php on line 3896
A foreach iteration was not done in previous versions i.e urlencode_deep was simply returning an array but now calls map_deep and this uses a foreach iteration.
Code that initiated this error: –
foreach( $submit_vars as $key => $value ) $fields .= "$key=" . urlencode( $value ) . "&";
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘4.4 upgrade giving Fatal Error in formatting.php line 3896’ is closed to new replies.