WBCE / WBCE_CMS

Core package of WBCE CMS. This package includes the core and the default addons. Visit https://wbce.org (DE) or https://wbce-cms.org (EN) to learn more or to join the WBCE CMS community.
https://wbce-cms.org
GNU General Public License v2.0
32 stars 22 forks source link

OPF unable to actually detect errors within filters #506

Closed Atlasfreak closed 3 years ago

Atlasfreak commented 3 years ago

When outputfilters are applied there is a fail-safe that should restore the content in case anything went wrong but the filters can't fail as they only return true not matter what happend. This can cause entire pages to be unable to be loaded. grafik From wbce/modules/outputfilter_dashboard/functions.php line 1257 following. You can clearly see the fail-safe. grafik From wbce/modules/mod_opf_auto_placeholder/filter.php line 31 following. The filter is only able to return true even if the filter actually failed and deleted the content.

A possible fix wbce/modules/outputfilter_dashboard/functions.php line 1260: grafik

I am not sure how big this issue is with other filters.

If you want to easily replicate this problem I would advise installing the Fraggy Backend Theme v2.6.1 and adding a lot of pages. I have around 380 and get this issue when visting the pages overview.