PHP Error on config page
-
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 69This 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.phpat line 69 by casting the result as an array ($formatswill befalseand 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.
The topic ‘PHP Error on config page’ is closed to new replies.