Exception, wenn die RSS Feeds nicht aktiviert sind

Hallo zusammen,

bei einem Kunden (OXID 6.0.2 PE) haben wir festgestellt, dass die Exception Log Datei sehr schnell wächst.
Folgendes taucht sehr oft in der Log Datei auf:
/htdocs/oxid60/vendor/oxid-esales/oxideshop-ce/source/Core/UtilsObject.php] [line 231] [message ERROR_MESSAGE_SYSTEMCOMPONENT_FUNCTIONNOTFOUND catarts]

Nach ein bisschen forschen habe ich mal den RSS-Feed für die Kategorien aktiviert, und siehe da: Der Fehler taucht nicht mehr auf.

Jetzt nur noch mit anderen Feeds. (z.B. neue Artikel)

Das gleiche können wir so auch in einem frisch installierten 6.0.2 CE Shop nachstellen.

Wäre es nicht sinvoller, einen 404 Error zurückzugeben, anstatt zur Startseite umzuleiten, und eine Exception zu schmeißen?

Gruß,
Fabian

Hallo Fabian,

man kann die RSS-Feeds ja an- und ausknipsen wie es einem beliebt. Insofern finde ich ein 302 schon angebracht (ja - kann man sehen wie man will, alles Schlangenöl :smiley:).

Gruß
Marco

Hallo,

die EXCEPTION_LOG wächst leider schon innerhalb einer Woche auf 50 MB an, weil irgendein Crawler versucht, die RSS auszulesen. Das macht es dann schwierig, andere Fehler zu finden, die sich darin verstecken. Man könnte den Crawler jetzt natürlich sperren… :wink:

Die Umleitung findet zwar per 302 statt. In der EXCEPTION_LOG steht aber, dass versucht wird, den 404 Handler anzusprechen. Der reagiert scheinbar nicht.

So sieht die Exception aus:

