[wp-trac] [WordPress Trac] #39722: wp_upload_dir() causing preg_match(): null byte in regex in wp-includes\functions.php on line 5163
WordPress Trac
noreply at wordpress.org
Wed Feb 14 17:52:20 UTC 2018
#39722: wp_upload_dir() causing preg_match(): null byte in regex in wp-
includes\functions.php on line 5163
--------------------------+------------------------------
Reporter: indextwo | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.7.1
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Comment (by huemanfoo):
Hi peeps,
i had this issue just now after installing and running a plugin called
"Regenerate Thumbnails" (https://wordpress.org/plugins/regenerate-
thumbnails/)
Warning: preg_match(): Null byte in regex in functions.php on line 5219
I found that it was a permissions issue!
Navigated to the \wp-content\uploads folder and set the permissions
correctly, this seemed to get rid of the error messages at least.
Hope this helps anyone in a similar situation :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39722#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list