#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
logged in users get...
 
Share:
Share
Tweet
Share
Notifications
Clear all

logged in users getting a 502 Bad Gateway error

    Last Post
RSS

Ansen
Posts: 23
 Ansen
Topic starter
November 18, 2019 2:56 pm
(@ansen)
Eminent Member
Joined: 3 years ago

Most of my logged in users are getting a 502 Bad Gateway error when attempting to view a post on the Forum. I read that this is a cookie problem and can be solved by clicking on "mark all read".  How can I "mark all read" for every user? 

Topic Tags
Cookies 502 Bad Gateway
3 Replies
Anonymous20
Posts: 1602
 Anonymous20
November 18, 2019 6:42 pm
(@anonymous20)
Noble Member
Joined: 6 years ago

Well that error is common in Wordpress and it is a hosting problem. It usually meas that the  webserver can't figure out the invalid response from a requested page.

That could mean a lot of things, a slow server or db is a possible reason. Could also be a DNS problem. Could be something been offline (a db?).

I highlt doubt it has to do directly with wpForo.

 

Reply
Ansen
Posts: 23
 Ansen
Topic starter
December 6, 2019 6:36 pm
(@ansen)
Eminent Member
Joined: 3 years ago

For the last 3 weeks I have been working with my hosting company trying to figure the cause of the 502 Bad Gateway error. The host company says it is not a hosting issue.

The 502 Bad Gateway error is only seen by old logged in users when Forum Cookies is Enabled. If users mark "all read" it sometimes fixes the problem for some users.  Any expertise would be appreciated. 

 

Reply
Martin
Posts: 832
Martin - Facebook Martin - Twitter
 Martin
Moderator
December 6, 2019 8:06 pm
(@martin)
Support Team
Joined: 6 years ago

This is a browser-specific issue, so the rate of such a problem is too small. It can be solved if you set wpforo_max_logged_topics value to 50 via according filter hook. 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)

 

Or you can disable all forum cookies in Dashboard > Forums > Tools > Privacy & Rules admin page. But the first solution is better.

Forum Cookies

Powered by gVectors Team. our popular plugins:
wpForo, wpDiscuz

Reply
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • 502 Bad Gateway error after publishing a topic
    3 years ago
  • Share Button Cookies and GDPR
    3 years ago
  • 502 Bad Gateway
    4 years ago
Topic Tags:  Cookies (7), 502 Bad Gateway (4),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • Can't change forum slug

    By popvlad82, 1 hour ago

  • Major bug occurring with @user mentions

    By Noved, 2 hours ago

  • Forum description

    By Vijiki, 21 hours ago

  • cant send public messages to friends

    By ReddBeard, 23 hours ago

  • Moderation Turned Completely Off...User's Posts Are Still "Awaiting Moderation"...

    By Noved, 1 day ago

  • Slight changes to my forum

    By marios, 2 days ago

Topic Tags

  • css50
  • translation49
  • plugin conflict48
  • seo45
  • new features44
  • buddypress42
  • moderation40
  • ultimate member40
  • avatar40
  • forum40
  • login38
  • registration36
  • threaded layout35
  • cache33
  • editor32
  • menu32
  • shortcode31
  • forum accesses30
  • spam29
  • phrases28
View all tags (2163)

Recent Posts

  • RE: Major bug occurring with @user mentions

    Please view the updated attached image below of another...

    By Noved, 48 mins ago

  • RE: Can't change forum slug

    There are two places for the slug. In wpForo AND mainly...

    By dimalifragis, 1 hour ago

  • RE: Moderation Turned Completely Off...User's Posts Are Still "Awaiting Moderation"...

    @robert Ok thank you!

    By Noved, 2 hours ago

  • RE: wpForo 2 Major Update is Imminent!

    @dimalifragis, It depends on the beta version. We are...

    By Robert, 6 hours ago

  • RE: How to schedule a topic?

    Hi @joselito, I'm sorry, but this will not be availab...

    By Robert, 8 hours ago

  • RE: cant send public messages to friends

    @reddbeard, about Buddy Press Public Messages, you sh...

    By Chris, 11 hours ago

  • RE: Forum description

    @vijiki, Use Custom CSS to hide it on the page.

    By Chris, 11 hours ago

Share:
Share
Tweet
Share
  Forum Statistics
20 Forums
9,773 Topics
49.5 K Posts
4 Online
44.5 K Members

Latest Post: Major bug occurring with @user mentions Our newest member: 6 Strategies To Accelerate Red... Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation