Dashboard displaying PHP code
-
The last time I logged into the dashboard was 21 April, and there have been 2 maintenance releases since then (4.5.1 and 4.5.2) which have auto updated. The front end is displaying without any issues, including when logged in.
The dashboard though is displaying like this.
Looking at the source code of the dashboard, the first part is as below.
<?php /** * Dashboard Administration Screen * * @package WordPress * @subpackage Administration */ /** Load WordPress Bootstrap */ require_once( dirname( __FILE__ ) . '/admin.php' ); /** Load WordPress dashboard API */ require_once(ABSPATH . 'wp-admin/includes/dashboard.php'); wp_dashboard_setup(); wp_enqueue_script( 'dashboard' ); if ( current_user_can( 'edit_theme_options' ) ) wp_enqueue_script( 'customize-loader' ); if ( current_user_can( 'install_plugins' ) ) wp_enqueue_script( 'plugin-install' ); if ( current_user_can( 'upload_files' ) ) wp_enqueue_script( 'media-upload' ); add_thickbox(); if ( wp_is_mobile() ) wp_enqueue_script( 'jquery-touch-punch' ); $title = __('Dashboard'); $parent_file = 'index.php'; $help = '<p>' . __( 'Welcome to your WordPress Dashboard! This is the screen you will see when you log in to your site, and gives you access to all the site management features of WordPress. You can get help for any screen by clicking the Help tab in the upper corner.' ) . '</p>'; // Not using chaining here, so as to be parseable by PHP4. $screen = get_current_screen(); $screen->add_help_tab( array( 'id' => 'overview', 'title' => __( 'Overview' ), 'content' => $help, ) );
Any ideas why this might be happening? It was working fine as of 4.5 – cannot say about 4.5.1 though. The site is on a server using PHP7 if relevant. The plugins installed and active are:
Yoast SEO v3.2.4
wp-bcrypt v1.0.1
All In One WP Security & Firewall (updated on 21 April, not sure of version)
Contact Form 7 (was updated on 21 April, not sure of version)
- The topic ‘Dashboard displaying PHP code’ is closed to new replies.