Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Error handler error in PHP7
  • Hi,

    I've recently tried out my apps with PHP7 and I get this:



    Fatal error: Uncaught Error: Call to undefined method
    Error::exception_handler() in
    C:\Apache24\htdocs\LOCDEV-cms\fuel\core\bootstrap.php:82
    Stack trace:
    #0 [internal function]: {closure}(Object(Fuel\Core\Database_Exception))
    #1 {main}
    thrown in \fuel\core\bootstrap.php on line 82



    Fatal error: Uncaught Error: Call to undefined method
    Error::shutdown_handler() in
    C:\Apache24\htdocs\LOCDEV-cms\fuel\core\bootstrap.php:66
    Stack trace:
    #0 [internal function]: {closure}()
    #1 {main}
    thrown in \fuel\core\bootstrap.php on line 66


    Looks like there were some PHP core issues already and some hacks in Fuel to workaround the problem, but it doesn't work anymore for PHP7.
    Any way to easly fix this ?
  • Harro VertonHarro Verton
    Accepted Answer
    Switch to 1.8/develop.

    In PHP7 "Error" is an internal class, so we had to rename it.
  • We're planning a new release once PHP7 has been officially released and we've done a thorough test with it.

Howdy, Stranger!

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

In this Discussion