PHP Error when using JSON API
-
Hello,
I get the following PHP error when trying to access any API Endpoint.
[16-Apr-2021 20:00:50 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Icon_Picker_Type_Svg::_add_mime_type() must be of the type array, null given, called in /html/wordpress/wp-includes/class-wp-hook.php on line 289 and defined in /html/wordpress/wp-content/plugins/menu-icons/vendor/codeinwp/icon-picker/includes/types/svg.php:69
I am using this plugin for some years on different sites now, always in combination with the JSON API, but didn’t get this error yet.
I managed to eliminate the error for now by removing the variable type definiton of array in the mentioned method, but of course thats no good solution in future.Btw I am not using the svg option. I have only activated the Image option.
Thanks for any hint how to manage this.
The topic ‘PHP Error when using JSON API’ is closed to new replies.