500 Error on front-end posts when Admin Toolbar is enabled
-
Hi,
I am encountering a reproducible HTTP 500 fatal error on my site’s front-end posts when logged in as an admin.
Here are the details:
- Environment: WordPress 7.1.2, latest WP Recipe Maker, and LiteSpeed Cache active on a LiteSpeed server.
- Issue: Loading any front-end post while logged in with “Show Toolbar when viewing site” enabled triggers an HTTP 500 error.
- Diagnostic Findings:
- Turning off “Show Toolbar when viewing site” immediately resolves the 500 error.
- Disabling LiteSpeed Cache allows the site and admin toolbar to load normally.
- Disabling WP Recipe Maker while keeping LiteSpeed Cache active also allows the site and admin toolbar to load normally.
- With WP Debugging enabled, a notice is thrown:
Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wp-recipe-maker domain was triggered too early...
It appears WP Recipe Maker’s early textdomain/translation hook during toolbar initialization collides with LiteSpeed Cache’s admin bar handling on the front end, leading to a fatal PHP execution crash.
Could you please look into updating the hook sequence or translation loading timing so it doesn’t conflict with LiteSpeed Cache when rendering the front-end admin bar?
Thank you!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.