• Resolved oly002

    (@oly002)


    Getting this concerning error with the plugin – (even after running regenerate thumbnails to ensure everything exists):

    PHP Warning: Trying to access array offset on value of type null in /var/web/site/public_html/wp-content/plugins/advanced-category-and-custom-taxonomy-image/wp-advanced-taxonomy-image.php on line 595

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter oly002

    (@oly002)

    Using shortcode:

    [ad_tax_image term_id=”” return_img_tag=”true” class=”featured-img”]

    Image id is pulling from that current page loaded in template.

    • This reply was modified 9 months, 2 weeks ago by oly002.

    I’m having this same error. Line 595.
    I believe the fix is to update line 595 to this:

    return get_taxonomy_image( $atts['term_id'], filter_var( $atts['return_img_tag'], FILTER_VALIDATE_BOOLEAN ), explode( ' ', $atts['class'] ) );

    This changes the first $attr[‘term_id’] to $atts[‘term_id’]. Everything works for me and no more errors.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP ERROR – line’ is closed to new replies.