Uploading images to Media Library fails with Memory Exhausted
A few things Use media_handle_sideload so that WordPress moves the files to the right location and validates them for you, creates the attachment post etc, none of this manual stuff Don’t run this once and expect it to do everything. You’re just going to run into the same problem but further into the import. If … Read more