• Resolved bluisier

    (@bluisier)


    I had to comment out this filter in inc/class-unique-headers-taxonomy-header-images.php

    
    add_filter( 'theme_mod_header_image_data', array( $this, 'modify_header_image_data' ) );
    

    because I was getting the following warnings when posts on category page had a cusome header image defined :

    
    warning Attempt to assign property of non-object in /var/www/html/web/app/plugins/unique-headers/inc/class-unique-headers-taxonomy-header-images.php on line 375
    
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Ryan Hellyer

    (@ryanhellyer)

    Thanks for letting me know about this ??

    I’ll take a look at this later today or tomorrow for you. I’m not sure what has triggered it, but I should be able to prevent the error from showing up by doing a check to see if the object exists before using it.

    Plugin Author Ryan Hellyer

    (@ryanhellyer)

    I’m quite flummoxed as to how you triggered this bug, but I’ve added an object check into version 1.7.12 which should at least prevent the error showing up and avoid you needing to comment out that line of code.

    Thread Starter bluisier

    (@bluisier)

    Great thanks a lot for your quick fix. Really appreciated!

    Plugin Author Ryan Hellyer

    (@ryanhellyer)

    If it doesn’t work please let me know. I obviously couldn’t test it since I can’t replicate the problem. I’m 99.9% certain it will work though.

    Thread Starter bluisier

    (@bluisier)

    your fix did the job ?? . Thanks again!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘errors on category when posts have custom header images defined’ is closed to new replies.