andreascreten/wp-cli — Issue #58: Fatal error in older wp version.
Author: johnraz
Created: 2012-01-16 10:51:02+00:00
State: open

Hello,

I've been facing various memory exhausted errors in older version of wp while using wp-cli.

It occurs just by using wp help command.

So far I've had the bug with a 2.9 and a 3.2.1 release.

Here are the stack traces:

2.9:
PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 311296 bytes) in /home/xxxx/xxxxx/wp-cli/src/php/wp-cli/commands/internals/export.php on line 454
PHP Stack trace:
PHP 1. {main}() /home/xxxx/xxxxxx/wp-cli/src/php/wp-cli/wp-cli.php:0

3.2.1:
PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 39 bytes) in /home/xxxxx/www/xxxxxxx/wp-includes/pomo/mo.php on line 172
PHP Stack trace:
PHP 1. {main}() /home/xxxx/xxxxx/wp-cli/src/php/wp-cli/wp-cli.php:0
PHP 2. require_once() /home/xxxx/xxxxx/wp-cli/src/php/wp-cli/wp-cli.php:69
PHP 3. require_once() /home/xxxxx/www/xxxxxxx/wp-load.php:29
PHP 4. require_once() /home/xxxxx/www/xxxxxxx/wp-config.php:93
PHP 5. do_action() /home/xxxxx/www/xxxxxxx/wp-settings.php:302
PHP 6. call_user_func_array() /home/xxxxx/www/xxxxxxx/wp-includes/plugin.php:405
PHP 7. RGForms::init() /home/xxxxx/www/xxxxxxx/wp-includes/plugin.php:405
PHP 8. load_plugin_textdomain() /home/xxxxx/www/xxxxxxx/wp-content/plugins/gravityforms/gravityforms.php:85
PHP 9. load_textdomain() /home/xxxxx/www/xxxxxxx/wp-includes/l10n.php:416
PHP 10. MO->import_from_file() /home/xxxxx/www/xxxxxxx/wp-includes/l10n.php:337
PHP 11. MO->import_from_reader() /home/xxxxx/www/xxxxxxx/wp-includes/pomo/mo.php:27
PHP 12. unpack() /home/xxxxx/www/xxxxxxx/wp-includes/pomo/mo.php:172

I'm runing ubuntu with latest debian package of php5.

Let me know if you need any more details.