mediaopt / dhl-oxid-hub

Post & Shipping DHL Oxid Module
1 stars 1 forks source link

HTTP 500 Error #9

Open jonasendereco opened 1 month ago

jonasendereco commented 1 month ago

Right after activating the plugin, every request to the server receives a HTTP 500 Error as response.

Below is the PHP error log:

[16-Jul-2024 15:18:33 Europe/Berlin] PHP Warning:  require_once(vendor/autoload.php): Failed to open stream: No such file or directory in /html/shop/source/modules/mo/mo_dhl/bootstrap.php on line 2
[16-Jul-2024 15:18:33 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to undefined function oxTriggerOfflinePageDisplay() in /html/shop/vendor/oxid-esales/oxideshop-ce/source/Core/Exception/ExceptionHandler.php:188
Stack trace:
#0 /html/shop/vendor/oxid-esales/oxideshop-ce/source/Core/Exception/ExceptionHandler.php(141): OxidEsales\EshopCommunity\Core\Exception\ExceptionHandler->displayOfflinePage()
#1 [internal function]: OxidEsales\EshopCommunity\Core\Exception\ExceptionHandler->handleUncaughtException(Object(Error))
#2 {main}
  thrown in /html/shop/vendor/oxid-esales/oxideshop-ce/source/Core/Exception/ExceptionHandler.php on line 188
[16-Jul-2024 15:18:33 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to undefined function oxTriggerOfflinePageDisplay() in /html/shop/source/bootstrap.php:60
Stack trace:
#0 [internal function]: {closure}()
#1 {main}
  thrown in /html/shop/source/bootstrap.php on line 60
[16-Jul-2024 15:18:38 Europe/Berlin] PHP Warning:  require_once(vendor/autoload.php): Failed to open stream: No such file or directory in /html/shop/source/modules/mo/mo_dhl/bootstrap.php on line 2
[16-Jul-2024 15:18:38 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to undefined function oxTriggerOfflinePageDisplay() in /html/shop/vendor/oxid-esales/oxideshop-ce/source/Core/Exception/ExceptionHandler.php:188
Stack trace:
#0 /html/shop/vendor/oxid-esales/oxideshop-ce/source/Core/Exception/ExceptionHandler.php(141): OxidEsales\EshopCommunity\Core\Exception\ExceptionHandler->displayOfflinePage()
#1 [internal function]: OxidEsales\EshopCommunity\Core\Exception\ExceptionHandler->handleUncaughtException(Object(Error))
#2 {main}
  thrown in /html/shop/vendor/oxid-esales/oxideshop-ce/source/Core/Exception/ExceptionHandler.php on line 188
[16-Jul-2024 15:18:38 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to undefined function oxTriggerOfflinePageDisplay() in /html/shop/source/bootstrap.php:60
Stack trace:
#0 [internal function]: {closure}()
#1 {main}
  thrown in /html/shop/source/bootstrap.php on line 60

That seems to be an issue with a path?

jonasendereco commented 1 month ago

So it's definitely an issue with the relative path of the mentioned require_once as using an absolute path there solves the issue.