<?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>
									504 Error when publishing a message - How-to and Troubleshooting - wpForo 2.0				            </title>
            <link>https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/</link>
            <description>Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Fri, 07 Aug 2026 19:36:52 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: 504 Error when publishing a message</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33244</link>
                        <pubDate>Mon, 11 Nov 2019 08:18:20 +0000</pubDate>
                        <description><![CDATA[@maxelio42 and @anonymous20When you submit the post wpForo calls wp_mail() function for all subscribers, there is no any delay in wpForo core, the whole delay come from wp_mail(). So when yo...]]></description>
                        <content:encoded><![CDATA[<p>@maxelio42 and @anonymous20</p><p>When you submit the post wpForo calls <a href="https://developer.wordpress.org/reference/functions/wp_mail/" target="true">wp_mail()</a> function for all subscribers, there is no any delay in wpForo core, the whole delay come from <span style="color: #0000ff">wp_mail()</span>. So when you click on submit button you have to wait <span style="color: #0000ff">wp_mail()</span> function. Submitted form and the page cannot be refreshed until all emails are not sent via <span style="color: #0000ff">wp_mail()</span> function. This is the 90 sec delay point.</p><p><span style="color: #0000ff">wp_mail()</span> delay based on hosting email server and on other plugins which hook this function and do something with email sending processes.</p><p>The problem fixing points is one:</p><p>1. Don't call wp_mail() function for all subscribers when post is submitted. Call it partial using cron-job or some other solution.</p><p> </p><p>If you could find other solutions please post it here.</p><p>Thank you!</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33244</guid>
                    </item>
				                    <item>
                        <title>RE: 504 Error when publishing a message</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33236</link>
                        <pubDate>Sun, 10 Nov 2019 13:05:54 +0000</pubDate>
                        <description><![CDATA[@anonymous20
You&#039;ve perfectly understood my problem, Anonymous20 !
I will follow your advice and install Query monitor to find out...]]></description>
                        <content:encoded><![CDATA[<p>@anonymous20</p>
<p>You've perfectly understood my problem, Anonymous20 !</p>
<p>I will follow your advice and install Query monitor to find out...</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>maxelio42</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33236</guid>
                    </item>
				                    <item>
                        <title>RE:</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33235</link>
                        <pubDate>Sun, 10 Nov 2019 12:43:37 +0000</pubDate>
                        <description><![CDATA[Posted by: @robert @anonymous20Yes it should not take a long time, if it takes a long time then this is an email server issue, or it maybe some email plugin compatibility issue. It doesn&#039;t h...]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="1" data-postid="33233" data-mention="robert"><div class="wpforo-post-quote-author"><strong> Posted by: @robert </strong></div><p>@anonymous20</p><p>Yes it should not take a long time, if it takes a long time then this is an email server issue, or it maybe some email plugin compatibility issue. It doesn't have any relation to wpForo core functions and processes.</p></blockquote><p>Robert, we are all confused i think.</p><p>The 90 seconds delay the OP is talking is about what happens IN wpForo. What happens AFTER the emails are queued is an other story.</p><p>If the email queue (from GD mail for example) takes 2 hours to be send, it is NOT what he is talking about.</p><p>He is talking about 90 seconds delay when he presses Submit.</p><p>Also it is a good idea to enable WP debug and check the debug.log. Maybe something else is the cause. You have no idea what a debug.log can hide ....</p><p>😎</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Anonymous20</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33235</guid>
                    </item>
				                    <item>
                        <title>RE: 504 Error when publishing a message</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33234</link>
                        <pubDate>Sun, 10 Nov 2019 12:36:31 +0000</pubDate>
                        <description><![CDATA[@maxelio42 said the 17 is fast. There is no any issue]]></description>
                        <content:encoded><![CDATA[<p>@maxelio42 said the 17 is fast. There is no any issue</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33234</guid>
                    </item>
				                    <item>
                        <title>RE: 504 Error when publishing a message</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33233</link>
                        <pubDate>Sun, 10 Nov 2019 12:35:46 +0000</pubDate>
                        <description><![CDATA[@anonymous20
Yes it should not take a long time, if it takes a long time then this is an email server issue, or it maybe some email plugin compatibility issue. It doesn&#039;t have any relation ...]]></description>
                        <content:encoded><![CDATA[<p>@anonymous20</p>
<p>Yes it should not take a long time, if it takes a long time then this is an email server issue, or it maybe some email plugin compatibility issue. It doesn't have any relation to wpForo core functions and processes. </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33233</guid>
                    </item>
				                    <item>
                        <title>RE:</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33232</link>
                        <pubDate>Sun, 10 Nov 2019 12:16:08 +0000</pubDate>
                        <description><![CDATA[Posted by: @maxelio42 I&#039;m glad to read that Wpforo checks susbscribers after submitting the post, ... but in this case, how do you explain that with a private forum with only 17 susbscriptio...]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="7157" data-postid="33230" data-mention="maxelio42"><div class="wpforo-post-quote-author"><strong> Posted by: @maxelio42 </strong></div><p>I'm glad to read that Wpforo checks susbscribers after submitting the post, ... but in this case, how do you explain that with a private forum with only 17 susbscriptions the submitting duration is a few seconds, whereas with our open forum (several hundreds of subscribers), this duration is about 90 seconds?</p><p> </p></blockquote><p>Again, do not guess, use the debuger to see what exactly is taking your php and db time. </p><p>And 17 emails (as you say above) should NOT take a few seconds but be almost immediate. 17 emails is nothing actually.</p><p> </p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Anonymous20</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33232</guid>
                    </item>
				                    <item>
                        <title>RE: 504 Error when publishing a message</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33231</link>
                        <pubDate>Sun, 10 Nov 2019 12:15:32 +0000</pubDate>
                        <description><![CDATA[@maxelio42
Ok, I mean the plugin doesn&#039;t make post submitting slow. It can&#039;t collect wpForo subscribers. The duration is long because of number of sent emails. This is the explanation. So, ...]]></description>
                        <content:encoded><![CDATA[<p>@maxelio42</p>
<p>Ok, I mean the plugin doesn't make post submitting slow. It can't collect wpForo subscribers. The duration is long because of number of sent emails. This is the explanation. So, all is correct, it may take 90 sec in hundreds of email case.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Robert</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33231</guid>
                    </item>
				                    <item>
                        <title>RE: 504 Error when publishing a message</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33230</link>
                        <pubDate>Sun, 10 Nov 2019 12:07:57 +0000</pubDate>
                        <description><![CDATA[@robert
Hi Robert,
As far as I know, the only job of GD Mail queue is to intercept emails to be sent with PHP mail and queue them.
I don&#039;t see why it could be incompatible with Wpforo.
T...]]></description>
                        <content:encoded><![CDATA[<p>@robert</p>
<p>Hi Robert,</p>
<p>As far as I know, the only job of GD Mail queue is to intercept emails to be sent with PHP mail and queue them.</p>
<p>I don't see why it could be incompatible with Wpforo.</p>
<p>The fact is that it's a solution that solved my "504 error" problem, an this is the most important.</p>
<p>I'm glad to read that Wpforo checks susbscribers after submitting the post, ... but in this case, how do you explain that with a private forum with only 17 susbscriptions the submitting duration is a few seconds, whereas with our open forum (several hundreds of subscribers), this duration is about 90 seconds?</p>
<p>&nbsp;</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>maxelio42</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33230</guid>
                    </item>
				                    <item>
                        <title>RE:</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33229</link>
                        <pubDate>Sun, 10 Nov 2019 12:07:46 +0000</pubDate>
                        <description><![CDATA[Posted by: @maxelio42 Thanks for the link, I will check.It may have up to 2000 subscribers for some topics.Then with the debuger you can find where the delay happens. You can pinpoint the pr...]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="7157" data-postid="33226" data-mention="maxelio42"><div class="wpforo-post-quote-author"><strong> Posted by: @maxelio42 </strong></div><p>Thanks for the link, I will check.</p><p>It may have up to 2000 subscribers for some topics.</p></blockquote><p>Then with the debuger you can find where the delay happens. You can pinpoint the problem.</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Anonymous20</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33229</guid>
                    </item>
				                    <item>
                        <title>RE: 504 Error when publishing a message</title>
                        <link>https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33228</link>
                        <pubDate>Sun, 10 Nov 2019 12:06:26 +0000</pubDate>
                        <description><![CDATA[@robert
He is not talking about GD mail queue, i think he is talking about wpForo.
As for GD mail queue, works just fine with wpForo.
&nbsp;]]></description>
                        <content:encoded><![CDATA[<p>@robert</p>
<p>He is not talking about GD mail queue, i think he is talking about wpForo.</p>
<p>As for GD mail queue, works just fine with wpForo.</p>
<p>&nbsp;</p>]]></content:encoded>
						                            <category domain="https://wpforo.com/community/how-to-and-troubleshooting-2/">How-to and Troubleshooting - wpForo 2.0</category>                        <dc:creator>Anonymous20</dc:creator>
                        <guid isPermaLink="true">https://wpforo.com/community/how-to-and-troubleshooting-2/504-error-when-publishing-a-message/paged/2/#post-33228</guid>
                    </item>
							        </channel>
        </rss>
		