• Hi,

    PHP Warning: Undefined array key 0 in /…../wp-content/plugins/front-page-category/front-page-category.php on line 273

    Above line 273 in front-page-category.php it sais:

    
    * If the type is an array then we know there is only one value since we
    * checked the length above.
    

    but apparently it can also be an empty array…

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author binarymoon

    (@binarymoon)

    Hi – thanks for the report. I can’t replicate this but I will add a check for empty arrays and hope that removes the error.

    Ben

    Latest version (3.3.4) now has this fatal error:

    
    PHP Fatal error:  Uncaught Error: Call to undefined function is_empty() in /www/wp-content/plugins/front-page-category/front-page-category.php:262
    

    Maybe you were looking for empty()?

    Plugin Author binarymoon

    (@binarymoon)

    oops – apologies. I did this very quickly last night. I shall fix that now.

    Thread Starter Rolf Allard van Hagen

    (@ravanh)

    Not idea when/how exactly the issue was triggered but I have not seen it happen since. Thanks for maintaining this useful plugin 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Undefined array key 0’ is closed to new replies.