Posted on April 13, 2022Categories Apple, Development, JavaScript, TechnologyTags , , , , , , ,   Leave a comment on MacOS Monterey Node Port 9000 Refused

MacOS Monterey Node Port 9000 Refused

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”

Posted on December 11, 2019Categories AWS, PHP, Security, Technology, WordPressTags , , , , , ,   Leave a comment on AWS LEMP Stacks and EFS Issues

AWS LEMP Stacks and EFS Issues

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”

Posted on May 8, 2019Categories PHP, Programming, Technology, WordPressTags , , , , 2 Comments on Ubuntu Trusty: PHP 7.2 MIA

Ubuntu Trusty: PHP 7.2 MIA

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.

Posted on March 25, 2019Categories TechnologyTags , , , , , , , , , , 1 Comment on The Code Block : WordPress Plugin Development Block 0

The Code Block : WordPress Plugin Development Block 0

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.

Posted on December 18, 2018Categories Security, Security, Technology, WordPressTags , , ,   Leave a comment on WordPress Continues To Break Things In The Name Of Security

WordPress Continues To Break Things In The Name Of Security

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”

Posted on August 1, 2018Categories Development, PHPTags , , ,   Leave a comment on PHP __set() Magic Method Conundrum

PHP __set() Magic Method Conundrum

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.

Posted on July 17, 2018Categories Programming, WordPressTags , ,   Leave a comment on WordPress Needs To Abandon PHP 5.2 Compatibility

WordPress Needs To Abandon PHP 5.2 Compatibility

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”

Posted on February 8, 2018Categories PHP, Programming, WordPressTags , , , , 1 Comment on Improving wp_delete_post in WordPress Core

Improving wp_delete_post in WordPress Core

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”

Posted on December 16, 2017Categories UncategorizedTags , , , , , , ,   Leave a comment on Profile WordPress Cron Jobs With VVV

Profile WordPress Cron Jobs With VVV

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”