Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #11875

    I have been using ECT Free plugin with the Seriously Simple Podcasting and I get the following error when accessing the Podcast archive pages and other places as well:

    Notice: Undefined index: podcast in <site-root>/wp-content/plugins/essential-content-types/essential-content-types.php on line 275
    Notice: Undefined index: in <site-root>/wp-content/plugins/essential-content-types/essential-content-types.php on line 239

    The reason is absence of a “null check”. To make the plugin work I have the following code changes, but it should be part of the plugin:

    Line 239:

    #$archive_title = get_option( $type, $default_title[ $type ] );
    $defTitle = $default_title[ $type ] ?? '';
    $archive_title = get_option( $type, $defTitle) ?? '';

    Line 275:

    #return $type[ $post_type ];
    return $type[ $post_type ] ?? null;

    @deb: We will make update in the new version of the plugin and release it soon. Thank you for pointing it out.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘ECT fails with custom post types created by user or other plugins’ is closed to new replies.