0

I have created a theme for one of our clients using bootstrap framework!

When i was working on it on Localhost it works Correctly, but when I Uploaded it doesn't work. When I Activate it from Appearance I Saw A blank white Page; Also when I Try to Post a new Comment, post, page or custom post type.

Is there any Help for this Problem?

References will send if ask?

1

This answer will be long, but can be helpful in some way.

First of all, detect why you're getting this error:

Majority of the time when you see a Wordpress' White Screen of Death, it means that you exhausted the memory limit of your server settings.

This could be caused by a plugin that you may be using that is not functioning properly.

It could also be caused by a poorly coded theme that you are using - usually free themes download on the web.

It could also mean that there is an issue with your web hosting server.

Since the problem can be caused by any number of things, it may require a lot of troubleshooting.

Detect if the problem occur in other Wordpress websites:

If you have multiple sites, then the first thing you should do is to make sure that the white screen of death is happening across the board or just on this one domain.

If the issue is with all of your sites, then it is a strong indicator that your web hosting provider is having some issues.

However, if the issue is only with one of your sites, then this could be an issue with a plugin or theme that you are running. If the issue is only happening with a single post or page, then you know it is definitely a problem with your specific site.

If possible, increase the Memory Limit:

Usually this issue happens because your memory is being exhausted.

If increasing the memory limit did not help, or if you have a high memory limit like 256M or 512M, then you need to start troubleshooting. In our experience of troubleshooting this issue, we have always found that the issue is either with a specific plugin or a theme. Go ahead and disable all the plugins.

If this fixes the issue, then enable one plugin at a time to get to the bottom of the issue.

Try to replace Theme with a Default Theme and see if the problem persists:

If the plugin troubleshooting doesn’t fix the issue, then you should try replacing your current theme with a default twenty ten theme.

The best way to do this is by backing up your theme folder. Then deleting the theme. WordPress will automatically fall back to the default theme.

Alternatively, you can go in your phpMyAdmin and update the database tables in wp_options table. The following table names would have to be updated:

template, stylesheet, and current_theme. Change the value to twentyeleven.

If this fixes the issue, then you should look at your theme’s functions.php file.

If there are extra spaces at the bottom, then you should consider fixing it.

If you are using a poorly coded function in your theme’s functions.php file, then it can cause this as well.

Debug your code:

If none of the above fixes it, then you should try to re-install a fresh copy of WordPress. While it is unlikely, but it is always possible that a core file may have been corrupted.

You can also use the WordPress debug function to see what type of errors are being outputted. Add the following code in your wp-config.php file.

define( 'WP_DEBUG', true);

Once you add this, the blank screen will now have errors, warnings, and notices generated by PHP. These may be able to help you determine the root cause of the problem.

Make sure you're running on a Linux server:

Wordpress usually don't work well on servers running Windows - so make sure you're using a server running Linux (this can be checked with your hosting company).

  • All good points but that last point about Windows is an unlikely cause. I've developed WP sites for over 10 years and often started development on local computers not running LAMP stacks and have never to my memory in all that time had an issue that required me to move to a LAMP environment and was down to running on Windows. In my experience WP and pretty much every theme/plugin I've ever used has never had a Windows / Internet Information Server specific issue. – AdamJones Mar 6 at 13:15
0

Thanks a lot. I have checked and i found that the problem is on the Theme-options code. i have used Option tree plugin inside of my theme instead of installing the plugin.

But I don't know why it works on local and doesn't work on website.

  • Your answer lies in php versions. Your live install php version is lower than the required minimum to run your plugin, while your test install php version meets the minimum required :-) – Pieter Goosen Jun 18 '15 at 8:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.