Rest Routes Pro Causing Critical Error
-
I’m getting a critical error and my server is logging the following:
`2022/05/14 18:58:35 [error] 24289#24289: *47846 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: Argument 2 passed to RestRoutes\Hooks\REST\Actions\DisplayData\Parser\Output::buildTermFields() must be of the type array, string given, called in <PATH REMOVED BY AUTHOR>/rest-routes-pro/includes/Hooks/REST/Actions/DisplayData/Parser/Output.php on line 164 and defined in <PATH REMOVED BY AUTHOR>/rest-routes-pro/includes/Hooks/REST/Actions/DisplayData/Parser/Output.php:198
Stack trace:
#0 <PATH REMOVED BY AUTHOR>/rest-routes-pro/includes/Hooks/REST/Actions/DisplayData/Parser/Output.php(164): RestRoutes\Hooks\REST\Actions\DisplayData\Parser\Output->buildTermFields(Array, ”, Object(WP_Term))
#1 <PATH REMOVED BY AUTHOR>/rest-routes-pro/includes/Hooks/REST/Actions/DisplayData/Parser/Output.php(50): RestRoutes\Hooks\REST\Actions\DisplayData\Parser\Output->buildTaxonomies(Array, Array, 44305, ”)I can temporarily solve the issue by removing taxonomy term fields from the output, but please advise if this is something we can fix.
The topic ‘Rest Routes Pro Causing Critical Error’ is closed to new replies.