Opened 13 months ago
Closed 7 months ago
#59834 closed defect (bug) (duplicate)
While we update wordpress to version 6.4 getting wrong templates loaded
Reported by: | gregoiresailland | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | blocker | Version: | 6.4 |
Component: | General | Keywords: | reporter-feedback close |
Focuses: | template | Cc: |
Description
Exemple with woocommerce and polylang:
The cart pages is front-page.php instead of page.php
Same for checkout
Also some custom post type pages
I had no time to test more as I had to fix a live website and overrided wordpress with 6.3.2
I think also translations were reporting as 404 template
Change History (13)
#2
@
13 months ago
Hi,
I'm having the same issue on different websites with Polylang. And not just with WooCommerce cart.
Thanks!
This ticket was mentioned in Slack in #core by jorbin. View the logs.
13 months ago
#4
@
13 months ago
- Keywords reporter-feedback added
Hiya,
I wasn't able to reproduce your issue based on the information we have right now, but I do see that Polylang rolled out a fix ~2 weeks ago for some 404 issues in multisite settings, and I'm wondering if this may be related?
If not, could you share some more details about your setup that may help us replicate the problems, please, as well as information about what plugins you have installed and their versions (did you for example update Polylang at the same time, it's quite common for folks to update many things at once when a new core release is out).
#6
follow-up:
↓ 7
@
13 months ago
Hi all, I have a suspicion that the issues being reported here could be related to the same problems being reported in #59847 and something with the way Polylang calls get_stylesheet_directory()
and/or get_template_directory
is causing the wrong paths be saved to global variables prior to the theme being setup.
I would be grateful if someone can test the PR from that ticket to see if it addresses this issue as well.
#7
in reply to:
↑ 6
@
13 months ago
Replying to joemcgill:
Hi all, I have a suspicion that the issues being reported here could be related to the same problems being reported in #59847 and something with the way Polylang calls
get_stylesheet_directory()
and/orget_template_directory
is causing the wrong paths be saved to global variables prior to the theme being setup.
I would be grateful if someone can test the PR from that ticket to see if it addresses this issue as well.
Hi joemcgill. I changed the /wp-includes/theme.php file according to both ways you suggested in that thread and neither solved the problem. Still all pages run the main page template (front-page.php) and the translation pages (except the main page) return a 404 error. Downgrading the wordpress version to 6.3.2 solves the problem.
#8
@
13 months ago
I noticed another interesting thing. In my case (tested on several sites) if I restore version 6.3.2 and then re-isntal version 6.4 the problem no longer occurs.
#9
@
13 months ago
Hi @web360pl, thanks for testing this out. Can you try applying the patch of #59847, and then try flushing the Permalinks? And then check if it resolves?
#10
@
13 months ago
FYI, anything under Polylang 3.5 is not compatible with WP 6.4 due to https://github.com/polylang/polylang/pull/1345.
This ticket was mentioned in Slack in #core by jorbin. View the logs.
12 months ago
#12
@
12 months ago
- Keywords close added
- Milestone changed from Awaiting Review to Future Release
Hi @gregoiresailland, WordPress 6.4.2 included a fix for #59847 which is similar to the issue you reported. Can you confirm if this issue is still affecting you and also check to see if it still appears when you deactivate all plugins?
I'm adding the close keyword since if there is no response, the assumption will be made that this is a duplicate of #59847 and also moving it to Future Release since this has been triaged.
#13
@
7 months ago
- Milestone Future Release deleted
- Resolution set to duplicate
- Status changed from new to closed
Following up on comment:12...
As there's been no response for 5 months, closing the ticket with the assumption it's fixed and a duplicate of #59847.
However, @gregoiresailland if this problem is still happening today with WordPress 6.4.2 or newer, please feel free to reopen this ticket and provide more information such as:
Can you confirm if this issue is still affecting you and also check to see if it still appears when you deactivate all plugins?
Thank you.
Same error for me, also with the polylang plugin. Pages with the primary language display the wrong template file and pages with translations return a 404 error.