• Because there is no $post on a 404 page, a notice is generated: Trying to get property of non-object in /path/to/wp-content/plugins/jkl-unit-converter/inc/class-jkl-unit-converter-widget.php on line 64

    Replacing line 64
    if ( ! $post || ! has_shortcode( $post->post_content, 'jkluc' ) ) {

    with
    if ( ! $post || ! has_shortcode( $post->post_content, 'jkluc' ) ) {

    eliminates this notice.

  • The topic ‘404 page generates error’ is closed to new replies.