You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clicking the Preview button either from the main post screen or the Quick Reply box results in an error. If you do it from the main post screen, it just sits there saying "Fetching preview...". If you do it from the Quick Reply box you get an XML Parse Error message in the browser (at least in Firefox)
Steps to reproduce
Start a new post or a reply to an existing one
Click the "Preview" button
Expected result
A preview of your post is displayed
Actual result
XML Parsing Error if using Quick Reply (at least in Firefox) or "Fetching preview..." instead of the preview, with errors in console
Doing some more digging on this, if you change the GetOuputType method in Sources/Actions/Post2.php to always return an HTML output type, preview works from the quick reply, but the same issue still occurs when previewing from the post screen.
In addition to previews, anything that loads a list of members via AJAX is broken - mentions, sending PMs, adding a member as a moderator of a group... Same issue - XML parsing error. The browser's being told to expect XML but is getting HTML instead.
This was a bear to deal with. The fundamental issue was that #8395 introduced a situation where we were trying to check the properties of the current action object before that object had been instantiated.
Anyway, I've added fixes for this to #8427, because the fixes for this need to build on the other fixes already in that PR.
Basic Information
Clicking the Preview button either from the main post screen or the Quick Reply box results in an error. If you do it from the main post screen, it just sits there saying "Fetching preview...". If you do it from the Quick Reply box you get an XML Parse Error message in the browser (at least in Firefox)
Steps to reproduce
Expected result
A preview of your post is displayed
Actual result
XML Parsing Error if using Quick Reply (at least in Firefox) or "Fetching preview..." instead of the preview, with errors in console
Version/Git revision
4e54200
Database Engine
All
Database Version
No response
PHP Version
8.3.4
Logs
Additional Information
Firefox error:

Chrome error:

Tested both locally and on a couple boards on my server. Same result.
The text was updated successfully, but these errors were encountered: