Fatal error in wpfo...
 
Notifications
Clear all

[Solved] Fatal error in wpforo.php 2.0.5 line 784 / Conflict with RankMath

17 Posts
5 Users
5 Likes
1,592 Views
Posts: 16
Topic starter
(@plaurits)
Eminent Member
Joined: 2 years ago
[11-Aug-2022 13:43:33 UTC] PHP Deprecated:  Funktionen Elementor\DB::is_built_with_elementor har været <strong>forældet</strong> siden version 3.2.0! Brug Plugin::$instance->documents->get( $post_id )->is_built_with_elementor() i stedet. in /var/www/seodenmark.com/tisvildelunde.dk/wp-includes/functions.php on line 5379
[11-Aug-2022 13:43:33 UTC] PHP Notice:  Trying to get property 'ID' of non-object in /var/www/seodenmark.com/tisvildelunde.dk/wp-content/plugins/ultimate-member/templates/members.php on line 214
[11-Aug-2022 13:43:33 UTC] PHP Deprecated:  Funktionen Elementor\DB::is_built_with_elementor har været <strong>forældet</strong> siden version 3.2.0! Brug Plugin::$instance->documents->get( $post_id )->is_built_with_elementor() i stedet. in /var/www/seodenmark.com/tisvildelunde.dk/wp-includes/functions.php on line 5379
[11-Aug-2022 13:43:33 UTC] PHP Fatal error:  Uncaught Error: Call to a member function get_option_items_per_page() on null in /var/www/seodenmark.com/tisvildelunde.dk/wp-content/plugins/wpforo/wpforo.php:784
Stack trace:
#0 /var/www/seodenmark.com/tisvildelunde.dk/wp-content/plugins/wpforo/includes/hooks.php(211): wpforo\wpforo->init_current_object()
#1 /var/www/seodenmark.com/tisvildelunde.dk/wp-includes/shortcodes.php(356): wpforo\wpforo->{closure}(Array, '', 'wpforo')
#2 [internal function]: do_shortcode_tag(Array)
#3 /var/www/seodenmark.com/tisvildelunde.dk/wp-includes/shortcodes.php(228): preg_replace_callback('/\\[(\\[?)(wpforo...', 'do_shortcode_ta...', '[wpforo]')
#4 /var/www/seodenmark.com/tisvildelunde.dk/wp-content/plugins/elementor/includes/widgets/shortcode.php(130): do_shortcode('[wpforo]')
#5 /var/www/seodenmark.com/tisvildelunde.dk/wp-content/plugins/elementor/includes/base/controls-stack.php(2223): Elementor\Widget_Shortcode->render()
#6 /var/www/seodenmark.com/tisvildelunde.dk/wp-content/plugins/elementor/includes/base/widget-base.php( in /var/www/seodenmark.com/tisvildelunde.dk/wp-content/plugins/wpforo/wpforo.php on line 784
Robert
Posts: 10498
Admin
(@robert)
Support Team
Joined: 8 years ago

@plaurits,

Please provide the following information.

1. Do you have any wpForo addon installed? Can you deactivate them and check it again?

2. This looks like Elementor plugin conflict. Can you please deactivate the Elementor for a few minutes and check the forum again?

3. Make sure wpForo is installed correctly. Deactivate wpForo, delete it (just delete, do not click the uninstall button), then search and install wpForo plugin again. This will not delete any data or configuration

4. Deactivate other plugins and activate them one by one and check the problem.

5. make sure you don't have old customized wpForo template files in the current active WordPress theme in the file system: /wp-content/themes/your-active-theme/ directory. If you have done some customizations, the template files are located in /wpforo/ folder of that directory. You should delete that folder and rename or remove all customizations.

6. Make sure you don't have code snippets related to wpForo in the functions.php file of your current active WordPress them or in Code Snippets plugin.

Posts: 16
Topic starter
(@plaurits)
Eminent Member
Joined: 2 years ago

Hi Robert

Unfortunately issue does not go away using your suggestions.

Hence pls. propose next step.

Pls. find my detailed comments below.

Ad 1:                  No

Ad 2:                  Checked, same issue when deactivating Elementor

Ad 3:                  Done

Ad 4:                  Done, issue remains when only RankMath and wpforo are active

Ad 5:                  Checked – no such old wpforo template

Ad 6:                  Checked

 

br Peter

1 Reply
Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3650

@plaurits,

What happens after you disable RankMath, does the issue remain? If no, contact with RankMath support.

Posts: 16
Topic starter
(@plaurits)
Eminent Member
Joined: 2 years ago

Hi

RankMath has acknowledged the issue on their side, see extract from RankMath case:

Hello,

We will implement a permanent fix in our plugin in an upcoming update. The changes made in the WPForo files are a temporary solution to resolve the issue on your site.

Please don’t hesitate to get in touch in case you need our assistance with anything else.

Thanks.

Posts: 16
Topic starter
(@plaurits)
Eminent Member
Joined: 2 years ago

Hello,

We were able to reproduce the error and have logged it. Please allow us some time to test and release a fix.

It should be added to the plugin in the upcoming update. You can keep an eye on the changelog and we will be mentioning this error when fixed.

For now to fix the issue on your site please add the following code on line 289 before $this->init_base_classes(); in plugins/wpforo/wpforo.php file:


if ( ! empty( $_SERVER['REQUEST_URI'] ) && strpos( $_SERVER['REQUEST_URI'], 'sitemap' ) !== false ) {
    return;
}

I hope that helps. If you need any other assistance, please feel free to let us know. We are here to help.

Thank you.

2 Replies
(@zhangyang)
Joined: 2 years ago

Eminent Member
Posts: 30

@plaurits Thank you very much, I also had the same problem, saw your post after searching, the problem is solved 👍

(@zhangyang)
Joined: 2 years ago

Eminent Member
Posts: 30

@plaurits Strange, after I added the code, it conflicted with other plugins. When I deleted that code, all the conflicts disappeared, and the previous conflicts disappeared.

Page 2 / 3