Resolved PHP 7.2 incompatiblity - Function create_function() is deprecated

Discussion in '[bd] Widget Framework' started by imthebest, Dec 5, 2017.

  1. imthebest

    imthebest New Member


    Version: 2.6.3-BETA22

    When using PHP 7.2 (released as stable on Nov 30), when I try to enter my ACP (in debug mode) I get the following error message and I'm unable to visit the ACP unless I disable debug mode:

    An exception occurred: Function create_function() is deprecated in library/WidgetFramework/ShippableHelper/Updater.php on line 76
    XenForo_Application::handlePhpError() in WidgetFramework/ShippableHelper/Updater.php at line 76
    WidgetFramework_ShippableHelper_Updater::onInitDependencies() in WidgetFramework/Listener.php at line 47
    WidgetFramework_Listener::init_dependencies() in XenForo/CodeEvent.php at line 90
    XenForo_CodeEvent::fire() in XenForo/Dependencies/Abstract.php at line 215
    XenForo_Dependencies_Abstract->preLoadData() in XenForo/FrontController.php at line 127
    XenForo_FrontController->run() in admin.php at line 13
    Is there an easy workaround? (appart of disabling debug mode, of course)

  2. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    Currently there is no working around. We are pushing new versions with 7.2 compatibility today though, please update when it's out. Sorry for the inconvenience.
    RoldanLT and imthebest like this.
  3. xfrocks

    xfrocks XenForo rocks!
    Staff Member

    alfa1, RoldanLT and imthebest like this.
  4. alfa1

    alfa1 Active Member

    Thank you @xfrocks now all addon developers will update their renderers. :)
    xfrocks likes this.