Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter christinekimc

    (@christinekimc)

    That error is showing when I try to go to http://www.profitablehospitality.com/news/wp-admin

    The website is okay. I can’t just get inside the back end

    This is the code:
    function is_network_admin() {
    if ( isset( $GLOBALS[‘current_screen’] ) )
    return $GLOBALS[‘current_screen’]->in_admin( ‘network’ );
    elseif ( defined( ‘WP_NETWORK_ADMIN’ ) )
    return WP_NETWORK_ADMIN;

    return false;
    }

    Thread Starter christinekimc

    (@christinekimc)

    I was finally able to update my database and I was able to log in. But after logging in, this is now showing:

    Fatal error: Call to undefined method WP_Screen::in_admin() in D:\inetpub\vhosts\profitablehospitality.com\httpdocs\News\wp-includes\load.php on line 625

    Thread Starter christinekimc

    (@christinekimc)

    That’s what I did. But I was able to fix that one. Apparently, filezilla didn’t upload class-wp-theme.php

    But now this is showing:

    Fatal error: Cannot redeclare get_query_template() (previously declared in D:\inetpub\vhosts\profitablehospitality.com\httpdocs\News\wp-includes\theme.php:745) in D:\inetpub\vhosts\profitablehospitality.com\httpdocs\News\wp-includes\template.php on line 30

    This is the code:

    function get_query_template( $type, $templates = array() ) {
    	$type = preg_replace( '|[^a-z0-9-]+|', '', $type );
    
    	if ( empty( $templates ) )
    		$templates = array("{$type}.php");
    
    	return apply_filters( "{$type}_template", locate_template( $templates ) );
    }

    This is liine 30:
    `}’

    Thread Starter christinekimc

    (@christinekimc)

    I tried re-uploading them. Now this is showing:

    Warning: require(D:\inetpub\vhosts\profitablehospitality.com\httpdocs\News/wp-includes/class-wp-theme.php) [function.require]: failed to open stream: No such file or directory in D:\inetpub\vhosts\profitablehospitality.com\httpdocs\News\wp-settings.php on line 111

    Fatal error: require() [function.require]: Failed opening required ‘D:\inetpub\vhosts\profitablehospitality.com\httpdocs\News/wp-includes/class-wp-theme.php’ (include_path=’.;./includes;./pear’) in D:\inetpub\vhosts\profitablehospitality.com\httpdocs\News\wp-settings.php on line 111

    This is the line 111
    require( ABSPATH . WPINC . '/class-wp-theme.php' );

    Thread Starter christinekimc

    (@christinekimc)

    Where can I exactly download general-template.php? I have deactivated all plugins before I upgraded wordpress. I can’t log in because the error is showing on the page.

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