• Resolved paulberg70

    (@paulberg70)


    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.
    Paolo

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter paulberg70

    (@paulberg70)

    Solved: I did not know that debug set to true in config.php shows live. i thought differentl outcome (i did not find the log file so i thought this command would generate it. Closing this topic. (set back to “false” the debug option.

Viewing 1 replies (of 1 total)
  • The topic ‘Notice: Undefined variable: class error at the top of any pages’ is closed to new replies.