Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1217632

    Hi,

    With latest Enfold and bbpress 2.6 i receive on GoogleSearchConsole an error:
    Entweder “name” oder “item.name” müssen angegeben werden / Either “name” or “item.name” should be specified

    Es far as I can see in the html-code the last item in the breadcrumb list has an empty name tag:
    https://www.openandromaps.org/oam-forums/topic/genauere-hoehenlinien

    
    <span class="bbp-breadcrumb-current">Genauere Höhenlinien</span>
    <span itemprop="name"></span>
    <span itemprop="position" class="hidden">4</span>
    

    Switching to theme twenty/twenty solved the problem, however this no solution of couse ;-)

    Best regards
    Christian

    #1219360

    Hey Christian,

    Thank you for the inquiry.

    Looks like those markup or html files are generated by the bbPress plugin. Can we access the site? Please post the login details in the private field. And for additional assistance, please contact the plugin developers.

    Best regards,
    Ismael

    #1219697
    This reply has been marked as private.
    #1220756

    Hi,

    Did you install a plugin that adds schema markup to the templates? We inspected the wplugins\bbpress\includes\common\template.php, which contains the breadcrumb markup, but we didn’t find the span tag with the itemprop attribute.

    <span itemprop="name"></span>
    

    This is the the whole bbp-breadcrumb-current markup.

    'include_current' => $pre_include_current,
    			'current_text'    => $pre_current_text,
    			'current_before'  => '<span class="bbp-breadcrumb-current">',
    			'current_after'   => '</span>',
    

    Best regards,
    Ismael

    #1220905

    Hi Ismael,

    I removed all Plugins – Well I could set up a new site with only Enfold and BBPress but I ‘m pretty shure that will wont change anything.
    All html is from here:
    https://test.openandromaps.org/oam-forums/topic/mapsforge-rendertheme-referenz
    The itemprop=”name” is in your class-breadcrumb.php linne 559 on

    
    			foreach( $trail as $key => &$link )
    			{
    				if( 'trail_end' === $key ) 
    				{
    					continue;
    				}
    
    //				$link = preg_replace( '!rel=".+?"|rel=\'.+?\'|!', '', $link );
    //				$link = str_replace( '<a ', '<a rel="v:url" property="v:title" ', $link );	// removed 4.7.2.1
    //				$link = '<span typeof="v:Breadcrumb">'.$link.'</span>'; //removed due to data testing error
    				
    				$position ++;
    				
    				$matches = array();
    				preg_match( "/<a ?.*>(.*)<\/a>/", $link, $matches );
    				
    				$link_text = ! empty( $matches[1] ) ? $matches[1] : '';
    				$anchor = str_replace( $link_text . '</a>', '', $link );
    				$anchor = str_replace( '<a ', '<a itemprop="url"', $anchor );
    						
    				$new_link  = '<span ' . $markup_list . '>';
    				$new_link .=	'<span ' . $markup_item . '>';
    				$new_link .=		$anchor;
    				$new_link .=			'<span itemprop="name">' . $link_text . '</span>';
    				$new_link .=		'</a>';
    				$new_link .=		'<span itemprop="position" class="hidden">' . $position . '</span>';
    				$new_link .=	'</span>';
    				$new_link .= '</span>';
    				
    				$link = $new_link;
    			}
    		}
    

    Thats exact what can be seen in the inspector
    .. eg:

    
    <span itemscope="itemscope" itemtype="https://schema.org/BreadcrumbList">
    <span itemscope="itemscope" itemtype="https://schema.org/ListItem" itemprop="itemListElement">
    <a itemprop="url" href="https://test.openandromaps.org/oam-forums/forum/renderthemen" class="bbp-breadcrumb-forum">
    <span itemprop="name">[DE] Renderthemen / Kartendarstellung</span></a>
    <span itemprop="position" class="hidden">3</span>
    

    … and thats OK = its the Enfold Breadcrumb list – its fine so far

    Only on the last (current) item in the list the BBPress template.php from line 2230 on kicks in for some reasons

    
    <span itemscope="itemscope" itemtype="https://schema.org/ListItem" itemprop="itemListElement">
    <span class="bbp-breadcrumb-current">Mapsforge Rendertheme Referenz</span>
    <span itemprop="name"></span>
    <span itemprop="position" class="hidden">4</span></span>
    

    Its a Problem between BBPress and latest Enfold
    I switched bach from buggy BBPress 2.6 to 2.5 latest but the problem persists.
    I’m pretty shure that your test for empty (current) breadcrumb fails for last item because BBPress kicks in.

    Best regards
    Christain

    • This reply was modified 4 years, 4 months ago by kech61.
    #1222943

    Hi,

    Sorry for the delay. We are trying to login again to the site but the connection is timing out — we can’t access it.

    And regarding the snippet above, looks like this line becomes empty in the last breadcrumb trail.

    $link_text = ! empty( $matches[1] ) ? $matches[1] : '';
    

    Did you happen to check the value of that variable?

    Best regards,
    Ismael

    #1224258

    Hi Ismael,

    Finally I found a solution for this:

    Dev4Press BBPressToolbox have an Option (burried under 1000 others) to completely disable the breadcrumbs of the BBPress Plugin.
    So the Breadcrumbs are made by Enfold without beeing fooled by BBpress.
    This works….

    Thanks for support
    and
    best regards
    Christian

    #1224362

    Hi,

    I’m glad this was resolved. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘bbpress 2.6 breadcrumb + Enfold produces empty itemprop=name on last item’ is closed to new replies.