Closed jmaas-onoffice closed 1 year ago
@jmaas-onoffice I cannot reproduce error "Warning: Cannot modify header information...", but I think I know why it happened and I fixed it. If you can reproduce it, please check it out for me.
@LongTrong-exe I think the "headers already sent" might only happen if you have WP_DEBUG_DISPLAY
to true
so that it outputs the errors. (At least we had this issue already somewhere else.)
But it should be enough to focus on fixing the other errors. ;)
Current state
When trying to save an estate list, the following errors are output. The page only shows these errors and does not load correctly.
This only happens when the website is configured to output errors. For example, by installing the Query Monitor plugin which captures the error output and displays it separately, it works.
The error "Cannot modify header information" indicates that maybe the error output messes up rendering the page which makes the page load stop and leaves the incomplete page with only the error messages.
Additionally, there is the following notice when trying to create a new estate list:
Furthermore, a similar problem happens when saving a WordPress page with an estate list shortcode (this might actually happen for all pages, but I know it happens in this case). Here, the errors are:
Desired state
All warnings and errors should be fixed.