WordPress.org

Ready to get started?Download WordPress

Forums

Breadcrumbs Everywhere
[resolved] Several PHP Notices (2 posts)

  1. vhmarkgmailcom
    Member
    Posted 1 year ago #

    It's a WPMS + BuddyPress install, and the latest version of this plugin.

    With wp-config.php set as
    define('WP_DEBUG', 1);
    define('WP_DEBUG_LOG', 1);
    define('WP_DEBUG_DISPLAY', 1);

    There are several PHP Notices showing:
    Notice: Undefined property: BuddyPress::$achievements in wp-content/plugins/breadcrumbs-everywhere/includes/crumbs-core.php on line 39

    Notice: Trying to get property of non-object in wp-content/plugins/breadcrumbs-everywhere/includes/crumbs-core.php on line 39

    Notice: Use of undefined constant option_value - assumed "option_value" in wp-content/plugins/breadcrumbs-everywhere/includes/crumbs-core.php on line 45

    Notice: Use of undefined constant option_value - assumed "option_value" in wp-content/plugins/breadcrumbs-everywhere/includes/crumbs-core.php on line 51

    Notice: Use of undefined constant option_value - assumed "option_value" in wp-content/plugins/breadcrumbs-everywhere/includes/crumbs-core.php on line 57

    Here's fixed lines for each:
    Line 39:
    $page5 = property_exists($bp, 'achievements')?$bp->achievements->root_slug:'achievements'; // slug for the Achievements page. The BuddyPress default is 'achievements'.

    Lines 45 - 57:
    if ('' == $home && $home!= null) {
    $home = "Home" ; // if this is not set in Plugin Settings then default
    }

    // Get the text for the Blog link. Matches $setting_two in crumbs-admin.php
    $blog = get_option( 'crumbs-setting-two');
    if ('' == $blog && $blog!= null) {
    $blog = "Blog" ; // if this is not set in Plugin Settings then default
    }

    // Get the entity for the divider. Matches $setting_three in crumbs-admin.php
    $divider = get_option( 'crumbs-setting-three');
    if ('' == $divider && $divider!= null) {
    $divider = "»" ; // if this is not set in Plugin Settings then default
    }

    Thanks, and hope to see it in the next release!

    http://wordpress.org/extend/plugins/breadcrumbs-everywhere/

  2. betsyk
    Member
    Plugin Author

    Posted 7 months ago #

    Thanks - resolved in version 1.6!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.