We're suddenly getting these errors in some of our page templates:
mod_fcgid: stderr: PHP Fatal error: Uncaught TypeError: call_user_func_array():
Argument #1 ($callback) must be a valid callback, function "viewport_meta"
not found or invalid function name in
/home/domain.com/wp-includes/class-wp-hook.php:308, referer: https://domain.com/en/
The wp-includes is core Wordpress, so I'm not sure what this is about. The other lines around this error log line are all about the referer, which is often the page just before this one.. it could be any page. So I wonder if the class-wp-hook.php
is somehow being called in the page template specific to this page. But there's nothing all that special in this page template that's not also in other pages that do work.
Only this one gives the dreaded
There has been a critical error on this website.
Learn more about troubleshooting WordPress.
Any pointers?
add_filter()
oradd_action()
where the second argument is'viewport_meta'
, but a function with that name doesn't exist.