My Drupal site is running perfectly except for one sub-module... Image import from the Image module. First I received the notorious "Fatal error: Out of memory" error. I then created a php.ini file with "php_value memory_limit 64M" but that seems to make it worse. I now receive error's and warnings:

Warning: Got a packet bigger than 'max_allowed_packet' bytes query: INSERT INTO watchdog [...] on line 128

Fatal error: Out of memory (allocated 44826624) (tried to allocate 4102318 bytes) in [...] on line 741

Warning: Cannot modify header information - headers already sent by [...] in Unknown on line 0

I have only a handful of modules installed so actually I've no idea why its out of memory in the first place. I consistently get the above when trying to import an image to make it into a node. And that is always, regardless whether it is one 40kb picture or 20 140kb.

Anyone any thoughts?

Comments

thealchemist’s picture

BTW, I have also created a my.cnf file with "[mysqld] max_allowed_packet = 16M", but that does not seem to effect anything also.

joachim’s picture

Status: Active » Closed (duplicate)

This is a duplicate of #570678: add docs for troubleshooting large imports.
Could you try the fixes there please? In particular, there's mention of my.conf rather than my.cnf.