• My plugin (Postie) calls wp_generate_attachment_metadata() after adding a image with wp_insert_attachment(). In some cases the function call never returns. No error is thrown, no error in the logs. It is as if PHP terminated the page. My assumption is that something ran out of memory. It would be nice to at least get an error message.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Do you have wp-Debug switched on ? I always develop with all php errors, infos and notices switched on.

    That way you pretty much always get told something.

    Thread Starter Wayne Allen

    (@wayneallen-1)

    Yes I do. In this case the php script just stops. I haven’t debugged through the function itself, but the function never returns, no exception is thrown, no message is displayed or logged.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_generate_attachment_metadata crashing’ is closed to new replies.