creativecommons / creativecommons/vocabulary-theme

the `wp cli i18n` command encounters errors when trying to manipulate files

Open
#186 1 comment 0 reactions 1 assignee Claimed by @possumbilities View on GitHub
🏁 status: ready for work 💻 aspect: code 🛠 goal: fix 🟧 priority: high
Dominant language
PHP
Stars
6
Forks
7
Avg merge
1d 8m
Merged PRs (30d)
6

Description

## Description

When attempting to generate a `.pot` file from a file or theme the `wpcli i18n` command encounters errors.

### First Round

Initially the error encountered was due to PHP memory being exhausted.

`wpcli i18n make-pot . `
`````
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/wp/vendor/mck89/peast/lib/Peast/Syntax/CommentsRegistry.php on line 172
`````

The assumption is that there may be something amiss with the command argument flags being absent or incorrect OR the `docker-compose.yml` configuration, or possibly both.

## Reproduction

1. run command `wpcli i18n make-pot . `
2. See error.

## Expectation

the `i18n` command should work as documented and allow the generation of a `.pot1` file.

## Resolution

- [x] I would be interested in resolving this bug.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.