Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
ErrorException [ Error ]: Class 'Error' not found
  • Hi, I'm now building an API module using pear's Services_Amazon package by composer in Fuelphp 1.6.

    But I got the error as shown in title when I ran my application and met some errors in Services_Amazon package:

    ErrorException [ Error ]: Class 'Error' not found

    return \Error::shutdown_handler();

    The error I met in amazon_service package:
    /fuel/vendor/pear-pear.php.net/Services_Amazon/Services/Amazon.php @ line 950
    $http = &new HTTP_Request($url);

    I think the composer managed to autoload the amazon package but somehow it cannot reference the Error class in Fulephp Core package.

    Any hint would be appreciated, thanks.
  • HarroHarro
    Accepted Answer
    Pear packages are usually not installed through composer. What exactly did you install?

    I think whatever you did broke the Fuel autoloader.
  • Thank you for the reply.
    I installed Services_Amazon from Pear:
    code in composer.json:

    require: {
        "pear-pear.php.net/Services_Amazon": "0.9.0"
    }

    Oh, I see.
    Now I am using apai-io which is also handling to fetch the Amazon Product Advertising API and it works great.

    Thank you for the help, Harro.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion