Limited Support
Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.
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
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/
Why dont you like using Yoast bro?
Here is the talk and the solution for SEOPress:
https://wordpress.org/support/topic/crash-when-trying-page-sitemap1-xml
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.