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

PHP message: PHP Fatal error: Uncaught TypeError #58

Open
matejslo opened this issue Mar 7, 2022 · 2 comments
Open

PHP message: PHP Fatal error: Uncaught TypeError #58

matejslo opened this issue Mar 7, 2022 · 2 comments

Comments

@matejslo
Copy link

matejslo commented Mar 7, 2022

Hi, for some reason MSP dev tools module when enabled returns HTTP ERROR 500.

I checked the NGNIX logs and I see this error:

2022/03/07 09:54:12 [error] 8929#8929: *47794 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to MSP\DevTools\Plugin\PhpEnvironment\ResponsePlugin::aroundSendContent() must be an instance of Zend\Http\PhpEnvironment\Response, instance of Magento\Framework\HTTP\Php$
Stack trace:
#0 /srv/web/myproject/vendor/magento/framework/Interception/Interceptor.php(135): MSP\DevTools\Plugin\PhpEnvironment\ResponsePlugin->aroundSendContent()
#1 /srv/web/myproject/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\HTTP\PhpEnvironment\Response\Interceptor->Magento\Framework\Interception{closure}()
#2 /srv/web/myproject/generated/code/Magento/Framework/HTTP/PhpEnvironment/Response/Interceptor.php(184): Magento\Framework\HTTP\PhpEnvironment\Response\Interceptor->___callPlugins()
#3 /srv/web/best" while reading response header from upstream, client: 89.212.50.92, server: myproject.si, request: "GET / HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.4-fpm.sock:", host: "myproject.si"

PHP 7.4.27
NGNIX 1.20.2
Magento ver. 2.4.3-p1

  1. Steps to reproduce
  2. Enable module MSP Devtools
  3. run setup:upgrade
  4. reload page in browser

Expected result

  • 500 ERROR PAGE
  • Error in ngnix logs

Actual result

  1. [Screenshot, logs]

Thank you.

@giacmir
Copy link
Contributor

giacmir commented Mar 7, 2022

Hello @matejslo,
we can't reproduce your issue on a clean Magento 2.4.3-p1 instance. Can you provide some more elements to help us?

Is this happening on a particular page? Are you using Luma or a custom theme? Do you have any 3rd party module that could interfere with our module?

@matejslo
Copy link
Author

matejslo commented Mar 8, 2022

We will try to get more info. I went to some old (aproox. 1 month) commit and the problem was gone so it must be related to some third party module or module update that we installed.

We have a custom theme, but the problem happens also on default luma theme.

I will get back to you when we have more info. We will try to find the source of the problem commit by commit.

Thank you for now.

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

No branches or pull requests

2 participants