• Just downloaded a fresh version of wordpress to pull out the wp-includes/vars.php file and I can’t see any closing tag for the starting <?php tag at the end of the file??

    I get this error on my wp-includes/vars.php page:

    Fatal error: Call to undefined function is_admin() in /home/[something]/public_html/wp-includes/vars.php on line 23

Viewing 6 replies - 1 through 6 (of 6 total)
  • A closing tag isn’t required.

    Thread Starter Dibit

    (@dibit)

    OK switched it back to default for that page.

    https://aussiebuilder.com/wp-includes/vars.php

    Giving a fatal error line 23, line 23 in the code is:

    if ( is_admin() ) {

    Any ideas why it would be doing that?

    Have deactivated admin related plugins and same problem.

    Some basic troubleshooting steps to help narrow down the issue:

    – Temporarily deactivate all plugins
    – Temporarily apply the default WordPress theme

    If the symptom changes, try your theme again and compare the result. If that’s okay, reactivate your plugins one by one and test the results after each one.

    Thread Starter Dibit

    (@dibit)

    Deactivated all plugins and still the same. Activated twenty twelve theme and still the same (while reseting the browser each time too so I am not checking a cached page).

    Thread Starter Dibit

    (@dibit)

    Should query.php define what is_admin is?

    Thread Starter Dibit

    (@dibit)

    Found where it’s defined in query.php and file seems same as up to date one so not sure what’s happening.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘wp-includes/vars.php line 23 and no ?> ?’ is closed to new replies.