Cheap Web Space, Domain Name:
Web Space With E-Mail, PHP/MySQL.

What does "Uncaught TypeError: Argument 1 passed to WP_CLI \ Runner :: WP_CLI" mean?

Question: 

Searching …

 

Unfortunately nothing found on "".

Premium support for Bitpalace web hosting customers only!

 from the Federated States of Micronesia: +49 30 32 70 18 92, Fax (in Germany) +49 30 32 70 18 91

service@bitpalast.net 

Skype: bitpalast

One moment please … your browser is loading the page.

 

 

Symptom

In the Wordpress Toolkit of your Web space control center, you see the following error message:

PHP Fatal error: Uncaught TypeError: Argument 1 passed to WP_CLI\Runner::WP_CLI\{closure}() must be an instance of Exception, instance of ParseError given in /usr/local/psa/admin/plib/modules/wp-toolkit/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php:1682 …

If you open the wp-config.php file of your Wordpress website in a Linux editor (for example vi, vim), you will see the string "" at the beginning of the file. If you open the same file with a text editor such as the Windows Notepad or view it with the Linux "less" command, you will not see these characters.

 

Cause

You have edited the wp-config.php file of your website. Due to a character set inconsistency, an "invisible" UTF8 character has been written to the beginning of the file. The Wordpress Toolkit no longer recognizes the file as a valid wp-config.php file.

 

Solution

The character cannot be removed by editing with a standard Linux editor like "vi". The correct solution is to filter the erroneous UTF8 characters from the file, e.g. with the scripting language "awk". This can be done, for example, with this command sequence on the Linux command line:

awk '{ if (NR==1) sub(/^\xef\xbb\xbf/,""); print }' wp-config.php > wp-config_new.php
cp wp-config_new.php wp_config.php

After the corrupted wp-config.php file has been replaced with the corrected one, update the website entry in the Wordpress Toolkit in the webspace control panel.

However, in Bitpalace ValueWebspace and Bitpalace Business Booster, you cannot run this command yourself. Please contact our support so that your file will be corrected for you free of charge.

 

Overview of frequently asked questions 

 

 

 


 

  from the Federated States of Micronesia: +49 30 32 70 18 92 •  GmbH, Sensburger Allee 27, D-14055 Berlin (Germany)
Your purchase is tax-free, because you order from a non-EU country. © 2024  GmbH. All rights reserved. and the logo are registered trademarks of GmbH. For photo credits see imprint.

Imprint Privacy policy Sitemap