PHP Intergration

#1

Hi All,

Trying to get this working with PHP and have followed the steps however I keep on getting this error and a blank screen. Sorry new to this.

PHP Fatal error: Uncaught Error: Call to undefined function Sentry\\init()

0 Likes

#2

Hey, can you eleborate a bit more how your setup looks like?

How do you install the SDK?
How does the import look like?
Did you try \Sentry\init()?

0 Likes

#3

Hey, I installed it using;

composer require sentry/sdk:2.0.2

Then I inserted it via my header. Yes I have tried it with the slash in front.

0 Likes