Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install error #9

Open
JayHoltslander opened this issue Mar 28, 2018 · 3 comments
Open

Install error #9

JayHoltslander opened this issue Mar 28, 2018 · 3 comments

Comments

@JayHoltslander
Copy link

JayHoltslander commented Mar 28, 2018

Running the install command: wp package install trepmal/wp-revisions-cli (WP-CLI 1.5.0)

Results in:

Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16777224 bytes) in phar:///opt/sp/bin/wp-cli.phar/vendor/composer/composer/src/Composer/DependencyResolver/RuleSet.php on line 83
Reverted composer.json.
@joejordanbrown
Copy link

@JayHoltslander

If you run into a PHP fatal error relating to memory when running wp package install, you’re likely running out of memory.

WP-CLI uses Composer under the hood to manage WP-CLI packages. However, Composer is a bit of a memory hog, so you’ll need to increase your memory limit to accommodate it.

https://make.wordpress.org/cli/handbook/common-issues/#php-fatal-error-allowed-memory-size-of-999999-bytes-exhausted-tried-to-allocate-99-bytes

@JayHoltslander
Copy link
Author

Trying to recall if I was trying to install on my local machine (16GB) or on a webserver (2GB). 🤔

@joejordanbrown
Copy link

@JayHoltslander

Even the server with 2GB is enough, it's just that your default PHP memory limit will be a lot lower than the machines maximum, yours was set to 256 MB from the error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants