• Resolved rogerlos

    (@rogerlos)


    Howdy,

    The following error appears on Postie “Message” config page in WP Admin, at “Default Post Format” (and hence the dropdown is also empty):

    Trying to access array offset on value of type bool in \wp-content\plugins\postie\config_form_message.php on line 69

    This seems to be because my theme does not declare any “post-type” formats in functions.php…as far as I know, this declaration is not required for themes.

    This could be fixed by changing config_form_message.php at line 69 by casting the result as an array ($formats will be false and not an array if no formats were declared):

    Old: $formats = get_theme_support('post-formats');

    New: $formats = (array) get_theme_support('post-formats');

    This change works on my install.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP Error on config page’ is closed to new replies.