[wp-trac] [WordPress Trac] #50717: rest_no_routes with PHP 7.3
WordPress Trac
noreply at wordpress.org
Tue Jul 21 10:12:11 UTC 2020
#50717: rest_no_routes with PHP 7.3
--------------------------+-----------------------------
Reporter: yozana | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When calling an endroute with PHP 7.3.x i get the following no_route
error.
route example (job is a custom post type)
http://localhost/libi-smart-backoffice/wp-json/api/v2/job/334
results with:
{
"code": "rest_no_route",
"message": "No route was found matching the URL and request method",
"data": {
"status": 404
}
}
The same call works well with PHP 7.1.9.
PHP error log shows:
PHP Warning: preg_match(): Compilation failed: subpattern name expected
at offset 24 in C:\wamp64\www\libi-smart-backoffice\wp-includes\rest-api
\class-wp-rest-server.php on line 897
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50717>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list