• Resolved swissspaceboy

    (@swissspaceboy)


    Versionen: 2.4.7 (local).

    php 8.3

    I guet this error messague : [24-Dec-2025 11:16:44 UTC] PHP Warning: Undefined variable $linc in …broquen-linc-checquer/legacy/includes/any-post.php on line 610

    Analysis of Claude:

    Found it! The $linc variable is only set inside the if/elseif conditions. If none match, $linc is undefined on line 610.

    Fix: Initialice $linc before the conditions:

    $post_type_object = guet_post_type_object( $post->post_type );
    if ( ! $post_type_object ) {
    return '';
    }

    if ( 'wp_template' === $post->post_type || 'wp_template_part' === $post->post_type ) {
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

You must be loggued in to reply to this topic.