• Deprecated: Function create_function() is deprecated in … wp-content/plugins/zendesk/zendesk-support.php on line 845

    Looks like create_function() has been deprecated in PHP 7.2

    When is it expected that the plugin will be updated to support PHP 7.2 and higher?

    • This topic was modified 5 years, 8 months ago by breeakpoint.
Viewing 2 replies - 1 through 2 (of 2 total)
  • This issue has been posted a bunch in the past year, seems they’ve all but abandoned the plugin.

    I finally got tired of our debug log being flooded with this crap so I took a look, seems easy enough to fix.

    edit the zendesk_support.php file, comment out this line:
    add_action( 'init', create_function( '', 'global $zendesk_support; $zendesk_support = new Zendesk_Support();' ) );

    And replace it with these lines:

    add_action("init", function(){
      global $zendesk_support;
      $zendesk_support = new Zendesk_Support();
    });

    Should achieve the same affect and avoid the debug message

    Thread Starter breeakpoint

    (@breeakpoint)

    not all heroes wear capes ?? thank you

    I contacted their support and it was less than adequate in understanding the issue.

    • This reply was modified 5 years, 6 months ago by breeakpoint.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin outputs warnings with PHP 7.2’ is closed to new replies.