Support » Plugin: BuddyPress Links » Some fixes to errors and warnings

  • 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)
  • hi!
    i’ve also fix for my dev board many bug and issue, but this plugin need a total rewrite and code optimization.
    is a good start point, but require a good dev for entire rework :/

    i hope too someone can “adopt” and maintain (can be a great directory plugin for buddypress users)!

    regards 🙂

    it’s my 3rd attempt to ask Marshall to takeover the scripts… looks like he died from the surface of the planet, so i will take the job soon…

    i’m actually trying to find all the known bugs and situations, and fix that… then, rewrite it… because the script worth the efforts…

    @darkwolf if you have fixes to provide, just contact me in private…

    @nexia sorry but i’ve switch to dusiness-directory

    Isn’t Perfect, but now i’ve a directory: laltroweb.it/directory/

    Regards,
    S.N.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Some fixes to errors and warnings’ is closed to new replies.