Parse Error in wp-includes/functions.php on line 2876
-
Hi,
nachdem ich die Dateien von WordPress 4.5 auf den FTP kopiert habe, bekomme ich folgende Fehlermeldung:
Parse error: syntax error, unexpected ‚{‚ in /…/wordpress/wp-includes/functions.php on line 2876function wp_json_encode( $data, $options = 0, $depth = 512 ) { /* * json_encode() has had extra params added over the years. * $options was added in 5.3, and $depth in 5.5. * We need to make sure we call it with the correct arguments. */ if ( version_compare( PHP_VERSION, '5.5', '>=' ) ) { $args = array( $data, $options, $depth ); } elseif ( version_compare( PHP_VERSION, '5.3', '>=' ) ) { $args = array( $data, $options ); } else { $args = array( $data ); } // Prepare the data for JSON serialization. $data = _wp_json_prepare_data( $data ); $json = @call_user_func_array( 'json_encode', $args ); // If json_encode() was successful, no need to do more sanity checking. // ... unless we're in an old version of PHP, and json_encode() returned // a string containing 'null'. Then we need to do more sanity checking. if ( false !== $json && ( version_compare( PHP_VERSION, '5.5', '>=' ) || false === strpos( $json, 'null' ) ) ) { return $json; } try { // Dies ist Zeile 2876 $args[0] = _wp_json_sanity_check( $data, $depth ); } catch ( Exception $e ) { return false; } return call_user_func_array( 'json_encode', $args ); }
Zeile 2876 habe ich im Quellcode mit Kommentar markiert.
Ich finde dort keinen Syntax Fehler 😀gruß
Ansicht von 6 Antworten - 1 bis 6 (von insgesamt 6)
Ansicht von 6 Antworten - 1 bis 6 (von insgesamt 6)
- Das Thema „Parse Error in wp-includes/functions.php on line 2876“ ist für neue Antworten geschlossen.