Warning: mysqli_real_connect(): (HY000/2002): No such file or directory in /private/tmp/wordpress/wp-includes/wp-db.php on line 1452

I'm trying to run PHPUnit to unittest a WordPress plugin, but the error in the title keeps showing up. I used WP-CLI to setup the unittests, but also WP-CLI throws a similar error when I try to...

WordPress Multisite: Activate / Deactivate a Plugin of a Specific Blog

Programmatically, I want to activate / deactivate a plugin of this specific blog/site in a WordPress Multisite. Any help will be gladly appreciated, thank you!

Install specific version of wp-cli package

I would like to install a specific version of a wp-cli package, e.g. wp package install geekpress/[email protected] or if this does not work, then from a specific github commit wp package...

Using Wordpress CLI image on Kubernetes

We have a custom docker image based on the official wordpress image that holds a custom theme that we are developing. We have CI/CD on this project using Gitlab CI and deploying branches on a...

WordPress customizer and webpack - exposing wp global

I'm using webpack to bundle my files. And I want to add a script that will enable me to change settings in the customizer on the fly. I created a class which will hold all my customizer...

Possible to do multiple nested commands in Click 6

I am going to write something very basic so as to explain what I'm looking to make happen. I have written some code to do some interesting WordPress administration. The program will create...

How to run wp cli in docker-compose.yml

Just starting in docker here So I got this in my docker-compose.yml version: '3.3' services: db: image: mysql:5.7 volumes: - db_data:/var/lib/mysql restart: always ...

Moving Wordpress site to Docker: Error establishing DB connection

Ive been making new sites with Wordpress & Docker recently and have a reasonable grasp of how it all works and Im now looking to move some established sites into Docker. Ive been following this...

Error "Your php installation appears to be missing the mysql extension which is required by wordpress" on Ubuntu 18.0.4. and PHP 7.2

I have recently updated my Ubuntu version from 16.04 to 18.0.4 with PHP version upgraded to 7.2. I haven't been able to log on to my Wordpress websites due to the following error: Your php...

Symfony 4.1 PHP 7.2.10 Notice: iconv(): Wrong charset, conversion from `UTF-8' to `UTF-16BE' is not allowed

Ok, so I have searched other questions without success. I am getting this error on a virtual box, which I cannot alter in any way. MBString is enabled IconV is enabled An exception has been...

Webpack 4 - Minify CSS that was compiled from SCSS

Developing a wordpress site and using webpack to bundle assets. I have a setup where I'm compiling SCSS to CSS among other things. I want to minify the output CSS and remove comments. I tried to...

WP CLI avoid 'Undefined index: HTTP_HOST' when using http_host in wp-config.php

I am confronted to the error PHP Notice: Undefined index: HTTP_HOST when trying to use wp-cli on my wordpress install because I have this line in my wp-config.php: define('WP_SITEURL', 'http://' ....

Trying to use woocommerce commands on wp-cli - getting `'wc' is not a registered wp command.`

I am working on an ubuntu machine and have installed the wp-cli globally using the official installation instructions. However, I can't run any woocommerce commands. They all trigger the same...

How to update wordpress translations via wp-cli

I'm using docker with the wordpress:cli image to perform many actions like updating, activating themes and plugins, etc, on the system. I come up with a brand new updated system that has...

Wordpress intallation on Docker. trying to skip installation page

Running wordpress on docker. Trying to skip install install.php by defining user in compose file. I have already added wordpress user , password and title to skip that page. but not working. Is...

How to have wp-cli commands work in a bash script from cron

I have a bash script with various WP-CLI commands to run a backup, check & optimize db tables, run a security vulnerability check, check available core, plugin, and theme updates, and then email...

cannot change admin password, wordpress on godaddy

I inherited a web task. I do not have the admin password and trying to change it in the backend via phpmyadmin. The error I get is: Incorrect password error for user admin Error: in wp-config,...

Wordpress and Woocommerce installation with docker

Good morning, I'm trying to create an installation of wordpress with woocommerce already installed and active using docker-compose file with 2 containers, one with mysql taken from bitnami...

Bulk import products into Woocommerce using WP WC CLI

I'm trying to add 1000's of products into my woocommerce store using wp wc cli via my datasource which will give me the data in the following JSON format: { "name": "Product Name 1", ...

Getting error when trying to run the webpack-dev-server all of a sudden, unknown property of "fs"

When trying to run Webpack Dev Server, I get a long error message: 47 errors and 10 warnings. I had no errors before, and then all of a sudden I do get errors. I have changed nothing in my webpack...

Wordpress wp-cron.php execution doesn't work

I have a multisite WordPress. I user WP Offload SES Lite to send emails. One day emails stopped working. In wp-ses I saw that many Emails are stuck in queue. Sending test email worked with no...

wp-cli in Docker fetches wrong database login credentials from wp-config

Here is my docker-compose.yml file: version: '3.9' services: db: image: mysql:5.7 restart: always command: [ '--disable-partition-engine-check', ...

How to declare a global class so I don't get an error in Undefined type in intelephense in visual code

I'm new to visual studio code and intelephense. I'm working with WordPress and using a class called WP_CLI which's a system installed. So, if I'm not wrong, class WP_CLI is not in my path so I get...

Migrating to GatsbyJS v3, strange error from gatsby-source-wordpress "Found a duplicate ID in WordPress"

I just updated my Gatsby to v3. Right before that I had just updated gatsby-source-wordpress to v5 and everything was working with Gatsby v2.32.9 Now when doing gatsby develop, I get the following...

How to automate wp instance setup + theme/plugin customization with docker?

I want to create a docker image for wordpress, which creates a ready to use wp instance with already setup and completed installation, activated theme and plugins and other configurations. I was...

How to install PyCaret in AWS Glue

How can I properly install PyCaret in AWS Glue? Methods I tried: --additional-python-modules and --python-modules-installer-option Python library path easy_install as described in...

Gutenberg Blocks: registering more than one block with `register_block_type_from_metadata()` throws errors in the console

I'm practicing how to create Gutenberg blocks plugin. I use @wordpress/create-block to create a blocks plugin. Edit: I didn't use the wp-cli scaffold as I initially stated, what I meant to write...

How to use React Testing Library to test for appearance/disappearance of elements in Gutenberg editor using Puppeteer?

I have the following set up: E2E Test Utils - standard WP Gutenberg e2e testing set that uses Jest and Puppeteer testing-library/pptr-testing-library - All your favorite user-centric querying...

After auto upgrade to 5.8 seeing errors and site unusable

After an auto upgrade to 5.8 seeing this error... can't even run the wp-cli to downgrade back to 5.7.2. I forgot to turn off the auto upgrade to this one particular site... 2021/07/23 14:46:03...

why does wp core install say table 'wp_options' doesn't exist

Im using wp cli on my bedrock directory setup and have the files in the wp dir. now installing the core using wp core install --url=xxx --title=xxx --admin_user=xxx --admin_email=xxx...