Error message Deprecated: Theme without header.php is deprecated
-
Hi, We are using the WP Twenty Twenty Two theme and on the single event page we get this error message: “Deprecated: Theme without header.php is deprecated since version 3.0.0 with no alternative available. Please include a header.php template in your theme.” Same error message at the bottom for footer.php. Twenty Twenty Two is a block theme so might be due to this? I have tested with different templates under ‘Select Events Page Template’, but same result. Any suggested solution or work around? https://nyweb.vkrk.se/kalender/ridtavling-extern/ Thanks
-
Hello,
I am going to contact Ashan about this issue. He’ll get back to you ASAP.Thank you very much for reporting this to us. This is basically caused by the new block based themes which no longer support header.php and footer.php because they render direct html.
We are working on finding a solution that will allow event single page. Will release a new version as soon as we can resolve this!
Thanks, so for now it won’t help if we buy the Pro version? Maybe you can solve it by creating a shortcode for Single event page as well? Then you could potentially add this to a page and in the plugins settings choose this page as the Single Event pages “template”. This way you could potentially also add blocks before or after the shortcode if you want to display additional blocks.
Pls post here if possible when you have found a solution. 👍EventON Lite already has Single Event shortcode:
[add_single_eventon id=”EVENT_ID”]
Thanks, but this does not work if you click an event in a list view for example?
We need of course to all event pages to work.Please wait for a solution from Ashan.
Please also note that you can hide warnings by following https://docs.myeventon.com/documentations/how-to-debug-for-php-code-errors/
Just add define(‘WP_DEBUG_DISPLAY’, false); to wp-config.php.
Hi, any update on this please? We hade hidden the error message but we have no header or footer including having no menu of course.
ThanksHello,
Unfortunately, we are still working on fixing this.Hi, any update? The plugin works for the other views so only the Single Post/Event page. Would very much appreciete a soulution for this. Thanks
No updates on this one, I am afraid.
Hi so with version 2.0 you should not get those errors. We are still working on adding full Block theme support.
Thanks, although still get the error message on my site running 2022 Theme:
https://nyweb.vkrk.se/kalender/ridtavling/The link redirects to 404 error page. Could you check?
Strange, I see this page:
https://drive.google.com/file/d/1oHQFxYeiiTW5Hj9HdOjsszy0Cm_Sdcrd/view?usp=share_link
The topic ‘Error message Deprecated: Theme without header.php is deprecated’ is closed to new replies.