Digital Media Insights for Business Owners

Deprecated: Creation of dynamic property WP_CLI\Dispatcher\Subcommand

Merkados

If you use WordPress in the Command Line (WP_CLI) or even sometimes opening a shell and getting these random errors on your terminal. They look like the following:

				
					Deprecated: Creation of dynamic property WP_CLI\Dispatcher\Subcommand::$longdesc is deprecated in phar:///Applications/MAMP/Library/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CompositeCommand.php on line 38
PHP Deprecated: Creation of dynamic property WP_CLI\Dispatcher\Subcommand::$longdesc is deprecated in phar:///Applications/MAMP/Library/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CompositeCommand.php on line 38
				
			

The problem is not that straightforward and it may cause you to attempt to reinstall WP_CLI or even go down the rabbit hole. But no worries, here is the solution:

Simply make sure that your PHP version is not Php 8.0 or later. Why? WP CLI only supports PHP 7 at least at the moment. So if you want to get rid of those errors, you can easily use PHP 7.4.33 or any other PHP 7.x and be good to go.

If you know someone with a small business in North Carolina that would prefer not to deal with their digital marketing and website, but rather have a professional team help them with it, just let us know.

Say: "Hola" to your new clients.

Follow us on Social Media for more Tips & Tricks.

Other Posts You May Enjoy