• Resolved kallipatira

    (@kallipatira)


    Hello everyone

    I recently changed the template here to a new custom one. Although yesterday everything was all right suddenly today the site crushes all the time. PHP error log repeatedly reports this
    [notice] EACCELERATOR(18580): PHP crashed on opline 220 of main() at /home/spotted/public_html/wp-includes/template-loader.php:75
    I checked and I found this lines of code in the template loader

    74 if ( $template = apply_filters( 'template_include', $template ) ) {
    75 include( $template );
    } elseif ( current_user_can( 'switch_themes' ) ) {
    $theme = wp_get_theme();
    if ( $theme->errors() ) {
    wp_die( $theme->errors() );
    }
    }
    return;
    endif;

    What could be the problem?

Viewing 1 replies (of 1 total)
  • Hello,

    Hard to tell like that, but i doubt this user check is very helpful. What happens if your php can’t tell if it’s a current user or not ?

Viewing 1 replies (of 1 total)
  • The topic ‘Problem with template loader’ is closed to new replies.