[wp-trac] [WordPress Trac] #41973: HTTP Error when uploading images on PHP 7.1.7
WordPress Trac
noreply at wordpress.org
Thu Dec 28 12:23:48 UTC 2017
#41973: HTTP Error when uploading images on PHP 7.1.7
-------------------------------+------------------------------
Reporter: robhindle | Owner: joemcgill
Type: defect (bug) | Status: reopened
Priority: high | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by cmb42):
SOLUTION FOUND for my similar issue:
Create file called .user.ini (if it doesn’t already exist.)
Add the following lines. The second cured my issue, the first may solve
others(optional):
memory_limit = 128M
max_execution_time = 300
You can adjust the number as needed.
Place the file in the root dir for the website (same dir as
wp_config.php).
Since this seems so closely tied to plugins, and, at least WordFence adds
the .user.ini file to the env., maybe this is a big clue to the underlying
cause? I added `define( 'WP_MEMORY_LIMIT', '256M' );` to wp-config.php,
but it did nothing for this problem. Adding/changing .user.ini did fix it.
Maybe this will help others.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41973#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list