luigifab/openmage-sentry

"Sentry is not fully installed: $sentry not found!"

Closed this issue · 6 comments

Are there any dependencies?

Trying to move from Firegento_Logger and I'm getting this error when enabling Sentry:
Sentry is not fully installed: $sentry not found!

Used the normal diff (not "more").
Installed via FTP but do not see any composer dependencies.

Exception.log logging:
isDeveloperMode:off sentry:off
before the exceptions (unrelated)

OpenMage 19.4.23
PHP 8.1

Can you check that app/code/core/Mage/Core/Model/App.php is updated? (is global $sentry; present?)
And no, there are no dependencies.

Yes, checked the diff, and it looks good.
image

Sadly you are right... this does not work.
I'm searching why.

Can you replace in app/code/community/Luigifab/Sentry/Model/Client.php line 35:
if ($sentry && is_object($sentry)) {
by
if (!$sentry || !is_object($sentry)) {

Sure, will try it out as soon as i have a chance to test it out again :)

Fixed in v2.1.0.