onOffice-Web-Org / oo-wp-plugin

onOffice for WP-Websites
https://wp-plugin.onoffice.com
GNU General Public License v3.0
9 stars 9 forks source link

Disabled fields in onOffice enterprise causing errors #966

Open fredericalpers opened 20 hours ago

fredericalpers commented 20 hours ago

Disabled fields in onOffice enterprise causing errors

User Story

In the current implementation of the enterprise plugin, when a field such as regionaler_zusatz is deactivated in the configuration but is still referenced in a search query, the system does not skip the deactivated field. Instead, the system throws an error, causing unnecessary disruptions and potential failures in search functionality.

To ensure the system behaves predictably and robustly, all deactivated fields listed in the query should be gracefully ignored without impacting the overall execution of the search query.

Error message

[onOffice-Plugin] Ein Fehler ist aufgetreten: onOffice\WPlugin\Field\UnknownFieldException in /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-content/plugins/onoffice-for-wp-websites/plugin/Fieldnames.php:311 Stack trace: #0 /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-content/plugins/onoffice-for-wp-websites/plugin/Fieldnames.php(292): onOffice\WPlugin\Fieldnames->getRow('estate', 'regionaler_zusa...') #1 /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-content/plugins/onoffice-for-wp-websites/plugin/Controller/InputVariableReaderConfigFieldnames.php(86): onOffice\WPlugin\Fieldnames->getFieldInformation('regionaler_zusa...', 'estate') #2 /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-content/plugins/onoffice-for-wp-websites/plugin/Controller/InputVariableReader.php(168): onOffice\WPlugin\Controller\InputVariableReaderConfigFieldnames->getFieldType('regionaler_zusa...', 'estate') #3 /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-content/plugins/onoffice-for-wp-websites/plugin/Controller/InputVariableReader.php(63): onOffice\WPlugin\Controller\InputVariableReader->getFieldType('regionaler_zusa...') #4 /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-content/plugins/onoffice-for-wp-websites/plugin/Filter/DefaultFilterBuilderListView.php(139): onOffice\WPlugin\Controller\InputVariableReader->getFieldValue('regionaler_zusa...') #5 /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-content/plugins/onoffice-for-wp-websites/plugin/Filter/DefaultFilterBuilderListView.php(102): onOffice\WPlugin\Filter\DefaultFilterBuilderListView->addSubRegionFilter(Array) #6 /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-content/plugins/onoffice-for-wp-websites/plugin/EstateList.php(453): onOffice\WPlugin\Filter\DefaultFilterBuilderListView->buildFilter() #7 /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-content/plugins/onoffice-for-wp-websites/plugin/EstateList.php(220): onOffice\WPlugin\EstateList->getEstateParameters(1, true) #8 /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-content/plugins/onoffice-for-wp-websites/plugin/EstateList.php(191): onOffice\WPlugin\EstateList->loadRecords(1) #9 /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-content/plugins/onoffice-for-wp-websites/plugin/Controller/ContentFilter/ContentFilterShortCodeEstateList.php(138): onOffice\WPlugin\EstateList->loadEstates(1) #10 /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-content/plugins/onoffice-for-wp-websites/plugin/Controller/ContentFilter/ContentFilterShortCodeEstate.php(95): onOffice\WPlugin\Controller\ContentFilter\ContentFilterShortCodeEstateList->render(Array) #11 /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-content/plugins/onoffice-for-wp-websites/plugin/Controller/ContentFilter/ContentFilterShortCodeEstate.php(69): onOffice\WPlugin\Controller\ContentFilter\ContentFilterShortCodeEstate->buildReplacementString(Array) #12 /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-content/plugins/onoffice-for-wp-websites/plugin/Controller/ContentFilter/ContentFilterShortCodeRegistrator.php(59): onOffice\WPlugin\Controller\ContentFilter\ContentFilterShortCodeEstate->replaceShortCodes(Array) #13 /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-includes/shortcodes.php(434): onOffice\WPlugin\Controller\ContentFilter\ContentFilterShortCodeRegistrator->onOffice\WPlugin\Controller\ContentFilter\{closure}(Array, '', 'oo_estate') #14 [internal function]: do_shortcode_tag(Array) #15 /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-includes/shortcodes.php(273): preg_replace_callback('/\\[(\\[?)(oo_est...', 'do_shortcode_ta...', '[oo_estate view...') #16 /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-includes/class-wp-hook.php(324): do_shortcode('[oo_estate view...') #17 /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters('[oo_estate view...', Array) #18 /www/htdocs/w01dbd85/testinstanz-fal.onofficeweb.com/htdocs/wp-includes/post-template.php(256): apply_filters('the_content', '