Here are some causes of the dreaded WordPress White Screen of Death and possible solutions:
The most common cause, in my experience is a PHP error in a plugin. Maybe one you are working on
This could be due to a duplicate function name. This may arise from re-including a file, where you should use the “require_once” function rather than “include”.
You can track down exactly which plugin is causing a problem by inserting a die(“$plugin OK\n”); statement into the wp-settings.php file where the plugins are being loaded. But you will need to add some curly braces. If you are a programmer, you will know what I am talking about. This is better than disabling all plugins and tediously re-enabling them one-by one IMO.
A good way to spot errors in your PHP code is to code your plugins in an editor such as NetBeans. This will flag up syntax errors before you run your code.
Another, more obscure reason for the WordPress White Screen of Death I found was where the .htaccess file was modified by code which wiped out the WordPress-specific redirect code i.e. the code between the “# BEGIN WordPress” and “# END WordPress” tokens. You could spot this by checking the before and after file size of .htaccess in say FileZilla by pressing F5 to refresh the file directory.
So I recommend using a good code editor to highlight PHP errors before you test your code, and output an “OK” at the end to check for the WordPress White Screen of Death. If you see the “OK”, then your PHP syntax is fine
As many of you guys will know, a big part of the SEO equation is gaining inbound links to your site. For those not so familiar, the other factors are related to on-page factors and URL factors.
To be honest, I have always been lazy about creating inbound links to my sites, I never really enjoyed that [...]
This is a quick introduction to the concept of automatic search engine optimization where a website dynamically adjusts itself for SEO.
The most common example is A/B split testing of Ads where 2 versions of an Ad are tested for which one produces the best result. But it soon becomes more complicated than just a decision on [...]
I created a PHP Obfuscation tool for my own needs and put it up on the web for anyone to use.
I think it works very well. Here is an example of how it works:
PHP Obfuscator
Input files:
Array
(
[0] => input/answers.php
[1] => input/article.php
[2] => input/functions.php
[...]
When activating a plugin in WordPress you may see a fatal error message that suggests that a function cannot be redeclared even though the plugin code does not redeclare it.
The real problem however is due to a bug in the plugin code that triggers a PHP error. But, WordPress for whatever reason masks this error message [...]
This is a WordPress error where all you see is a message saying You do not have sufficient permissions to access this page I have resolved this problem.
It stems from the WordPress database prefix that you use. If it is wp_ which is the default, then I don’t think you will ever see this error. But [...]
So here is a post about my diary of a programming Geek (without dates and times).
I did a post to a forum about the joy of coding. You know – the satisfaction that comes from leaning back in your swivel chair to admire your code and contemplate how awesome it is
Today: intrigued by the [...]
In my last post I talked about the Concrete5 CMS. In this post I want to introduce you to the Concrete5 MVC (Model View Controller) model of coding that it adopts.
It took me a while to grasp this concept, but now I think I get it so here it is:
The Model is the code that interfaces [...]
I’m really happy to have discovered the concrete5 CMS (Content Management System). As a Geeky developer I have always been torn between direct implementation of websites with custom code and using a CMS such as Joomla. Since most of my websites are fairly simple, the direct coding option normally wins, but since trying Concrete5 I changed [...]
As you know, Amazon is an extraordinary website that stocks a vast portfolio of products and has a great deal of trust with the online shopper.
If only we affiliate marketers could tap into this sales machine and bank coin.
Like you maybe? I tried and failed with Amazon before. The lowish commission rates can be a turn [...]
Recent Comments