wp-composer icon indicating copy to clipboard operation
wp-composer copied to clipboard

No write permission

Open szepeviktor opened this issue 7 years ago • 3 comments

Without write permission composer.json is not created and there is no error message.

szepeviktor avatar Oct 23 '17 19:10 szepeviktor

I am not sure, I get out-of-memory error:

mmap() failed: [12] Cannot allocate memory
PHP Fatal error:  Out of memory (allocated 1587552256) (tried to allocate 20480 bytes) in phar:///usr/local/bin/wp/php/WP_CLI/Dispatcher/Subcommand.php on line 39
Fatal error: Out of memory (allocated 1587552256) (tried to allocate 20480 bytes) in phar:///usr/local/bin/wp/php/WP_CLI/Dispatcher/Subcommand.php on line 39

szepeviktor avatar Oct 23 '17 20:10 szepeviktor

@szepeviktor thanks for letting me know. I should add a note about the plugin needing write permission to the filesystem. Maybe saving the composer.json to the options table wouldn't be a bad idea. Do you think that would be a good solution?

rxnlabs avatar Dec 11 '17 19:12 rxnlabs

I think a warning message is enough.

szepeviktor avatar Dec 11 '17 19:12 szepeviktor