emgiezet / errbit-php

PHP Errbit/AirBrake Client - Only One Working and Tested
45 stars 12 forks source link

No exceptions thrown and ErrBit not alerted #17

Closed jfreak53 closed 8 years ago

jfreak53 commented 10 years ago

I've installed your Libraries into my PHP file but I can't get it to report to ErrBit or even throw and exception. This is the code I am using:

require_once 'errbit2/Errbit.php';

Errbit::instance()
  ->configure(array(
    'api_key'           => 'asdfasdf',
    'host'              => 'mydomain.com',
  ))
  ->start();

  try {
    throw new Exception("The field is undefined.");
  } catch (Exception $e) {
    Errbit::instance()->notify($e);
  }
emgiezet commented 10 years ago

I will look at this soon. But I need to know what is the version you installed of the library. Also what is your version of the Errbit itself.

jfreak53 commented 10 years ago

Not in front of either right now, so dont quote me on this. But the plugin I just git cloned your repo today, so most recent. And errbit I think is 0.3 as I just cloned and installed yesterday.

I have verified that it accepts errors by using curl cli to test. And that is working fine.

Thanks for the help!

jfreak53 commented 10 years ago

Yeah, ErrBit is 0.3.0 Dev. And the plugin I just cloned yesterday so what ever is the most recent :)

emgiezet commented 8 years ago

New version 1.1.0 with fixed compatibility with Errbit 0.4