{"action":"closed","issue":{"url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1791","labels_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1791/labels{/name}","comments_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1791/comments","events_url":"https://api.github.com/repos/wp-cli/wp-cli/issues/1791/events","html_url":"https://github.com/wp-cli/wp-cli/issues/1791","id":70073174,"number":1791,"title":"memory_limit doesn't correspond to the one in /etc/php.ini","user":{"login":"DrLightman","id":4699807,"avatar_url":"https://avatars.githubusercontent.com/u/4699807?v=3","gravatar_id":"","url":"https://api.github.com/users/DrLightman","html_url":"https://github.com/DrLightman","followers_url":"https://api.github.com/users/DrLightman/followers","following_url":"https://api.github.com/users/DrLightman/following{/other_user}","gists_url":"https://api.github.com/users/DrLightman/gists{/gist_id}","starred_url":"https://api.github.com/users/DrLightman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrLightman/subscriptions","organizations_url":"https://api.github.com/users/DrLightman/orgs","repos_url":"https://api.github.com/users/DrLightman/repos","events_url":"https://api.github.com/users/DrLightman/events{/privacy}","received_events_url":"https://api.github.com/users/DrLightman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/wp-cli/wp-cli/labels/upstream-bug","name":"upstream-bug","color":"dddddd"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2015-04-22T09:32:25Z","updated_at":"2015-04-23T17:24:02Z","closed_at":"2015-04-23T17:24:02Z","body":"Hello, I'm using wp-cli to import an xml consisting of posts and relative attachments.\r\n\r\nwp import guides.xml --allow-root --user=1 --authors=create\r\n\r\nI got this on big images:\r\n\r\n> Processing post #228384 (\"Red house\") (post_type: attachment)\r\n> -- 207 of 24,413\r\n> -- Wed, 22 Apr 2015 08:13:54 +0000\r\n> PHP Fatal error:  Allowed memory size of 268435456 bytes exhausted (tried to allocate 89217 bytes) in /var/www/html/--cut--/wp-includes/class-http.php on line 1600\r\n> Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 89217 bytes) in /var/www/html/--cut--/wp-includes/class-http.php on line 1600\r\n\r\nHere it refers to a limit of 256M but it's nowhere to be found. /etc/php.ini is the config loaded for php and I set it to 512M there. Then I tried to put also in wp-config.php via define WP_MEMORY_LIMIT at 512M, but nothing.\r\n\r\nTo overcome this error I had to add --skip=image_resize and it worked, but still I'd like to know if you know why that was happening, that 256M seemed to be unchangable.\r\n\r\nThank you in advance for any help and suggestion.\r\n"}}