fbpx

Tips, tricks, and other valuable WordPress knowledge to save you time and make you money!

Blog

Fix “E: Could not get lock /var/lib/dpkg/lock” Error

I ran into the “E: Could not get lock /var/lib/dpkg/lock” error the other day while running an Ansible playbook on a client node running Linux. “E: Could not get lock /var/lib/dpkg/lock” is a frustrating issue to solve as there isn’t very good documentation out there about how to fix it up. The key thing that…

Change Section Background Color in Salient

It can be difficult when you start learning how to edit a page or post in WordPress. If you buy the Salient WordPress theme, add on top of that having to learn how to edit a page or post using the Visual Composer. There are five steps involved in changing a section background color in…

SQS Queue in Laravel Not Working

I recently switched a client site to use AWS SQS as the queue provider instead of a database to speed things up a bit. After creating a standard Queue in SQS, adding the AWS SQS credentials to the config/queue.php file per Laravel’s documentation, and updating the QUEUE_DRIVER in the .env file, I could see that…

Connect RDS to Lightsail

I created an RDS instance for a client the other day and needed to connect it to their Lightsail instance. I had never done this before and the documentation out there isn’t as simple as it should be. So, how do you connect RDS to Lightsail? There are 4 simple steps to connecting your RDS…

What is $() in Linux?

While I was going through a tutorial, I saw $() being used in a Linux Shell command and wasn’t sure what it did. $() is a command substitution It turns out, $() is called a command substitution. The command in between $() or backticks (“) is run and the output replaces $(). It can also…

Install WP CLI

We break down the installation process for the WordPress Command Line Interface (WP CLI) into the following 3 steps. Step 1: Check Requirements Before you can WordPress Command Line Interface (WP CLI), you need to check that your environment has the following list of requirements: UNIX environment – Linux, for example, is the most popular web…

Update User Password WP CLI

Updating a user password using WP CLI (WordPress’ Command Line Interface) couldn’t be easier! You simply have to start off by getting the ID of the user that you want to update and then you update the user’s password. These steps assume that you have installed WP CLI on your server. If you haven’t already…

How Can I Add a User Through SQL

Adding a user through SQL involves two parts. First, adding a record into the WorPress users table and then second adding a record into the WordPress usermeta table. The table prefix will likely be different for different WordPress installations. In the code snippets below wp_ is the table prefix, however for your installation it may…

Stripe Connect Error: No application matches the supplied client identifier

I received the following error out of the blue for a Stripe Connect implementation that I built out. I describe the context surrounding this error below but I found a simple way to solve this issue. Spoiler alert, I was missing the client_id from my generated authorization URL. I used the great PHP League’s OAuth 2.0 Client,…

Want to use our API?