We have a WordPess theme based from Sage 9, the last major change we made for this theme was to make it run for PHP8.
After updating WordPress to 6.4.2 all other pages except the home page is displaying this generic error message that takes over the whole page.
After turning the debug log, it turns out that it was referring to the FrontPage controller and not it’s own controller based from the template name.
I think there is an issue mapping the template to its correct Controller.
I already saw this post (Sage 9 page-template not working on wordpress 6.4 - #4 by jeremylind ), but the solution doesn’t work for me or maybe I’m doing it wrong.
Home page is displaying fine and All the posts page are working ( single-***.php ), only the page templates are not working.
Have anyone tried this error and found any solution?
1 Like
evance
September 10, 2024, 10:50am
2
Currently facing the same issue – all page templates are being overwritten / ignored somehow…
I’ve also applied the proposed solution using the stylesheet_directory
-filter but to no avail.
The template hierarchy lists:
views/home.blade.php
views/home.php
resources/views/home.blade.php
resources/views/home.php
home.blade.php
home.php
views/index.blade.php
views/index.php
resources/views/index.blade.php
resources/views/index.php
index.blade.php
index.php
Curious to know whether you @petemattx found the culprit eventually? Or did you upgrade to Sage 10?
1 Like
For me the culprit was an old version of PolyLang (which we are not actively using) that was affected by that bug / issue in WordPress 6.4 update. After I deactivated the PolyLang everything works fine.
If you feel like your own code fine and was running before 6.4, maybe check your plugins and try to update it to the latest or deactivate it.
3 Likes
evance
September 10, 2024, 12:00pm
4
Thanks so much for chipping in – Polylang (Pro) was indeed the issue here…!
2 Likes