Categories
All

How to Fix the 500 Internal Server Error in WordPress

Error Introduction

The 500 internal server error runs on every page of your site when there’s a problem with the server or file system that’s powering your site. The cause most likely occurs in the root directory, where your WordPress files are, but it can also be caused by a problem on your host’s server.

This is one of the most frustrating errors that can occur in WordPress. It never has a straightforward solution, requiring a lot of troubleshooting that can eat up your time and patience. But we’re going to try to help alleviate some of that stress by suggesting several solutions to this problem and walking you through each.

Reasons
  1. Corrupt .htaccess File
  2. PHP Memory Limit
  3. Cause in Plugins
  4. wordpress core Files
  5. Problems with your hosting server
Categories
All

Work Generating

Summary

Jodi regularly stages networking and training events in Perth to share her knowledge locally. She has also revived a local networking and support group, the Salesforce Perth User Group, where members can share strategies for success and troubleshoot problems with local Salesforce users. I have a couple of characteristics that I think every newer UX designer needs:

She has also revived a local networking and support group, the Salesforce Perth User Group, where members can share strategies for success and troubleshoot problems with local Salesforce users. I have a couple of characteristics that I think every newer UX designer needs:

She has also revived a local networking and support group, the Salesforce Perth User Group, where members can share strategies for success and troubleshoot problems with local Salesforce users. I have a couple of characteristics that I think every newer UX designer needs:

• a unique passion for fixing users’ issues
• a persistent thought that anything is achievable
• this shouldn’t be the scenario.

how to work optical fiber cable ?
Categories
All

Error Establishing Database Connection

Error Introduction

If you have been surfing the web for a while, you have at least seen this error a few times. Error Establishing a Database Connection is one of those curses that could be caused by many reasons. As a WordPress beginner, this could be awfully frustrating specially when it happened on its own without you changing anything. We ran into this issue yesterday on our own site. It took a little over 20 minutes to detect and fix the problem. While doing the research to find possible causes, we realized that there was no good article that covered everything. In this article, we will show you how to fix the error establishing a database connection in WordPress by compiling a list of solutions all in one place.

Note: Before you make any database changes, make sure you have sufficient backups.

Solution

1. Wrong Login Credentials in wp-config.php file

The very first thing to do is check to ensure your database login credentials are correct. This is by far the most common reason why the error establishing a database connection message occurs. Especially right after people migrate to a new hosting provider. The connection details for your WordPress site are stored in the wp-config.php file which is generally located at the root of your WordPress site.

2. Problems with your hosting server

It’s safe to assume that if your site was working just a minute ago (or a day ago) and now it isn’t then the fault can be on your web host’s end.

All quality hosts these days offer some form of fast-reacting support, usually through live chat.

Start by contacting that live chat, say that you’re experiencing an “error establishing a database connection” (paste the phrase), and ask:

  • if the database server is up and running with no problems, and
  • if there isn’t any spike in activity or traffic on the server right now.

In most cases, if you tell them what sort of error you’re having, they will either let you know what the cause is exactly, or they will even fix it for you.

Most importantly, they will let you know if your database is alright and whether or not there’s any suspicious activity on the server.

Videos
How to avoid this error in the future?

While there isn’t a 100% fail-proof way to protect your site against any error establishing a database connection, there are two main elements that you should have in your insurance puzzle to be at least 90% safe:

  • Quality hosting. Work only with hosts that have optimized their platforms to work with WordPress. That way, you can always count on knowledgeable support and fast help. Not to mention that you will also avoid many common WordPress problems. Here are our recommendations.
  • Have backups. Install a simple backup plugin like UpdraftPlus (it works automatically) and you should always have a working WordPress backup that you can restore in case everything else fails.
Categories
All

White Screen Of Death

While browsing the web you may come across this error multiple times. You will see that you are locked on a white screen with nothing on it. White screen of death is one such error it is caused due to many undesirable reasons.

Many a times you are not able to access your admin due to white screen of death error. It is extremely irritating as you are stuck out of WordPress. Being a WordPress starter you may find it horrible to deal with it. In this article you will be provided with an ultimate answer to your problem.

Note: Before making any WordPress changes, you must have your website’s backup.

Reasons
  1. PHP code faults
  2. Overcrossing memory limits
  3. Defective theme/plugin
  4. Issues with updates
  5. Problem with ownership/permission
  6. Enable debugging
Solution

1. PHP code faults

