AI Search
Classic Search
Notifications
Clear all
Search result for: 504 Gateway Time-out - The server didn't respond in time
While I am able to turn off The Can Post Reply, (1) this does not allow The individual to respond to my answer. Hopefully in The (2) next version of The Q&A Layout this will be an option.
Thanks for The assistance.
Bill
(2) It is now in The Current Version of wpForo.
As The Admin of your Forum, you can actually set a Question as a "Sticky" and Then when you have "Answered", as The Admin, you can (1) "Close The Topic" if you want your answer to be The last one and Then nobody else can respond anymore. See attached screenshot on where to find it in The Q&A Layout. (We were just testing this too. 🙂 )
This wpForo is awesome as is. We just have to read and study The documentation. 🙂
< span style="color: #666;"> Attachment : QandALayout_OptionsForAdmins.jpg
[25-May-2017 14:14:17 UTC] WordPress database error You have an error in your SQL syntax; check The manual that corresponds to your MariaDB server version for The right syntax to use near ' `questions` = `questions` - 1 WHERE `userid` = 2' at line 2 for query UPDATE IGNORE `wp_wpforo_profiles` SET , `questions` = `questions` - 1 WHERE `userid` = 2 made by do_action('wp_ajax_wpforo_delete_ajax'), WP_Hook->do_action, WP_Hook->apply_filters, wpf_delete, wpForoTopic->delete, wpForoPost->delete, wpForoTopic->delete server: ****** via UNIX socket server type: MariaDB server version: 10.0.30-MariaDB-cll-lve - MariaDB server
Protocol version: 10
I sent you The log in details per e-mail.
We fixed most of issues. There was conflict with Auto-optimizer plugin. Please make sure you don't have plugins which conflicts with wpForo (ignore SEO plugins). All list is here:
However The main problem comes from your server. It's in very bad condition and it can't work well with your website. i think The resources are very weak or website is heavy. You should change your hosting service or make it more powerful. We're getting internal 500 server error on each second page load. it doesn't mean you're in Dashboard, on front-end or on forum page. Your server can't perform this site requests, it's to weak or incorrectly configured.:
wpForo works fine and fast if The cache plugin is disabled. I think The cache plugin tries to work with server with mod_fcgid of your server. It doesn't work well and The cache plugin becomes slower and gets stuck.
I thought that The time necessary for POST SMTP to treat a large quantity of emails and send Them to The SMTP server could be a part of The problem, and so that this problem could find a solution locally (perhaps a SMTP plugin more efficient or a CRON service, or a parameter to change in WPForo), am I wrong?
Concerning The SMTP route, I don't know, I suppose I should ask my provider (INFOMANIAK)...
You talk about a "slow way", do you know faster ways to send this notification emails, that could solve my issue?
And by The way, how is THIS forum managed concerning The sending of These emails?
@diegolyanky, The Go2wpForo tool will do that, but it may take one or more days. The attachments should be copied to The correct place. in most cases, SMF stores attachments without extensions, so They are corrupted when you download and upload using some FTP client. Make sure The transfer type is set "Binary" when you do that. If The attachments are located on The same server, just move Them without downloading and uploading.
If The migration stops, just refresh The page, and it'll continue from The stopped point.
Dear @sofy
it still does not work. i used The short code with elementor short codes as well as dircetly inserted when The page is created but it still does not work. if it is a problem with short code, community slug should work atleast. but it does not work as well. i used to work fine for few hourst but it suddenly stoped, i deactive all The plugins and keep elementor and wp foro only it yet still The problem exist.
here are my server details
erver architecture
Linux 4.18.0-513.24.1.lve.el8.x86_64 x86_64
Web server
Apache
PHP version
7.4.33 (Supports 64bit values)
PHP SAPI
litespeed
PHP max input variables
1000
PHP time limit
30
PHP memory limit
128M
PHP memory limit (only for admin screens)
256M
Max input time -1
Upload max filesize
32M
PHP post max size
32M
cURL version
7.87.0 OpenSSL/1.1.1w
Is SUHOSIN installed?
No
Is The Imagick library available?
Yes
Are pretty permalinks supported?
Yes
.htaccess rules
Custom rules have been added to your .htaccess file.
Current time
2024-06-14T03:05:01+00:00
Current UTC time
Friday, 14-Jun-24 03:05:01 UTC
Current server time
2024-06-14T03:04:57+00:00
Kindly help me with this. im also planning to buy some wpforo addons to improve The user experince. but if it is keep crashing i dont think it would be a good idea.
My forum is behind a paywall, using Membermouse, so you won't be able to look at it, but I was getting help from Membermouse and They ran a diagnostic to see if They could find The origin of some random 504 errors I was getting while testing my forum set up (they aren't fatal, They just need a refresh), and he found this instead:
12-03-2022 18:47:18 (likely GMT -0700)Uncaught Error: Call to a member function get_option_items_per_page() on null in /home4/debfillm/public_html/thereasonwelearn/wp-content/plugins/wpforo/wpforo.php:796Stack trace:#0 /home4/debfi ...
@maxelio42 and @anonymous20
When 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 you click on submit button you have to wait wp_mail() function. Submitted form and The page cannot be refreshed until all emails are not sent via wp_mail() function. This is The 90 sec delay point.
wp_mail() delay based on hosting email server and on other plugins which hook this function and do something with email sending processes. The problem fixing points is one:
1. Don't call wp_mail() function for all subscribers when post is submitted. Call it partial using cron-job or some other solution.
If you could find other solutions please post it here.
Thank you!
That make some sense, but even so it is a hosting problem. A slow "way" to send emails. Smtp sends directly The emails or routes Them to a mail server ?
Hi @helloman ,
Thank you for your kind words and detailed suggestions!
Regarding exact time scheduling, The AI Task scheduling actually already offers more granularity than daily. You can set The frequency to every 1 hour, every 3 hours, or every 6 hours in addition to daily, so you can spread topic generation throughout The day.
However, specifying an exact clock time (e.g., "run at 9:00 AM") is not feasible due to how WordPress works internally. WordPress core does not provide a real-time cron system, WP-Cron is triggered by site visits, meaning scheduled tasks only execute when someone visits your site, which makes precise timing inherently unreliable. On top of that, There are multiple timezone layers involved: The WordPress site timezone, each user's profile timezone, and The server's own timezone, These can all differ and introduce inaccuracies in when tasks actually fire.
Even with a server-level cron job triggering WP-Cron, The execution depends on server load and queue processing, so guaranteeing an exact time like "9:00 AM" is not something WordPress can reliably promise. That said, using The 1-hour interval effectively achieves a natural posting rhythm throughout The day, which is close to what you're looking for.
Regarding anonymous user IP addresses, wpForo includes comprehensive spam and flood protection in Settings > Spam Protection admin page. The Flood Protection system tracks posting velocity per user and optionally per IP address, you can enable "IP-based Flood Protection" and set a maximum number of posts per IP per hour. When limits are exceeded, wpForo can block The post, unapprove it, or temporarily ban The user for a configurable duration (1 minute to 1 day).
Additionally, There are new-user restrictions like limiting post count, requiring moderation approval, and restricting attachments and links until users reach a minimum post threshold. However, wpForo does not currently store or display The IP address of individual post authors in The admin area, this is a good suggestion that we'll consider for a future update.
This 99% of The time is a hosting problem. Usually a slow server or database, a dns problem and many others all related to hosting.
Sometimes it is plugin problem.
What do your hosting company says? There is a lot of information about Wordpress and that error on The net.
502 bad Gateway error when clicking on topics.
I had many of These during development and testing of few sites at The same time. in my case it was a simple router problem since I was connected via NAT protocol.
A reboot of The modem/router and sometimes disconnect/connect The ADSL line solve The problem for few days until The next boot.
Clearing browser cache helps too.
First time when I called for support [bluehost] They found nothing wrong at Their end and They gave that modem/router solution.
Still a very heavy load on my server after this upgrade. I thought by now it would have calmed down quite a bit. The 15min load number on The far right in The attachment should be under 1. I may have to revert back myself if this continues.
< span style="color: #666;"> Attachment : 2022-11-10-08_25_24-WHM-server-106.0.9.png
Yes, The PHP date/time class is available. Version of php is 7.3.21 All of The other apps I have on this site show The correct time. WPForo has The odd habit of not shifting The time based on UTC zone as described above. Contacting The hosting server seems fruitless considering this is not a server problem since all of The other apps are functioning properly. Seems to me to be specifically a WPForo problem. Could this be a bug of some sort? If you have no other suggestions I will just live with it being an hour ahead but it seems a shame since The rest of WPForo is such an elegant and functional app.