Viewing 15 replies - 1 through 15 (of 17 total)
  • Hi,

    The issue is that on those pages breadcrumbs are missing from the front-end (meaning they don’t appear) and that the “name” of the breadcrumb is missing. As a result Google tosses out errors.

    This image explains more: https://ibb.co/CtHcXDT.

    We would like some more information.

    ​1. We had another recent release. Can you confirm you are using the most recent Yoast SEO, v15.2.1? If you update, does the issue resolve? This guide explains more about how to update: https://kb.yoast.com/kb/how-can-i-update-my-premium-plugin/.

    ​2. Are all your non-Yoast plugins and themes also updated?

    ​3. If you use the Yoast Helper Tool does the issue resolve? Please try the steps below:
    i. Install & activate the Yoast Test Helper plugin: https://wordpress.org/plugins/yoast-test-helper/
    ii. Go to Tools -> Yoast Test
    iii. Locate the Yoast SEO section and select the “Reset indexables tables & migrations” button
    iv. Click the “SEO Data” button in the SEO->Tools section.

    Then check the source code of the pages and search around for breadcrumbs and view the schema and see if words appear in that “name” schema. This guide explains more about how to view the source code and search around: https://yoast.com/help/view-page-source-site/

    Thread Starter WanderingOn

    (@wanderingon)

    Hi @pcosta88

    Thanks for your reply.

    1. Yes, Yoast is up-to-date.
    2. Yes, all other plugins and themes are up-to-date.
    3. I have installed and activated Yoast Test Helper. I followed your instructions and then I checked the source code as per your instructions. However, the issues is still persisting.

    Is there anything else that I can do to try and fix this issue?

    Thanks

    This did not work for me my breadcrumbs are showing [wpseo_breadcrumb] instead of the breadcrumb still

    Hi @wanderingon,

    The breadcrumbs on the URLs that you shared are what we expect to see on the URL, since both URLs represent the homepage (wanderingon.com/) in WordPress. You can read more about the issue and a possible solution submitted by a user in this topic.

    Is the problem with breadcrumbs only happening on the URLs you listed?

    @livingeasylivecom If you’re seeing a problem with breadcrumbs, we’d like you to create a new forum topic. That will help us to troubleshoot the issue for your specific site.

    Thread Starter WanderingOn

    (@wanderingon)

    Hi @priscillamc

    Thanks for your reply.

    I have a added the code below to the end of my functions.php file as instructed in the blog post:

    <?php
    if (isset($_GET[‘cat’]) && $_GET[‘cat’] == -1) {
    header(‘HTTP/1.0 404 Not Found’);
    exit;
    }

    However, I am getting the following error when I try to update the file: “Your PHP code changes were rolled back due to an error on line 36 of file wp-content/themes/DiviChildTheme/functions.php. Please fix and try saving again.

    syntax error, unexpected ‘<‘, expecting end of file”

    I am not familiar with PHP so I am not sure what the error is. Can you please confirm?

    I can post the full code from my functions.php file here if that would be helpful, and is ok to do so?

    Thanks

    Thread Starter WanderingOn

    (@wanderingon)

    And, yes @priscillamc , the problem with the breadcrumbs is only happening on the URLs I listed.

    Thanks

    Hi @wanderingon,

    If those are the only URLs where this is happening, you might not need to take any action to try to remove them. For example, if these URLs are not appearing in search results for your site.

    My apologies if that solution isn’t working for your site. I should have mentioned that it’s a bit out of our scope to troubleshoot any custom code since we don’t want to risk breaking your site.

    What the user proposed was to force a WordPress 404 error page to appear and return a 404 status code for these URLs. If you’re not familiar with the code to do this for your particular site, we recommend checking similar examples, the WordPress code reference, or contacting a developer.

    Hope this helps!

    Thread Starter WanderingOn

    (@wanderingon)

    Hi @priscillamc

    Thank you for your reply.

    To be honest I think this is just a syntax error, probably a { in the wrong place or something. I checked the links you sent but couldn’t find any answers there.

    Would someone on the support team be able to have a look at the functions.php code to try and identify the error? I am sure there is a simple solution to this.

    Thanks

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    We are afraid to say that we won’t be able to provide any assistance by looking at your currently active theme functions.php file as it goes beyond the scope of our support. However, someone from the WordPress community might help with this.

    That said, based on the error you have shared with us shows a syntax error specific to the opening PHP tag <?php. You may want to try adding the relevant code without using PHP’s opening tag.

    
    if (isset($_GET[‘cat’]) && $_GET[‘cat’] == -1) {
    header(‘HTTP/1.0 404 Not Found’);
    exit;
    }
    

    Note: for the health and safety of your site, we recommend creating regular backups of your site and database. This is especially important before performing code customization.

    Thread Starter WanderingOn

    (@wanderingon)

    Hi @mazedulislamkhan

    Thanks for your repy. I removed the opening PHP tag and it seems to be working ok now, thank you.

    Is there any way to verify that changes made to the functions.php file are working as expected and not causing any issues? Just so I can confirm that everything is ok.

    Thanks

    Yes, you have an error in the Yoast coding we worked around it.

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    @wanderingon you can verify the code that you have added to make sure whether it’s working or not by visiting the relevant pages:

    @livingeasylivecom we are not exactly sure what error you are referring to here. Did you find a bug in our plugin? If yes, can you please elaborate more on that or submit a bug report directly on our GitHub repository so our development team can look into this further as well?

    Thread Starter WanderingOn

    (@wanderingon)

    Hi @mazedulislamkhan

    When I visit each of these pages, they are now completely blank with nothing at all appearing on them.

    Can I safely assume that the code did not work and I should remove it from the functions.php file?

    Can you suggest another fix for this issue?

    Thanks

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    The custom code you have added is working as expected. The relevant code is completely stopping executing anything when you visit the relevant pages.

    That said, we are unable to confirm what you should do with the custom code as we didn’t provide this to you. So, it depends on you whether you should keep using it or remove it from your website.

    Thread Starter WanderingOn

    (@wanderingon)

    Hi @mazedulislamkhan

    Perfect, thank you for confirming.

    All the best,
    Brian

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Breadcrumbs Issue’ is closed to new replies.