I’ve been working on a React App for months that connects on localhost port 9000. Recently the app stopped working after an upgrade to Monterey. Turns out the upgrade also required a number of services to be re-installed via brew. One of those services, php-fpm, is now taking over port 9000 automatically on startup despite not having explicitly set the updated PHP version to run at start. As such, opening http://localhost:9000/ on the browser was routing to PHP apps and … Continue reading “MacOS Monterey Node Port 9000 Refused”
Lesson learned — if you are using EFS on production systems you want to be using provisioned throughput mode. But, before we get into that, let’s go over the details of this implementation… Service Configuration We utilize AWS EC2 instances to run multiple WordPress sites hosted in different directories. The configuration is fairly standard: 2+ servers configured as part of an load-balanced cluster. The servers run from the same image meaning they use the same underlying software stack. Part of … Continue reading “AWS LEMP Stacks and EFS Issues”
Working with Varying Vagrant Vagrants today and having problems spinning up a new box? Don’t blame yourself. It appears that the PHP 7.2 libs… in fact ALL of the PHP libs for Ubuntu Trusty have gone away. The ppa:ondrej/php repository that is cited everywhere has decided it is not going to serve up any PHP code to your Vagrant boxes today. Maybe they’ll fix it soon. Maybe not. If anyone has a workaround please comment here.
The very first class at The Code Block at The BlockYard is going to begin the journey with WordPress plugin development. This is a starting point only. Something to get the ball rolling. Anticipate multiple forks as we start down the “Code Block chain”. We most certainly will end up in places we don’t expect as we follow this coding journey were it takes us over the next 6 months.
In what has become a nearly annual tradition, WordPress has released yet another update that broke thousands of plugins across the Internet. As usual, they claim this is in the best interest of security. Thus the breaking change was done with ZERO notification to developers. It was also forced onto most sites as a “security patch release” which will update any site that does not forcibly stop automatic updates. Communication From WordPress Core Is Horrid While I don’t have … Continue reading “WordPress Continues To Break Things In The Name Of Security”
I am completely baffled by this one and hope one of my techie friends can help. I’m using a PHP class with magic methods to set and get the properties of that class. The idea is to use private properties in the class so that the PHP magic methods can take over and determine whether to update a WordPress user meta entry, blog entry, or standard option based on which proper of the class is being retrieved or stored.
As PHP continues its march into the future with improved support for objects, better memory management, and notable performance boosts WordPress seems to be dead-set in sticking to the “must support old technology no matter how bad it is”. As of this writing, on the verge of the much-anticipated WordPress 5.0 release with the almost-modern reactive components interface — the past continues to hamper the technology by insisting on clinging to PHP 5.2 as the baseline version that plugins … Continue reading “WordPress Needs To Abandon PHP 5.2 Compatibility”
One of the common processes that runs in Store Locator Plus is deleting locations. For sites with a few dozen locations the process runs smoothly. For sites with thousands of locations but deleting one or two at a time, not a big deal. But for sites that are deleting tens-of-thousands of locations at a time the process becomes painfully slow. A mere 2,500 locations can take up to a full minute to be removed on a fairly … Continue reading “Improving wp_delete_post in WordPress Core”
I recently found that I needed to Profile WordPress Cron to figure out the best way to improve the processing time on background file imports. In an effort to better handle on large location imports in Store Locator Plus, I re-architected the Power add on to split the process into 3 steps. The first step uploads the file to the server; something that is typically fairly fast and only ties up a user’s web browser for a few minutes … Continue reading “Profile WordPress Cron Jobs With VVV”