Notifications
Clear all

[Closed] wpForo 2 and SEO PRESS

8 Posts
2 Users
1 Reactions
739 Views
dimalifragis
Posts: 2611
Topic starter
(@dimalifragis)
Famed Member
Joined: 5 years ago

Hi,

Trying SEO Press with wpForo 2, we get a crash when trying to view the "page-sitemap1.xml" (file not related to wpForo 2 apparently).

Still the crash point to wpForo 2. Any ideas?

[22-Aug-2022 08:51:55 UTC] PHP Fatal error: Uncaught Error: Call to a member function get_option_items_per_page() on null in /home/wp-content/plugins/wpforo/wpforo.php:787
Stack trace:
#0 /home/wp-content/plugins/wpforo/includes/hooks.php(211): wpforo\wpforo->init_current_object()
#1 /home/wp-includes/shortcodes.php(356): wpforo\wpforo->{closure}()
#2 [internal function]: do_shortcode_tag()
#3 /home/wp-includes/shortcodes.php(228): preg_replace_callback()
#4 /home/wp-content/plugins/wp-seopress/templates/sitemap/single.php(177): do_shortcode()
#5 /home/wp-content/plugins/wp-seopress/src/Services/Sitemap/Render/Single.php(96): include_once('/home/...')
#6 /home/wp-content/plugins/wp-seopress/src/Actions/Sitemap/Render.php(56): SEOPress\Services\Sitemap\Render\Single->render()
#7 /home/wp-includes/class-wp-hook.php(307): SEOPress\Actions\Sitemap\Render->render()
#8 /home/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters()
#9 /home/wp-includes/plugin.php(524): WP_Hook->do_action()
#10 /home/wp-includes/class-wp-query.php(1805): do_action_ref_array()
#11 /home/wp-includes/class-wp-query.php(3586): WP_Query->get_posts()
#12 /home/wp-includes/class-wp.php(648): WP_Query->query()
#13 /home/wp-includes/class-wp.php(775): WP->query_posts()
#14 /home/wp-includes/functions.php(1330): WP->main()
#15 /home/wp-blog-header.php(16): wp()
#16 /home/index.php(17): require('/home/...')
#17 {main}
thrown in /home/wp-content/plugins/wpforo/wpforo.php on line 787

Thank you

Topic Tags
7 Replies
dimalifragis
Posts: 2611
Topic starter
(@dimalifragis)
Famed Member
Joined: 5 years ago

I see that the exact (almost exact) error has been reported for Rank Math SEO here:

https://wpforo.com/community/general-forums-bug-reports/fatal-error-in-wpforo-php-2-0-5-line-784/

Posts: 1187
(@percysgrowroom)
Noble Member
Joined: 6 years ago

Why dont you like using Yoast bro? 

3 Replies
dimalifragis
(@dimalifragis)
Joined: 5 years ago

Famed Member
Posts: 2611

@percysgrowroom It was heavy and i find the latest version a bit complicated.

(@percysgrowroom)
Joined: 6 years ago

Noble Member
Posts: 1187

@dimalifragis I use it, not really sure why lol, but just hope its good for SEO. Its useful when writing guides i find. Is it not worth it in your opinion?

dimalifragis
(@dimalifragis)
Joined: 5 years ago

Famed Member
Posts: 2611

@percysgrowroom Yoast is a good plugin and appears to bullet-proof from the update. All other 3 got issues.

dimalifragis
Posts: 2611
Topic starter
(@dimalifragis)
Famed Member
Joined: 5 years ago

Here is the talk and the solution for SEOPress:

 

https://wordpress.org/support/topic/crash-when-trying-page-sitemap1-xml

dimalifragis
Posts: 2611
Topic starter
(@dimalifragis)
Famed Member
Joined: 5 years ago

You can add this code (and all codes you need) using this plugin:

https://wordpress.org/plugins/my-custom-functions/

I prefer the above plugin since it doesn't slow down the sites.

Or use this

https://wordpress.org/plugins/code-snippets/

but for me it slows the site down.