Conflict with Installing elementor Plugins

Open
REHub - Price Comparison, Affiliate Marketing, Multi Vendor Store, Community Theme REHub - Price Comparison, Affiliate Marketing, Multi Vendor Store, Community Theme October 21, 2019
Login to reply
tech zotezo
5 years ago

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

Igor Sunz Support Agent
5 years ago

There is no quick fix for this. Most of hooks and functions are changed in
2.7 version, you must replace whole rehub-elementor folder and
function/el-functions.php

A big chance that this will break your site

пн, 21 окт. 2019 г., 13:18 Sizam Support Help Desk <
sizamtheme+zK5On1rwJ5e1jkdGVpBR@mail.support-hub.io>:

tech zotezo
5 years ago

I know but currently as the issue is happening,kindy provide me a quick fix to resolve the issue.We will update it in future.Kindly consider pls...

Igor Sunz Support Agent
5 years ago

We don't recommend to use old version of theme now, or you will have a lot
of bugs

пн, 21 окт. 2019 г., 13:09 Sizam Support Help Desk <
sizamtheme+zK5On1rwJ5e1jkdGVpBR@mail.support-hub.io>:

tech zotezo
5 years ago

How to resolve the current issue with the current version?

Igor Sunz Support Agent
5 years ago

Because you used outdated theme version

пн, 21 окт. 2019 г., 12:58 Sizam Support Help Desk <
sizamtheme+zK5On1rwJ5e1jkdGVpBR@mail.support-hub.io>:

tech zotezo
5 years ago

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

Additional Info

Link on page with issue (Optional): dev3.zotezo.com