Loads of spurious requests to my content are using up valuable server time. So how am I supposed to deal with them? [Read more…]
I’ve had this problem for a while now. I’m happily working away on my Windows PC, editing posts, changing code and testing and then out of the blue comes a
Fatal error: Cannot redeclare message.
But when I press Enter or refresh it goes away.
Here’s a little bit of PHP that helps you to solve the Crocodile maths question. [Read more…]
I recently updated this site to WordPress 4.3 and immediately started receiving the following PHP Notice.
Notice: The called constructor method for WP_Widget is deprecated since version 4.3.0! Use __construct()
How to prevent WordPress from attaching an unattached image to a post when you use
Insert into post.
Here’s a snippet of code that I wrote in response to a simple question from Ben Huson, posed on Twitter yesterday. [Read more…]
Q. Should I change my code back to using
dirname( __FILE__ ) instead of
A. No. I’m going to stick with
__DIR__ until someone complains.
I’ve had some performance issues on one of my sites. In this post I discuss some of the solutions to the problems; determining the cause, then applying the pragmatic fix. [Read more…]
If your instance of PHP Storm is saying it can’t find git.exe then there’s an easy way to fix it. [Read more…]
Last month a customer noted that the output of my Do-It-Yourself shortcodes plugin was interspersed with the share buttons from Add-To-Any. I reproduced the problem. I also discovered some strange behaviour with Jetpack. Today, while testing my fix I discovered another problem… Jetpack Related Posts attaches itself to the first invocation of ‘the_content’ filter. [Read more…]
The next question will demonstrate that you are really keen. Ask them to reproduce the bug on a-not-her machine