Apologies - I posted this in the general PHP help area but it would probably be more suitable here (I posted as a guest there so I’m not sure if I can delete the original thread).
Hello all,
I’m a complete newcomer to PHP so forgive me if this isn’t even a PHP-caused problem.
We use a custom theme on our Wordpress site built by a design agency. We recently changed our web hosting provider and roughly (but not necessarily exactly) around the same time we started seeing a PHP error message at the top of our Wordpress dashboard.
The usual error message is as follows:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'admin_init' not found or invalid function name in /homepages/31/d575245533/htdocs/data-broker.co.uk/wp-includes/plugin.php on line 503
We have severely reduced functionality on our dashboard. We’re unable to search, see content or update pages. When we try, we see a blank page with the following error messages:
Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'admin_init' not found or invalid function name in /homepages/31/d575245533/htdocs/data-broker.co.uk/wp-includes/plugin.php on line 503Warning: Cannot modify header information - headers already sent by (output started at /homepages/31/d575245533/htdocs/data-broker.co.uk/wp-includes/plugin.php:503) in /homepages/31/d575245533/htdocs/data-broker.co.uk/wp-includes/pluggable.php on line 1207
Warning: Cannot modify header information - headers already sent by (output started at /homepages/31/d575245533/htdocs/data-broker.co.uk/wp-includes/plugin.php:503) in /homepages/31/d575245533/htdocs/data-broker.co.uk/wp-includes/pluggable.php on line 1207
It appears to be a problem with a PHP file relating to plugins. I’ve tried disabling all plugins one by one and even with all plugins disabled it makes no difference.
I’ve contacted the agency who built the theme and they sent the following response:
We've had a quick look into this and it appears to be a server issue. Wordpress was functioning normally when it was on our server - it looks as though your new server has error reporting set to a different level and is causing the admin system to malfunction on a non-fatal error.The site is also using a lot of plugins, this can cause conflicts and errors as they are all built by different people - we’d recommend switching the plugins off one by one and seeing if any of them are causing the issue
I’m not sure whether to pursue the issue as a hosting-based problem, a plugin-based problem or a simple PHP error.
As I say, I’m a newcomer to PHP and an amateur at coding so this goes way above my head.
I’m hoping somebody could help me troubleshoot the problem or direct me to where I could fix it.
Also, our version of Wordpress, our database, and all plugins are up to date to latest versions.