[type OxidEsales\Eshop\Core\Exception\SystemComponentException] [code 0] [file /home/www/oxid/ce/6.0.0-stable/vendor/oxid-esales/oxideshop-ce/source/Core/UtilsObject.php] [line 231] [message ERROR_MESSAGE_SYSTEMCOMPONENT_FUNCTIONNOTFOUND catarts]
[stacktrace] #0 [internal function]: OxidEsales\EshopCommunity\Core\UtilsObject->oxNew('OxidEsales\\Esho...')
[stacktrace] #1 /home/www/oxid/ce/6.0.0-stable/source/oxfunctions.php(101): call_user_func_array(Array, Array)
[stacktrace] #2 /home/www/oxid/ce/6.0.0-stable/vendor/oxid-esales/oxideshop-ce/source/Core/Controller/BaseController.php(533): oxNew('OxidEsales\\Esho...')
[stacktrace] #3 /home/www/oxid/ce/6.0.0-stable/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(332): OxidEsales\EshopCommunity\Core\Controller\BaseController->executeFunction('catarts')
[stacktrace] #4 /home/www/oxid/ce/6.0.0-stable/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(274): OxidEsales\EshopCommunity\Core\ShopControl->executeAction(Object(OxidEsales\Eshop\Application\Component\Widget\CookieNote), 'catarts')
[stacktrace] #5 /home/www/oxid/ce/6.0.0-stable/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(137): OxidEsales\EshopCommunity\Core\ShopControl->_process('OxidEsales\\Esho...', 'catarts', Array, Array)
[stacktrace] #6 /home/www/oxid/ce/6.0.0-stable/vendor/oxid-esales/oxideshop-ce/source/Core/WidgetControl.php(62): OxidEsales\EshopCommunity\Core\ShopControl->start('oxwcookienote', NULL, Array, Array)
[stacktrace] #7 /home/www/oxid/ce/6.0.0-stable/vendor/oxid-esales/oxideshop-ce/source/Core/Smarty/Plugin/function.oxid_include_widget.php(31): OxidEsales\EshopCommunity\Core\WidgetControl->start('oxwcookienote', NULL, Array, Array)
[stacktrace] #8 /home/www/oxid/ce/6.0.0-stable/source/tmp/smarty/32650ca924e12ce83b2c732851f7cfcf^%%93^93D^93D6031B%%header.tpl.php(6): smarty_function_oxid_include_widget(Array, Object(Smarty))
[stacktrace] #9 /home/www/oxid/ce/6.0.0-stable/vendor/smarty/smarty/libs/Smarty.class.php(1876): include('/home/www/oxid/...')
[stacktrace] #10 /home/www/oxid/ce/6.0.0-stable/source/tmp/smarty/32650ca924e12ce83b2c732851f7cfcf^%%36^366^366ECF91%%page.tpl.php(16): Smarty->_smarty_include(Array)
[stacktrace] #11 /home/www/oxid/ce/6.0.0-stable/vendor/smarty/smarty/libs/Smarty.class.php(1876): include('/home/www/oxid/...')
[stacktrace] #12 /home/www/oxid/ce/6.0.0-stable/source/tmp/smarty/32650ca924e12ce83b2c732851f7cfcf^%%DA^DA0^DA07DFA9%%err_404.tpl.php(56): Smarty->_smarty_include(Array)
[stacktrace] #13 /home/www/oxid/ce/6.0.0-stable/vendor/smarty/smarty/libs/Smarty.class.php(1270): include('/home/www/oxid/...')
[stacktrace] #14 /home/www/oxid/ce/6.0.0-stable/vendor/oxid-esales/oxideshop-ce/source/Core/UtilsView.php(97): Smarty->fetch('message/err_404...')
[stacktrace] #15 /home/www/oxid/ce/6.0.0-stable/vendor/oxid-esales/oxideshop-ce/source/Core/Utils.php(1445): OxidEsales\EshopCommunity\Core\UtilsView->getTemplateOutput('message/err_404...', Object(OxidEsales\Eshop\Application\Controller\FrontendController))
[stacktrace] #16 /home/www/oxid/ce/6.0.0-stable/source/overridablefunctions.php(60): OxidEsales\EshopCommunity\Core\Utils->handlePageNotFoundError('')
[stacktrace] #17 /home/www/oxid/ce/6.0.0-stable/vendor/oxid-esales/oxideshop-ce/source/Application/Controller/RssController.php(145): error_404_handler()
[stacktrace] #18 /home/www/oxid/ce/6.0.0-stable/vendor/oxid-esales/oxideshop-ce/source/Core/Controller/BaseController.php(523): OxidEsales\EshopCommunity\Application\Controller\RssController->catarts()
[stacktrace] #19 /home/www/oxid/ce/6.0.0-stable/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(332): OxidEsales\EshopCommunity\Core\Controller\BaseController->executeFunction('catarts')
[stacktrace] #20 /home/www/oxid/ce/6.0.0-stable/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(274): OxidEsales\EshopCommunity\Core\ShopControl->executeAction(Object(OxidEsales\Eshop\Application\Controller\RssController), 'catarts')
[stacktrace] #21 /home/www/oxid/ce/6.0.0-stable/vendor/oxid-esales/oxideshop-ce/source/Core/ShopControl.php(137): OxidEsales\EshopCommunity\Core\ShopControl->_process('OxidEsales\\Esho...', 'catarts', NULL, NULL)
[stacktrace] #22 /home/www/oxid/ce/6.0.0-stable/vendor/oxid-esales/oxideshop-ce/source/Core/Oxid.php(26): OxidEsales\EshopCommunity\Core\ShopControl->start()
[stacktrace] #23 /home/www/oxid/ce/6.0.0-stable/source/index.php(15): OxidEsales\EshopCommunity\Core\Oxid::run()
[stacktrace] #24 {main}

Gruß,
Christian

1 Like

Hallo Christian,

Das wäre dann wohl einen Bugeintrag wert - oder besser noch einen Pull Request, falls möglich.

Danke und Gruß
Marco

Hallo Marco,

hier der Bugeintrag: https://bugs.oxid-esales.com/view.php?id=6847 :slight_smile:

Gruß,
Fabian

1 Like

Hallo zusammen,
gibt es mittlerweile eine Lösung dafür, so dass die Log Datei nicht permanent diesen Error loggt ?

Liebe Grüße,