Hi,
Issue happens when trying to install elementor plugins.Showing this error-
Fatal error: Uncaught TypeError: Argument 1 passed to rh_add_el_page_settings_controls() must be an instance of Elementor\Core\DocumentTypes\Post, instance of Elementor\Core\DocumentTypes\Page given, called in /home2/dev3/www/wp-includes/class-wp-hook.php on line 288 and defined in /home2/dev3/www/wp-content/themes/rehub/functions.php:1700
Stack trace:
#0 /home2/dev3/www/wp-includes/class-wp-hook.php(288): rh_add_el_page_settings_controls(Object(Elementor\Core\DocumentTypes\Page), 'document_settin...')
#1 /home2/dev3/www/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters('', Array)
#2 /home2/dev3/www/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
#3 /home2/dev3/www/wp-content/plugins/elementor/includes/compatibility.php(67): do_action('elementor/eleme...', Object(Elementor\Core\DocumentTypes\Page), 'document_settin...', Array)
#4 /home2/dev3/www/wp-includes/class-wp-hook.php(286): Elementor\Compatibility::document_post_deprecated_hooks(Object(Elementor\Core\DocumentTypes\Page), 'document_settin...', Array) in /home2/dev3/www/wp-content/themes/rehub/functions.php on line 1700
How to resolve the issue?
Thanks,
Dwaipayan
Error showing in theme/functions.php for this code
function rh_add_el_page_settings_controls( \Elementor\Core\DocumentTypes\Post $page ) on line 1700
Fatal error: Uncaught TypeError: Argument 1 passed to rh_add_el_page_settings_controls() must be an instance of Elementor\Core\DocumentTypes\Post, instance of Elementor\Core\DocumentTypes\Page given, called in /home2/dev3/www/wp-includes/class-wp-hook.php on line 288 and defined in /home2/dev3/www/wp-content/themes/rehub/functions.php:1700
Please kindly provide me a quick fix..
Thanks