A WordPress novice? Or someone who has used this tool for years? Well, regardless of your experience level, there are a number of things about WordPress you need to be aware of.
Here are some tips to overcome all kinds of troubles with the CMS platform:
This error is received by most WordPress users. The message occurs when sometimes a line of code goes missing a curly bracket, a semicolon, or a wrong character. The message actually informs you about certain codes that do not conform to valid PHP syntax within a specific file and line. Hence, this cannot be parsed or processed. Now that you know which specific file causes error, download it through FTP and fix its syntax. Now it is time to upload it back again to the server. When you want to learn wordpress and other programming language deeper, you should go to Team Treehouse website, Read the Full Review of the site here.
The White Screen of Death – How to Fix It?
If your website looks as if it has vanished into thin air and nothing is left except white screen, you need to know more about this and fix it as fast as possible. White Screen Of Death (WSOD) is quite similar to Blue Screen of Death and Black Screen of Death. It occurs whenever something does not work properly. This is a clear and an emergency sign that asks you to take action without delay.
However, the question is what causes a WSOD on WordPress website? In almost all cases, this occurs due to a fatal PHP error and error display which is turned off. This means website loading process was halted prior to getting any output. This happens due to any of the following scenarios:
- Corrupted WordPress core files
- Problems related to or caused by one or more of your plugins
- These related or caused issues
- Problems caused by or related to your database
Plugins – If the WSOD is due to issues with plugins, it is important that you know about it well and fix it. A new plugin activation without testing it properly may result in its incompatibility with WordPress setup. One of the best things to do here is to disable plugins, and check if the site starts functioning normally again.
After this, you can reactivate these one-by-one. Simply log into your server via FTP. Now rename the whole plugins directory. This tends to deactivate plugins in a single step and keeps settings intact. Make sure you do not deactivate plug-in through wp-admin as this will make you lose all of your settings.
Now visit your WordPress site. It may be fully or partially running. If this is the case, the problem causing the fatal PHP error is actually located in one of your folders. Unfortunately, this means that you must go through plugins one by one and locate the root cause.
One of the best ways to do this is to navigate to plugins folder and rename them to jetpack_old. Do this one by one. Now check the site and see which one breaks it. As soon as the incriminated plugin gets disabled, the website will be up and running. In case, renaming plugins folder doesn’t work, look for the problem elsewhere.
Themes – When disabling plugins doesn’t help, it’s time to disable your present theme and activate the WordPress default theme. If you have deleted it, download it and upload it through FTP in your wp-content/themes folder. Now rename its folder as old_themename. The WordPress will automatically revert to a default theme and activate it. In case, the issue is gone, it certainly has to do with the theme. Also ask if you have updated it recently or copy-pasted code snippets you found online incompletely. In case, you just did, simply revert to a previous version of your theme files. This will make everything go back to the way it was prior to the issues occurred.
Exceeding Memory Limits – WSOD can also be a result of outgrowing memory limits. For instance, once the website gets a spike of visitors within only a short period and hosting on your side is unable to handle it, this means it is exceeding memory limits. Sometimes, a long running script is exhausting the PHP memory. Regardless of the availability of several WordPress-optimized hosting services ready to address many of these requirements, WordPress users still rely on shared (and cheap) solutions. Hence, it is crucial to increase the memory WordPress can use. Simply add the following string to your wp-config.php file:
define( ‘WP_MEMORY_LIMIT’, ’64M’ );
For a higher or lower limit, simply replace ’64M’ value with your desired amount.
Corrupted Files – If none of the above is helpful for you, that means, some of your core WordPress files will get corrupted. These may also not work the way they should. Is that your case? Make sure you download the latest version of WordPress. Thereafter, you should upload the latest wp-admin and wp-includes folders through via FTP.
Error Establishing A Database Connection
This problem may be related to a number of factors that has a lot to do with wrong info in the wp-config.php file. The information may appear as the following:
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define( ‘DB_NAME’, ‘database_name_here’ );
/** MySQL database username */
define( ‘DB_USER’, ‘username_here’ );
/** MySQL database password */
define( ‘DB_PASSWORD’, ‘password_here’ );
/** MySQL hostname */
define( ‘DB_HOST’, ‘localhost’ );
You cannot connect to the database. Hence, look at all values set within wp-config.php file. Also double check to know if you get something inserted wrongly. In case, you don’t find any, it may be the case for hosting provider to either get some issues on their end. Sometimes, the database may also get corrupted. In this case, the error message is received while accessing backend /wp-admin. To repair database, access wp-config.php file, and add the following line:
define (‘WP_ALLOW_REPAIR’, true) ;
Now visit your_site/wp-admin/maint/repair.php.
Thereafter, you should pick the type of repair you would prefer and then wait until it is completed. There is no need to be logged in for this. Once this is accomplished, go to wp-config.php file and remove the line that you added previously. In case, the database repair does not work, check the issue with your hosting provider.
Unavailable Scheduled Maintenance
Updates are very important to help keep WordPress website fully functional. The core automatic upgrade feature was recently added to WordPress. A maintenance mode error message may occur in your browser due to interruption in update process or if it is unable to clean up after. Take care of .maintenance file once you see this maintenance, error message. Do the following:
Locate your .maintenance file in your root.
This is actually a hidden file located within the same folder as the wp-config.php file:
delete the .maintenance file
Sometimes, the message may occur when you view your homepage when core WordPress update is running. Under this situation, simply wait for the update to complete.
Warning: Cannot Modify Header Information – Headers Already Sent By
You may receive this error message on your browser right after upgrading your WordPress. It occurs due to unnecessary spaces in a given file. The wp-config.php is the main reason here. Edit and remove the unnecessary white space from that file to fix the issue. You can access via FTP and then download the file stated in the error message. Now open this with a text editor and remove all spaces before the tag. At last, upload the edited file back via FTP.
Remember that this error may involve other files too. Hence, it is crucial to read out error message carefully because it states the specific file name (and path) right where the error occurred. If you need assist then feel free to ask us : jiteshmanaktala.com
Connection Timed Out
This message occurs when WordPress website overruns memory limit of the server. This can be fixed by locating any problems with a plugin. Also try and disable current theme and activate the WordPress default theme. This will rule out theme-related issues. Lastly, you can increase PHP memory limits.
Increasing maximum execution time in php.ini file either via asking the hosting provider to take care of it.
Unable to Upload Image Files to WordPress
This is very common. When you are all set to start up something new and exciting with WordPress, it gives you back an error message. It may say “Unable to create a directory /wp-content/uploads/” or something similar. This error has something to do with ‘wrong file permissions’ that’s set on your upload folder. The issue can be fixed by either reactivating/deactivating all of the plugins to rule out plugin conflicts or setting up a default theme to rule out issues related to the theme. In case, these actions do not work in your favour, check and edit file permissions for ‘/wp-content/uploads/’ folder.
Long story short: set these to 644 for files and 755 for folders.
Do not set permissions at 777 values as they tend to open up a WordPress website for security threats.
Are you experiencing issues with WordPress? Follow the tips stated above and let the magic work for you, also make sure to check the best wordpress hosting agency, which will help give your site a lot more success.