Closed danielschwab closed 9 months ago
Can you test the slug_fixes branch?
This solved the problem for another user: https://github.com/qtranslate/qtranslate-xt/pull/1363#issuecomment-1728086555
@danielschwab patch merged in master. Can you test it from there to confirm this closes the issue for you?
Describe the bug Previewing a draft post throws error. Tested with a custom post type (name: project, languages: de (projekt), en (project)).
`Stack trace:
0 /home/webi4se86/html/wp-content/plugins/qtranslate-xt/src/modules/slugs/slugs.php(438): QTX_Module_Slugs->get_page_by_path(NULL, 'project')
1 /home/webi4se86/html/wp-includes/class-wp-hook.php(308): QTX_Module_Slugs->filter_request(Array)
2 /home/webi4se86/html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
3 /home/webi4se86/html/wp-includes/class-wp.php(390): apply_filters('request', Array)
4 /home/webi4se86/html/wp-includes/class-wp.php(780): WP->parse_request('')
5 /home/webi4se86/html/wp-includes/functions.php(1334): WP->main('')
6 /home/webi4se86/html/wp-blog-header.php(16): wp()
7 /home/webi4se86/html/index.php(17): require('/home/webi4se86...')
8 {main}
thrown in /home/webi4se86/html/wp-content/plugins/qtranslate-xt/src/modules/slugs/slugs.php on line 1039`
To Reproduce
Expected behavior The post should be shown.
Debug info Versions
Configuration
Browser