Posts

How to Fix 502 Bad Gateway Error?

Image
  Here are some very simple ways of fixing 502 Bad Gateway errors from the client side. Reload the page The first thing you should do is reload the page and wait for a minute. If the 502 Bad Gateway error disappears, it means there was a temporary problem with the upstream server or the networking between servers. If the error remains, check if the site is down for everyone. You can use Is it down right now? for this. If the site is up for everyone except you, open the site on another browser or in private mode. Clear browser cache Another easy tip is to clear the browser cache. If the error disappears after cleaning cache, it means that there was a temporary problem that has been resolved, but because of cache, you kept seeing the 502 Bad Gateway error template, instead of your website. If the error remains, try the next tip. Flush DNS cache The 502 Bad Gateway error can occur because of DNS issues. Operating systems, such as Linux, Windows, and macOS save name resolution information

How To Fix Syntax Error?

  What is a Syntax Error ? A syntax error occurs when there’s a mistake in your code. As a result, the compiler cannot process (parse) the file and fail to display your website. On WordPress, syntax errors are usually caused by incorrect lines in PHP scripts. Some common mistakes are incorrect coding structure, missing punctuations, invalid variables, and wrong function names. What are Parse Errors? In the context of PHP, parsing is what happens when your code is being converted from a series of characters to the final result that visitors are going to see on your site. These errors occur when the PHP code can’t start or finish being parsed for one reason or another. It could be that the file or database is missing, corrupt or broken, your version of PHP isn’t compatible with WordPress, your file permissions aren’t set correctly, your server ran out of PHP memory or there’s a structural error in the code. In WordPress, the latter is typically what you may come across the most and there