Changed code in function.php, broke my site completely
-
Hi all
I added a line into my functions .php file. This resulted in a critical error. I logged in in ‘safe mode’ and tried to delete it but got this below. Bear in mind that I never touched header.php. I simply added the one line of code into functions.php.
Any help would be greatly appreciated. Thank you.
Your PHP code changes were rolled back due to an error on line 58 of file wp-content/themes/neve/header.php. Please fix and try saving again.
Uncaught Error: Call to undefined function neve_body_attrs() in wp-content/themes/neve/header.php:58
Stack trace:
#0 wp-includes/template.php(770): require_once()
#1 wp-includes/template.php(716): load_template(‘/home/storage/5…’, true, Array)
#2 wp-includes/general-template.php(48): locate_template(Array, true, true, Array)
#3 wp-content/themes/neve/page-templates/template-pagebuilder-full-width.php(19): get_header()
#4 wp-includes/template-loader.php(106): include(‘/home/storage/5…’)
#5 wp-blog-header.php(19): require_once(‘/home/storage/5…’)
#6 index.php(17): require(‘/home/storage/5…’)
#7 {main}
thrown
- The topic ‘Changed code in function.php, broke my site completely’ is closed to new replies.