• I’m not 100% certain at this point whether this is an incompatibly between WordPress 6.0.1 and Custom Error Pages 1.1 or if it’s caused by my theme or 34 other plugins…

    But basically, the error pages stopped rendering (sometime in the last month – but WP has had a couple of updates since then). My theme used to be able to display the title and the content of the error pages using /content-page.php and code similar to:

     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php the_title('<h1>','</h1>') ?>
    <?php the_content(); ?>
    <?php endwhile; endif; ?>

    but it stopped working and just rendered an empty title and content section (the theme itself continued to work as expected).

    To get it to work, I had to modify the above to be something like:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
                    <?php global $post;
                    if (($post instanceof WP_Post) && (1===preg_match("/^\d{3}-error-\d{4,}$/",$post->post_name))) :
                            ?>
                                    <h1><?php echo $post->post_title; ?></h1>
                                    <?php $content=$post->post_content;
                                    $content=apply_filters('the_content',$content);
                                    $content = str_replace( ']]>', ']]>', $content );
                                    echo $content; ?>
    
                      else :
    <?php the_title('<h1>','</h1>') ?>
    <?php the_content(); ?>
    <?php endif; ?>
    <?php endwhile; endif; ?>

    `

    Anybody else having this problem with WordPress 6.0.1?

Viewing 4 replies - 1 through 4 (of 4 total)
  • This plugin hasn’t been updated in 3 years and is probably abandoned by its author who seems to have disappeared from social media about the same time. I’d like to find an easy way to migrate to another plugin or find someone to take this one over.

    Plugin Author Jesin A

    (@jesin)

    Hey guys I’m sorry I hadn’t had the time to maintain this plugin. I’ll try fixing it in a week.

    Hi.
    After an automatic update to WordPress 6.0.1 i got this message:”Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email. In this case, WordPress caught an error with one of your plugins, ShareThis Dashboard for Google Analytics.”

    Site appeared broken and I could not accessed the dashboard. I logged in through recovery mode and deleted the plugin but now my website is invisible, pages cannot load, it is blank.

    Any advice on what I should do (and my knowledge is really basic)? Thanks.

    Thread Starter Richard Bairwell

    (@rbairwell)

    Hi @doplgenger,
    It sounds like this isn’t a problem concerning the “Custom Error Pages” plugin but the “ShareThis Dashboard For Google Analytics” plugin – if you ask in their support section they may be able to help.
    There should probably be an “error_log” file in your web host directory (where wp-config.php is) which might give an indication of what went wrong: failing that enabling WordPress’s debugging mode might give more indication as to why it is failing. If you are still stuck/unfamiliar with these then I advise contacting either your web designer, your web host or your favourite search engine with any error messages you are able to get.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Possible problem with WordPress 6.0.1’ is closed to new replies.