The very first thing to do is to examine and go through your websites PHP code. After finding an error with your code you can simply fix it or take help from your trusted developer. If you find no fault in your code the the problem could be something else.

1. PHP code faults

2. Overcrossing memory limits

 

One of the reasons for having a white screen can be due to crossing your memory limits. You may increase or add more memory to your application. It can be done by adding the following line to your wp-config.php file.

define('WP_MEMORY_LIMIT', '64M');

To increase your memory limit you of few other choice

1.Use your .htaccess file in the WordPress root directory and add the code given below

 php_value memory_limit 64M

2.Use your php.ini file and add the code given below anywhere in your file

memory_limit = 64M

3. Defective theme/plugin

Even after making the following changes and you are not able to see the results the problem is with your theme or plugin. Your site may go down due to a bad plugin/theme update.

If you are able to access your WordPress admin then you can simply disable all your plugins by going to Plugins→Installed Plugins→Bulk Actions→Deactivate

If you are not able to access your admin area you can disable your plugins by connecting your WP site to a FTP client. After the connection go to wp_content folder→plugins folder→right click→Rename

After renaming WordPress automatically deactivates all the plugins. If this solves the problem then activate the plugins one by one and reload the site after each activation. Once you find the faulty plugin you can report the issue to your plugin authors or replace it.

If this doesnt help you should try replacing your theme by connecting your WordPress site to a FTP client and go to wp-content folder→ themes folder→right click→download current theme as backup→right click→themes folder→delete.

If you have a default theme(twenty nineteen etc.,) WordPress will automatically use it. Now check your site’s functions.php file and see if you have any extra space below. If yes then remove those. If this doesn’t help you then you should download a fresh copy of your theme and install it on your site.

4. Issues with updates

Sometimes WordPress may have issues with updates and to fix this go to WordPress root directory→.maintenance file→delete the file. If these doesn’t help you you can refer to manual update procedure.

5. Problem with ownership/permission

Many a times there can be an issue regarding permission or ownership which cause white screen of death errors. WP has some basic rules for this. they are as follows-

  • files should be 664 or 644,
  • folders should be 775 or 755
  • and the wp-config.php file should be 660, 600, or 644

If you have SSH access to your server then apply suitable rules with proper command and run it through the WP root directory. You can even consult your host, some hosts my also fix the problem regarding permission.

6. Enable debugging

Enabling debug mode and adding the following code to your wp-config.php file may also help you-

define( 'WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true );

After this you’ll see many warnings/notices etc., which may help you fix the errors. If you cant see the errors visit the FTP client→wp-content folder you’ll see a new file named debug.log containing all the warnings and notices.

How to avoid this error in the future?

There isn’t any perfect way to prevent white screen of death but you can take the following precautions to atleast be safe-

  • well coded plugin/themes. Working with well coded plugins and themes have proved to be one of the best ways to stay away fro any WP errors.
  • Have backups. Install a simple backup plugin like UpdraftPlus (it works automatically) and you should always have a working WordPress backup that you can restore in case everything else fails.

Categories
All

Layla

Jodi is an accredited Salesforce consultant and works with a wide range of clients in industries including property, finance, banks, retail, vehicle leasing, government and not-for-profit. She also brings considerable marketing experience to Liquid, through her roles with leading brands such as Chanel, JeansWest, Harcourts and many leading Perth based businesses, throughout her sixteen year career.

Jodi regularly stages networking and training events in Perth to share her knowledge locally. She has also revived a local networking and support group, the Salesforce Perth User Group, where members can share strategies for success and troubleshoot problems with local Salesforce users. I have a couple of characteristics that I think every newer UX designer needs:

• a unique passion for fixing users’ issues
• a persistent thought that anything is achievable
• this shouldn’t be the scenario.

Categories
All

Welcome To The Jungle

Jodi is an accredited Salesforce consultant and works with a wide range of clients in industries including property, finance, banks, retail, vehicle leasing, government and not-for-profit. She also brings considerable marketing experience to Liquid, through her roles with leading brands such as Chanel, JeansWest, Harcourts and many leading Perth based businesses, throughout her sixteen year career.

Jodi regularly stages networking and training events in Perth to share her knowledge locally. She has also revived a local networking and support group, the Salesforce Perth User Group, where members can share strategies for success and troubleshoot problems with local Salesforce users. I have a couple of characteristics that I think every newer UX designer needs:

• a unique passion for fixing users’ issues
• a persistent thought that anything is achievable
• this shouldn’t be the scenario.