Closed strarsis closed 2 years ago
This issue occurs with wp i18n installed using
wp package install wp-cli/i18n-command:dev-main
.
It sounds like you're using an old version. Have you tried wp package update
?
Alternatively, uninstall the package and update to WP-CLI nightly which has the latest version of the package.
Have you tried
wp package update
?
Yes, wp package update
did something, I ran it multiple times. But the issue persists.
Alternatively, uninstall the package and update to WP-CLI nightly which has the latest version of the package.
Yes, this fixed the issue. No package uninstallation was necessary by the way. I just ran wp cli update --nightly
(as root
/sudo
) and after the successful update the same wp i18n make-pot
command worked just fine.
@swissspidy: It would be great if a new release could be published, so the fixes are also in the stable version.
@swissspidy:
Describe the current, buggy behavior
wp i18n make-pot . ./resources/lang/sage.pot --include="app,resources"
Remember to provide some context to make sure we're all on the same page when reasoning about this.
Describe how other contributors can replicate this bug
<?php
with aphp
file extension are sufficient).wp i18n make-pot . ./resources/lang/sage.pot --include=\"app,resources\"
Note the fatal error:Describe what you would expect as the correct outcome No PHP fatal errors, a
POT
file is generated from the scanned source files.Let us know what environment you are running this on
Error with PHP
8.1
:Same error with PHP
7.4
:Provide a possible solution A similar issue points to a missing PHP extension, but this extension is installed for the used PHP versions (
8.1
;7.4
): https://github.com/wp-cli/i18n-command/issues/138 This issue occurs withwp i18n
installed usingwp package install wp-cli/i18n-command:dev-main
. The issue doesn't occur when usingwp i18n
from cloned repository.