• Resolved tracey75

    (@tracey75)


    Hi !

    I am trying to add a new blog post, but when I click ‘Add New Post’ it takes me to a page with web code (? like a Style sheet kind of). I’ll put the first part of what is coming up at the end of my question….

    This website has been up for years and just occurred on the weekend. I hadn’t made any changes to the site. I last added a new post about a week ago and all was fine.

    I updated everything, deleted unused Plugins. I’m on version 5.1 of WordPress and running Divi theme.

    Site is still live and I can edit previous posts, just not add a new one.

    Any thoughts on why?

    Thank you !

    Here’s the first part of the code that appears on the page when I click ‘Add New Post’:

    <?php
    /**
    * New Post Administration Screen.
    *
    * @package WordPress
    * @subpackage Administration
    */

    /** Load WordPress Administration Bootstrap */
    require_once( dirname( __FILE__ ) . ‘/admin.php’ );

    /**
    * @global string $post_type
    * @global object $post_type_object
    * @global WP_Post $post
    */
    global $post_type, $post_type_object, $post;

    if ( ! isset( $_GET[‘post_type’] ) ) {

    • This topic was modified 5 years, 1 month ago by tracey75.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator t-p

    (@t-p)

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

    If you can install plugins, install “Health Check”: https://wordpress.org/plugins/health-check/ On the troubleshooting tab, you can click the button to disable all plugins and change the theme for you, while you’re still logged in, without affecting normal visitors to your site.

    Thread Starter tracey75

    (@tracey75)

    So I tried this again. I disabled the theme (used twenty nineteen), I deactivated all the plugins and I’m still having the same issue??

    Thoughts?

    Moderator t-p

    (@t-p)

    after switching to the default twenty nineteen and deactivating all the plugins, please try clearing ALL caches

    • This reply was modified 5 years, 1 month ago by t-p.
    • This reply was modified 5 years, 1 month ago by t-p.
    Thread Starter tracey75

    (@tracey75)

    Found it! Thank you 🙂 I updated my PHP as well at the same time. I went in and in trouble shooting mode with the Health Check plugin and then also each time I reactivated a theme/plugin, I cleared the cache/refreshed and found it was one plugin that was causing the issue.

    Thank you for helping me! So very very much appreciated!

    Thread Starter tracey75

    (@tracey75)

    Solved.

    Moderator t-p

    (@t-p)

    Glad its sorted 🙂

    Moderator t-p

    (@t-p)

    Glad its sorted 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can not Add New Post’ is closed to new replies.