WP 5.1 throws fatal error when calling hook() function
-
I am using a custom, non-WP-native theme called News Station, from Flexithemes.
That is why I am posting here, rather than on any “theme’s page.” WordPress does not maintain pages on themes that organizations other than WordPress built. Nor would I expect such service. In fact I have also left a message with FlexiThemes support, just to cover that base. Nevertheless, you should know what’s happening and how your upgrade broke my theme, in case it breaks anyone else’s custom theme.
When I upgraded to WP 5.1, and after carefully updating my theme to its current version, I got a fatal error on this line in the header.php file for my theme:
<?php $theme->hook(‘meta’); ?>
The error message spoke of calling the hook() function with a null, or something like that.
Happily, I had available to me (horrors!) a plugin called Downgrade. I used that to set a permanent target of WP 5.0.3. That is compatible.
I am using PHP 5.6, the current stable version. I have available to me PHP 7.0 and 7.1 (the “Edge” version).
Why is WP 5.1 breaking my theme at this line in the header file?
Please do not suggest that I “comment it out.” When I do that, nothing loads, and I don’t even get an error message to tell me what’s wrong.
Maybe I’m one of the few people in this forum who at least can fall back on an earlier version of the program.
I would appreciate any insight you have, especially anything I can pass along to FlexiThemes if it’s anything they can fix.
- The topic ‘WP 5.1 throws fatal error when calling hook() function’ is closed to new replies.