Notifications
Clear all

wpForo 1.x.x [Solved] Some users can no longer read topics or posts and get the Apache error

11 Posts
5 Users
1 Reactions
3,206 Views
Posts: 35
(@alias79)
Trusted Member
Joined: 8 years ago

The date of this post is 2018, and this issue was said that it would be fixed in future versions, right? The same thing had happened to me for a while, I just push the "Mark all read" button, and I no longer get 502 Bad Gateway error.

 

The bad thing is that there may be users who don't use our forum, because it gives them this error, and they have not told us. Is there no way to force that action for all users?

 

BTW, my wpForo version is 1.6.5. Thanks!

2 Replies
Moderator
(@martin)
Joined: 8 years ago

Support Team
Posts: 992

@alias79,

This was fixed for sure. Now it only exists on server with low memory. Also, it can be browser specific issue so the rate of such problem is now 0.1%. You can decrease it to 0,0001 if you set wpforo_max_logged_topics value to 100. Please put this code in your active theme functions.php file:

function my_wpforo_max_logged_topics( $num ){
return 50;
}
add_filter('wpforo_max_logged_topics', 'my_wpforo_max_logged_topics', 12);

function my_wpforo_cookie_max_logged_topics( $num ){
return 50;
}
add_filter('wpforo_cookie_max_logged_topics', 'my_wpforo_cookie_max_logged_topics', 12);

 

How to Easily Add Custom Code in WordPress (without Breaking Your Site)

 

(@alias79)
Joined: 8 years ago

Trusted Member
Posts: 35

@martin

Hi! Thanks for the reply! 🙂

 

It should not be a memory problem; we have a VPS Cloud dedicated to our website with 8 GB of ram, and 512 MB of memory allocated to WP, which have never given us problems to execute any process. That is, it cannot be a problem with a server with low memory 🙂

 

My question is, if it can happen on any website, including servers with low memory, wouldn't it be good to have a maintenance option for force that action for all users? Or be able to select that value in the wpForo options? I don't think the best solution is to edit the functions.php file, since with each theme update this archive is updated, and it isn't a good idea to have to remember change this every time. Think that it can be happening to many websites with wpForo, without knowing what is happening to them.

 

Posts: 1602
(@anonymous20)
Noble Member
Joined: 9 years ago

@alias79

You also have 2 other options for custom functions.

1. Use a child theme for all modifications you make

or even better

2. Make a plugin of your own with ALL custom functions you use. It just needs a header and the functions. There is plenty of information on how to do that. I use that in my sites and works great.

Page 2 / 2