• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

php error with breadcrumbs enabled

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › php error with breadcrumbs enabled

This topic is: resolved

Tagged: breadcrumbs, php error

  • This topic has 5 replies, 2 voices, and was last updated 7 years, 10 months ago by carmencita.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • July 10, 2015 at 10:05 am #159020
    carmencita
    Member

    Hey there,

    The breadcrumbs worked on my local install, but after Uploading I get this error:

    Warning: Illegal string offset 'prefix' in /xxx/xxx/htdocs/xxx/xxx/wp-content/themes/genesis/lib/classes/breadcrumb.php on line 97

    Has anyone had this Problem before?

    Cheers

    July 12, 2015 at 2:10 pm #159191
    nutsandbolts
    Member

    Did you add something in your functions.php related to breadcrumbs? Or did you just activate them in your Genesis theme settings?


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    July 12, 2015 at 5:49 pm #159215
    nutsandbolts
    Member

    To unsubscribe, click on your name at the top of the forum screen. On the next page, click Subscriptions on the left. You'll see a small red X on the side of each topic title and can click those to unsubscribe from the topics you don't want to receive notifications for.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    July 13, 2015 at 1:57 am #159243
    carmencita
    Member

    In my functions.php I´ve just added a filter to customize the Breadcrumbs:

    add_filter('genesis_breadcrumb_args', 'custom_breadcrumbs');
    function custom_breadcrumbs( $args ) {
    $args['labels'] = '';
    $args['sep'] = ' » ';
    $args['author'] = 'Archiv für ';
    $args['category'] = 'Archiv für Archiv für ';
    $args['tag'] = 'Archiv für ';
    $args['date'] = 'Archiv für ';
    $args['search'] = 'Suche nach ';
    $args['tax'] = 'Archiv für ';
    $args['post_type'] = 'Archiv für ';
    $args['404'] = 'Nicht gefunden: ';
    return $args;
    }
    Could the php version be the problem? The site uses 5.6

    July 13, 2015 at 2:48 am #159244
    carmencita
    Member

    I´ve just updated my local php version to 5.6 and the breadcrumbs still work. So it´s probably not the php version...

    July 13, 2015 at 5:15 am #159251
    carmencita
    Member

    SOLVED: The code for the filter function was wrong. Everything works with the Code provided on studiopress!

  • Author
    Posts
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘php error with breadcrumbs enabled’ is closed to new replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble