Notice: Undefined variable: class error at the top of any pages
-
Hello
i am running the latest version of WP 5.2.4
Database mysql 5.5
Php Version 7.1.1
Hosting linux
What happened is: since i used (for the first time) sweep, a plugin to clean the db. i got an error while loading the page. Unfortunately i did not backup because i assumed i had the db backup in my account and …no. I did not so i cant reverse the action.
The error says<blockquote>Notice: Undefined variable: class in (...) /header.php on line 27 class="post-template-default single single-post postid-2624 single-format-standard logged-in admin-bar no-customize-support"</blockquote>
I checked in that line and i got the body class declaration
<body <?php body_class( $class ); ?>>
Does anyone know if i can fix that with adding some parameters somewhere?
DO i have to remove the body class? I can try that
Thanks for helping in advance.
PaoloThe page I need help with: [log in to see the link]
- The topic ‘Notice: Undefined variable: class error at the top of any pages’ is closed to new replies.