<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Yoast page-sitemap.xml critical error regex bug in core plugin. - Bug Reports - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/general-forums-bug-reports/yoast-page-sitemap-xml-critical-error-regex-bug-in-core-plugin/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sun, 14 Jun 2026 06:54:51 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Yoast page-sitemap.xml critical error regex bug in core plugin.</title>
                        <link>https://wpforo.com/community/general-forums-bug-reports/yoast-page-sitemap-xml-critical-error-regex-bug-in-core-plugin/#post-108786</link>
                        <pubDate>Thu, 29 Feb 2024 17:00:37 +0000</pubDate>
                        <description><![CDATA[@sofy thank you for the quick response, will do!]]></description>
                        <content:encoded><![CDATA[@sofy thank you for the quick response, will do!]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-forums-bug-reports/">Bug Reports - wpForo 2.0</category>                        <dc:creator>tfjoel</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-forums-bug-reports/yoast-page-sitemap-xml-critical-error-regex-bug-in-core-plugin/#post-108786</guid>
                    </item>
				                    <item>
                        <title>RE: Yoast page-sitemap.xml critical error regex bug in core plugin.</title>
                        <link>https://wpforo.com/community/general-forums-bug-reports/yoast-page-sitemap-xml-critical-error-regex-bug-in-core-plugin/#post-108781</link>
                        <pubDate>Thu, 29 Feb 2024 09:09:41 +0000</pubDate>
                        <description><![CDATA[Hi @tfjoel,
Please wait for the next update of the wpForo plugin (it&#039;ll come very soon). After updating the plugin, clear the error.log file and inform us if you see any further issues.]]></description>
                        <content:encoded><![CDATA[<p>Hi @tfjoel,</p>
<p>Please wait for the next update of the wpForo plugin (it'll come very soon). After updating the plugin, clear the error.log file and inform us if you see any further issues.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-forums-bug-reports/">Bug Reports - wpForo 2.0</category>                        <dc:creator>Sofy</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-forums-bug-reports/yoast-page-sitemap-xml-critical-error-regex-bug-in-core-plugin/#post-108781</guid>
                    </item>
				                    <item>
                        <title>RE: Yoast page-sitemap.xml critical error regex bug in core plugin.</title>
                        <link>https://wpforo.com/community/general-forums-bug-reports/yoast-page-sitemap-xml-critical-error-regex-bug-in-core-plugin/#post-108775</link>
                        <pubDate>Wed, 28 Feb 2024 08:42:21 +0000</pubDate>
                        <description><![CDATA[I&#039;ve already asked the developers to check the issue. I&#039;ll keep you updated on any progress.]]></description>
                        <content:encoded><![CDATA[<p>I've already asked the developers to check the issue. I'll keep you updated on any progress.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-forums-bug-reports/">Bug Reports - wpForo 2.0</category>                        <dc:creator>Sofy</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-forums-bug-reports/yoast-page-sitemap-xml-critical-error-regex-bug-in-core-plugin/#post-108775</guid>
                    </item>
				                    <item>
                        <title>Yoast page-sitemap.xml critical error regex bug in core plugin.</title>
                        <link>https://wpforo.com/community/general-forums-bug-reports/yoast-page-sitemap-xml-critical-error-regex-bug-in-core-plugin/#post-108762</link>
                        <pubDate>Tue, 27 Feb 2024 19:00:35 +0000</pubDate>
                        <description><![CDATA[So I believe I have figured out why Yoast Sitemaps are incompatible with wpForo (Version 2.3.1) and there have been multiple reports of this critical error issue (example:
The file /wpforo/c...]]></description>
                        <content:encoded><![CDATA[<p>So I believe I have figured out why Yoast Sitemaps are incompatible with wpForo (Version 2.3.1) and there have been multiple reports of this critical error issue (example: https://wpforo.com/community/general-forums-bug-reports/26039/#post-75400)</p>
<p><span>The file <strong>/wpforo/classes/SEO.php</strong> has a regex that is falsely catching the <strong>/page-sitemap.xml</strong> URL.</span></p>
<p>In <span><strong>/wpforo/classes/SEO.php</strong> <em>s</em></span><em>ee line 344 in the public function "redirect"</em></p>
<pre contenteditable="false">	public function redirect( $current_object, $wpf_url_parse ) {
		$pattern = '#^*(?&lt;type&gt;\w*)-?sitemap(?:(?&lt;paged&gt;\d*)|_index)\.xml*$#iu';
		if( ! empty( $wpf_url_parse ) &amp;&amp; preg_match( $pattern, basename( (string) $wpf_url_parse ), $match ) ) {
			$current_object = 'sitemap';

			$query = ;
			$query = wpforo_parse_args( $match, $query );
			$type  = trim( (string) $query );
			$paged = absint( $query );
			if( ! $paged ) $paged = 1;

			if( $sitemap = $this-&gt;get_sitemap( $type, $paged ) ) {
				$this-&gt;output( $sitemap );
				$this-&gt;sitemap_close();
			} else {
				$current_object = true;
			}
		}

		return $current_object;
	}</pre>
<p>The regex in question is below:</p>
<pre contenteditable="false">#^*(?&lt;type&gt;\w*)-?sitemap(?:(?&lt;paged&gt;\d*)|_index)\.xml*$#iu</pre>
<p>If you run a regex testing tool with that regex against the following string, you'll see that it matches it, and then proceeds to load the forum template. The URL page-sitemap.xml is Yoast's page sitemap, so wpforo should not be running any code for this url.</p>
<pre contenteditable="false">page-sitemap.xml</pre>
<p><span style="color: #ff6600">I believe the proper solution is to update this regex in the core wpForo plugin's code to something more precise so it does not override the yoast sitemap.</span><br /><br />=== </p>
<p>The error we are receiving in full is below for reference.</p>
<pre contenteditable="false">PHP Fatal error: Uncaught Error: Call to undefined function wpforo_thread_forum_template() in /nas/content/live/sitename/wp-content/plugins/wpforo/themes/2022/layouts/4/forum.php:85\nStack trace:\n
#0 /nas/content/live/sitename/wp-content/plugins/wpforo/themes/2022/forum.php(41): include()\n
#1 /nas/content/live/sitename/wp-content/plugins/wpforo/includes/functions-template.php(2196): include('/nas/content/li...')\n
#2 /nas/content/live/sitename/wp-content/plugins/wpforo/themes/2022/index.php(26): wpforo_template('forum')\n
#3 /nas/content/live/sitename/wp-content/plugins/wpforo/includes/hooks.php(230): include('/nas/content/li...')\n
#4 /nas/content/live/sitename/wp-includes/shortcodes.php(433): wpforo\\wpforo-&gt;{closure}(Array, '', 'wpforo')\n
#5 : do_shortcode_tag(Array)\n
#6 /nas/content/live/sitename/wp-includes/shortcodes.php(273): preg_replace_callback('/\\\\[(\\\\[?)(wpforo...', 'do_shortcode_ta...', '\\n')\n
#7 /nas/content/live/sitename/wp-content/plugins/so-widgets-bundle/widgets/editor/editor.php(108): do_shortcode('\\n')\n
#8 /nas/content/live/sitename/wp-content/plugins/so-widgets-bundle/base/siteorigin-widget.class.php(194): SiteOrigin_Widget_Editor_Widget-&gt;get_template_variables(Array, Array)\n
#9 /nas/content/live/sitename/wp-content/plugins/siteorigin-panels/inc/renderer.php(835): SiteOrigin_Widget-&gt;widget(Array, Array)\n
#10 /nas/content/live/sitename/wp-content/plugins/siteorigin-panels/inc/renderer.php(1195): SiteOrigin_Panels_Renderer-&gt;the_widget(Array, Array, 2, 0, 0, true, true, 45, '')\n
#11 /nas/content/live/sitename/wp-content/plugins/siteorigin-panels/inc/renderer.php(1163): SiteOrigin_Panels_Renderer-&gt;render_widget(45, 2, 0, 0, Array, true)\n
#12 /nas/content/live/sitename/wp-content/plugins/siteorigin-panels/inc/renderer.php(1072): SiteOrigin_Panels_Renderer-&gt;render_cell(45, 2, 0, Array, Array, Array)\n
#13 /nas/content/live/sitename/wp-content/plugins/siteorigin-panels/inc/renderer.php(553): SiteOrigin_Panels_Renderer-&gt;render_row(45, 2, Array, Array)\n
#14 /nas/content/live/sitename/wp-content/plugins/siteorigin-panels/compat/yoast.php(44): SiteOrigin_Panels_Renderer-&gt;render(45, false)\n
#15 /nas/content/live/sitename/wp-includes/class-wp-hook.php(324): siteorigin_yoast_sitemap_images_compat(Array, 45)\n
#16 /nas/content/live/sitename/wp-includes/plugin.php(205): WP_Hook-&gt;apply_filters(Array, Array)\n
#17 /nas/content/live/sitename/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemap-image-parser.php(127): apply_filters('wpseo_sitemap_u...', Array, 45)\n
#18 /nas/content/live/sitename/wp-content/plugins/wordpress-seo/inc/sitemaps/class-post-type-sitemap-provider.php(664): WPSEO_Sitemap_Image_Parser-&gt;get_images(Object(WP_Post))\n
#19 /nas/content/live/sitename/wp-content/plugins/wordpress-seo/inc/sitemaps/class-post-type-sitemap-provider.php(211): WPSEO_Post_Type_Sitemap_Provider-&gt;get_url(Object(WP_Post))\n
#20 /nas/content/live/sitename/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps.php(379): WPSEO_Post_Type_Sitemap_Provider-&gt;get_sitemap_links('page', 1000, 1)\n
#21 /nas/content/live/sitename/wp-content/plugins/wordpress-seo/inc/sitemaps/class-sitemaps.php(279): WPSEO_Sitemaps-&gt;build_sitemap('page')\n
#22 /nas/content/live/sitename/wp-includes/class-wp-hook.php(324): WPSEO_Sitemaps-&gt;redirect(Object(WP_Query))\n
#23 /nas/content/live/sitename/wp-includes/class-wp-hook.php(348): WP_Hook-&gt;apply_filters('', Array)\n
#24 /nas/content/live/sitename/wp-includes/plugin.php(565): WP_Hook-&gt;do_action(Array)\n
#25 /nas/content/live/sitename/wp-includes/class-wp-query.php(1881): do_action_ref_array('pre_get_posts', Array)\n
#26 /nas/content/live/sitename/wp-includes/class-wp-query.php(3824): WP_Query-&gt;get_posts()\n
#27 /nas/content/live/sitename/wp-includes/class-wp.php(696): WP_Query-&gt;query(Array)\n
#28 /nas/content/live/sitename/wp-includes/class-wp.php(816): WP-&gt;query_posts()\n
#29 /nas/content/live/sitename/wp-includes/functions.php(1336): WP-&gt;main('')\n
#30 /nas/content/live/sitename/wp-blog-header.php(16): wp()\n
#31 /nas/content/live/sitename/index.php(17): require('/nas/content/li...')\n
#32 {main}\n thrown in /nas/content/live/sitename/wp-content/plugins/wpforo/themes/2022/layouts/4/forum.php on line 85</pre>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/general-forums-bug-reports/">Bug Reports - wpForo 2.0</category>                        <dc:creator>tfjoel</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/general-forums-bug-reports/yoast-page-sitemap-xml-critical-error-regex-bug-in-core-plugin/#post-108762</guid>
                    </item>
							        </channel>
        </rss>
		