Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP 500 Error #9

Closed
jonasendereco opened this issue Jul 16, 2024 · 2 comments · Fixed by #14
Closed

HTTP 500 Error #9

jonasendereco opened this issue Jul 16, 2024 · 2 comments · Fixed by #14

Comments

@jonasendereco
Copy link

jonasendereco commented Jul 16, 2024

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
Copy link
Author

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

@tabsl
Copy link

tabsl commented Oct 20, 2024

same problem oxid ce 6.5.4 module version 1.8.0 after activating

[20 Oct 17:12:38.175617 2024] [uncaught error] [type E_ERROR] [file /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Core/Exception/ExceptionHandler.php] [line 188] [code ] [message Uncaught Error: Call to undefined function oxTriggerOfflinePageDisplay() in /var/www/html/vendor/oxid-esales/oxideshop-ce/source/Core/Exception/ExceptionHandler.php:188 Stack trace: #0 /var/www/html/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]

@mbe1987 mbe1987 linked a pull request Dec 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants