Git Product home page Git Product logo

Comments (11)

rakibabu avatar rakibabu commented on September 25, 2024

Hi @andrewsurrey ,

Thanks for the feedback. This error only occurs when performing backend actions in magento 2?

from magento2-sentry.

andrewsurrey avatar andrewsurrey commented on September 25, 2024

from magento2-sentry.

rakibabu avatar rakibabu commented on September 25, 2024

Ok thanks, I'll try to reproduce this issue on 2.2.5 & 2.2.6 within 2 weeks.

from magento2-sentry.

rakibabu avatar rakibabu commented on September 25, 2024

Hi @andrewsurrey ,

I don't really can reproduce your issue. But I think this will resolve your issue. Here is why I think it's solved:

When setting an App state in a construct function there's a possibility there are random errors when monolog wants to send a message. So I refactored the first call to of the extension in the helper method isActive with the App state call and removed the setAppState in the construct function.

Happy to hear from you!

from magento2-sentry.

rliukshyn avatar rliukshyn commented on September 25, 2024

@rakibabu , please follow these steps to reproduce issue:

  1. php bin/magento setup:upgrade
  2. php bin/magento setup:di:compile
  3. FLUSH CACHE
  4. Reload page on storefront

in my case it is magento 2.2.6 in default mode

from magento2-sentry.

kyriog avatar kyriog commented on September 25, 2024

I can confirm I had the same problem on my M2.2.6 instance.
Configured in default mode.

It seems it occurs when we try to reference \Psr\Log\LoggerInterface (even in commented code!).

I tried to move to your last commit 4a815b5, and the problem is now gone.

Edit: mb, I was in default mode, not in developer mode.

from magento2-sentry.

kyriog avatar kyriog commented on September 25, 2024

Edit, with your last commit, I can't edit an admin role.

from magento2-sentry.

awilsonCurt avatar awilsonCurt commented on September 25, 2024

We are also encountering issues with the Area Code error. Updating to the newest version seemed to have no effect.

The error that I encounter happens during install:
php_1_d223d55492b4 | [Progress: 677 / 1358]
php_1_d223d55492b4 | [Progress: 678 / 1358]
php_1_d223d55492b4 | Installing user configuration...
php_1_d223d55492b4 |
php_1_d223d55492b4 |
php_1_d223d55492b4 | [Magento\Framework\Exception\LocalizedException]
php_1_d223d55492b4 | Area code is already set

The error doesn't seem to specifically be coming from the Sentry module, but it only occurs when the Sentry module is a part of the install process.

from magento2-sentry.

rakibabu avatar rakibabu commented on September 25, 2024

Hi All,

Thanks for the feedback. I was able to reproduce this. In version 0.5.0 the setAreaCode is removed and replaced with emulateAreaCode. In addition to that I've found a problem with the CustomerSession which also produced this error. I've proxied that class.

Release 0.5.0 is tested on Magento 2.2.7 & Magento 2.3.0.

Happy to hear your thoughts about this.

from magento2-sentry.

rliukshyn avatar rliukshyn commented on September 25, 2024

@rakibabu I updated module to 0.5.0 and the issue is no longer reproducible. Thanks!

from magento2-sentry.

royduin avatar royduin commented on September 25, 2024

Thank you for your feedback!

from magento2-sentry.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.