christinekimc
Forum Replies Created
-
Forum: Installing WordPress
In reply to: Parse error: syntax error, unexpected T_FUNCTIONThat 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;
}Forum: Installing WordPress
In reply to: Parse error: syntax error, unexpected T_FUNCTIONI 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
Forum: Installing WordPress
In reply to: Parse error: syntax error, unexpected T_FUNCTIONThat’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:
`}’Forum: Installing WordPress
In reply to: Parse error: syntax error, unexpected T_FUNCTIONI 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' );Forum: Installing WordPress
In reply to: Parse error: syntax error, unexpected T_FUNCTIONWhere 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.