• I was working on an error in the formatting.php file and did not understand what was wrong. I ended up making a minor change (added a space where I thought it needed one). This gave me a fatal error so I quickly undid what I had done but it still gives me a fatal error…

    Please tell me I can still fix this? Bonus points if you can tell me how.

    Error example (each page is different):

    Fatal error: Uncaught Error: Call to undefined function wp_replace_in_html_tags() in /sites/zakwetu.com/www/wp-includes/class-wp-embed.php:324 Stack trace: #0 /sites/zakwetu.com/www/wp-includes/plugin.php(235): WP_Embed->autoembed(‘[woocommerce_ch…’) #1 /sites/zakwetu.com/www/wp-includes/post-template.php(240): apply_filters(‘the_content’, ‘[woocommerce_ch…’) #2 /sites/zakwetu.com/www/wp-content/themes/mystile/page.php(39): the_content() #3 /sites/zakwetu.com/www/wp-includes/template-loader.php(75): include(‘/sites/zakwetu….’) #4 /sites/zakwetu.com/www/wp-blog-header.php(19): require_once(‘/sites/zakwetu….’) #5 /sites/zakwetu.com/www/index.php(17): require(‘/sites/zakwetu….’) #6 {main} thrown in /sites/zakwetu.com/www/wp-includes/class-wp-embed.php on line 324

Viewing 1 replies (of 1 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    DO NOT modify core files. If you think the solution is to modify core, then you are solving the wrong problem.

    Go to www.remarpro.com, download a clean copy of wordpress, unzip it, and upload the files via FTP to your site, replacing what’s there.

    When you have that done, start a new thread regarding the issue you have that led you to modifying a core file in the first place.

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error after minor change in formatting.php’ is closed to new replies.