• Here are some fixes for issues I encountered with PHP7 and the buddypress-links plugin:

    Error:
    PHP Fatal error: Uncaught Error: Call to undefined function split() in /wp-content/plugins/buddypress-links/bp-links-core.php:349

    Solution:
    Change the call to split() on line 349 in bp-links-core.php to explode(). So it should look like this:
    $paths = explode( '/', $template_name );

    Warning:
    Declaration of BP_Links_Component::setup_globals() should be compatible with BP_Component::setup_globals($args = Array) in /wp-content/plugins/buddypress-links/bp-links-component.php on line 94, referer:

    Solution:
    Change declaration of setup_globals function in bp-links-component.php on line 38 to the following (add $args = array ()):
    function setup_globals($args = array ())

    Warning:
    Declaration of BP_Links_Component::includes() should be compatible with BP_Component::includes($includes = Array) in /wp-content/plugins/buddypress-links/bp-links-component.php on line 94, referer:

    Solution:
    Change declaration of includes function in bp-links-component.php on line 24 to the following (add $includes = array ()):
    function includes($includes = array ())

    Hopefully someone is still maintaining this plugin and can apply these fixes.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Some fixes to errors and warnings’ is closed to new replies.