Recently, I had to debug a WordPress issue on a Plesk server where the only visible symptom was a server error on a specific editor page. At first, the report was vague. The site was working in normal browsing, but editing in visual mode was failing. That kind of report can easily send you in… Continue reading How to Debug WordPress Server Errors on Plesk Without Guessing
Category: WordPress
The Website Looked Fine, but Google Was Showing Spam: A WordPress Malware Cleanup
Recently, I worked on a WordPress website that looked completely normal when opened in the browser, but Google was showing spam content in the search results. This is one of those issues that can easily confuse website owners. You open the homepage, everything looks fine. You check a few pages, still fine. No redirects, no… Continue reading The Website Looked Fine, but Google Was Showing Spam: A WordPress Malware Cleanup
How to Migrate from Amazon EFS to EBS on EC2
Recently, I was working with a client who was experiencing unusually high AWS bills, particularly from EFS metadata IO operations. After investigating, I found that their WordPress site’s files were mounted on EFS, which turned out to be the root cause of their cost issues. If you’re wondering why EFS and WordPress don’t play well… Continue reading How to Migrate from Amazon EFS to EBS on EC2
How to Programmatically Create WooCommerce Subscriptions with Payment Methods
During a recent project, I had to programmatically create WooCommerce subscriptions and link them to existing customer payment methods. I learned a lot through the process, and I thought I would share my findings in this comprehensive tutorial. Whether you’re migrating subscriptions from another platform, or building a custom subscription creation process, this guide will… Continue reading How to Programmatically Create WooCommerce Subscriptions with Payment Methods
How to Convert Regular WooCommerce Products to Subscription Products Programmatically
Converting regular WooCommerce products to subscription products can be tricky. Recently, I needed to convert a bunch of products in bulk and ran into some interesting challenges that I’ll share with you along with the solution. Without further ado, let’s see how we can properly convert both simple and variable products to their subscription counterparts.… Continue reading How to Convert Regular WooCommerce Products to Subscription Products Programmatically
Apply WooCommerce coupons to regular prices instead of sale prices
Ever needed to apply WooCommerce coupons to regular prices instead of sale prices? Maybe you want to run a special promotion that should override existing sales, or you need to ensure your percentage-based coupons are calculated from the original product price. Here’s a simple solution that lets you do just that. In my case, I… Continue reading Apply WooCommerce coupons to regular prices instead of sale prices
How to migrate from WordPress.com using SCP via SSH
I recently took on a project involving the migration of a WordPress website from WordPress.com, which is a hosting service for WordPress.org. The client had a desire to move their WordPress site away from WordPress.com. This presented a bit of a challenge because WordPress.com doesn’t allow direct file transfers to another server using SSH commands… Continue reading How to migrate from WordPress.com using SCP via SSH
The correct way to set WordPress File Permissions using SSH
Understanding and correctly configuring file permissions in WordPress is crucial for maintaining the security and integrity of your website. This simple guide will walk you through the main steps to adjust WordPress file permissions using SSH (Secure Shell). By following these steps, you can secure your WordPress installation effectively. Step 1: SSH into Your Server… Continue reading The correct way to set WordPress File Permissions using SSH
How to restore/regenerate missing attachment metadata in WordPress
Recently, one of my clients encountered a significant issue when they lost their entire wp_postmeta table, and unfortunately, there was no backup available. Our only viable option was to recreate the table and manually add the post meta. However, this posed a new problem. The website has thousands of media files, which became unusable as… Continue reading How to restore/regenerate missing attachment metadata in WordPress
How to completely uninstall/remove New Relic PHP agent from Ubuntu
Working with numerous clients to resolve performance issues in their WordPress sites, New Relic has been a steadfast ally, aiding me in monitoring performance and gathering vital insights to enhance site speed and functionality. While New Relic proves invaluable during the debugging phase, there comes a a time when a thorough cleanup is needed, especially… Continue reading How to completely uninstall/remove New Relic PHP agent from Ubuntu