Init error : cannot get Taxonomy
-
Hi support team,
After the nth update (4.2.11), the loading of my plugin came back to life.
However, I am not able to load the part that deals with Taxonomies.
The fatal error below is raised by a function that loads:
return array_merge ($types, TsImmoCore::getTermList('property_type'));
which get the terms of a given taxonomy as an arrayIndeed : the taxonomy is created during init… however, if I register the init hook, I do not get anything (unable to bind the menu that opens the config : I get a 403)… then I used plugins_loaded instead and here is the error !
I tried to load the settings of that specific par in the init hook (priority 9999), but the related part is not loadedFatal error: Uncaught TypeError: array_merge(): Argument #2 must be of type array, WP_Error given in /mypath/www/wp-content/plugins/ts-immo-divi-light/ts-immo-divi-light.php:76 Stack trace: #0 www/wp-content/plugins/ts-immo-divi-light/ts-immo-divi-light.php(76): array_merge() #1 /mypath/www/wp-includes/class-wp-hook.php(303): tsimmo_divi_settings_property_offers() #2 /mypath/www/wp-includes/plugin.php(189): WP_Hook->apply_filters() #3 /mypath/www/wp-content/plugins/ts-immo/core/theme/settings/ts-immo-settings-property_offer.php(6): apply_filters() #4 /mypath/www/wp-content/plugins/redux-framework/redux-core/inc/classes/class-redux-wordpress-data.php(477): ts_immo_settings_import_property_offers() #5 /mypath/www/wp-content/plugins/redux-framework/redux-core/inc/classes/class-redux-wordpress-data.php(119): Redux_WordPress_Data->get_data() #6 /mypath/www/wp-content/plugins/redux-framework/redux-core/inc/classes/class-redux-options-defaults.php(122): Redux_WordPress_Data->get() #7 /mypath/www/wp-content/plugins/redux-framework/redux-core/inc/classes/class-redux-options-defaults.php(74): Redux_Options_Defaults->field_default_values() #8 /mypath/www/wp-content/plugins/redux-framework/redux-core/inc/classes/class-redux-api.php(329): Redux_Options_Defaults->default_values() #9 /mypath/www/wp-content/plugins/redux-framework/redux-core/inc/classes/class-redux-api.php(376): Redux::set_defaults() #10 /mypath/www/wp-content/plugins/redux-framework/redux-core/inc/classes/class-redux-api.php(303): Redux::load_redux() #11 /mypath/www/wp-content/plugins/redux-framework/redux-core/inc/classes/class-redux-api.php(409): Redux::loadRedux() #12 /mypath/www/wp-includes/class-wp-hook.php(303): Redux::create_redux() #13 /mypath/www/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #14 /mypath/www/wp-includes/plugin.php(470): WP_Hook->do_action() #15 /mypath/www/wp-settings.php(556): do_action() #16 /mypath/www/wp-config.php(100): require_once('...') #17 /mypath/www/wp-load.php(50): require_once('...') #18 /mypath/www/wp-admin/admin.php(34): require_once('...') #19 /mypath/www/wp-admin/options-general.php(10): require_once('...') #20 {main} thrown in /mypath/www/wp-content/plugins/ts-immo-divi-light/ts-immo-divi-light.php on line 76
- The topic ‘Init error : cannot get Taxonomy’ is closed to new replies.