Breadcrumbs error in Search Console
-
Hi, Google Search Console reports this error:
‘name’ or ‘item.name’ must be specified (in ‘itemListElement’)
The page I need help with: [log in to see the link]
-
Hi,
Thanks for your feedback. I’ll check this issue.
Hi @webblish ,
I’ve checked your site and see something: the category URL doesn’t have “category” slug. Do you use any plugin/technique to remove category base?
Also, can you please provide the debug info from Tools > Site Health > Info tab? I need it to replicate the bug.
Thanks
Many thanks for the swift reply!
I’ve used this plugin to remove the category from the slug: https://nl.wordpress.org/plugins/remove-category-url/
Here’s the info:
### wp-core ### version: 5.9.3 site_language: nl_NL user_language: en_US timezone: Europe/Amsterdam permalink: /%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: undefined environment_type: production user_count: 2 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /home/u85886p80530/domains/***/public_html wordpress_size: 96,00 MB (100664350 bytes) uploads_path: /home/u85886p80530/domains/***/public_html/wp-content/uploads uploads_size: 131,31 MB (137690814 bytes) themes_path: /home/u85886p80530/domains/***/public_html/wp-content/themes themes_size: 3,91 MB (4103657 bytes) plugins_path: /home/u85886p80530/domains/***/public_html/wp-content/plugins plugins_size: 33,66 MB (35291681 bytes) database_size: 7,97 MB (8355840 bytes) total_size: 272,85 MB (286106342 bytes) ### wp-dropins (1) ### advanced-cache.php: true ### wp-active-theme ### name: GeneratePress (generatepress) version: 3.1.3 author: Tom Usborne author_website: https://tomusborne.com parent_theme: none theme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, post-thumbnails, post-formats, woocommerce, title-tag, html5, customize-selective-refresh-widgets, align-wide, responsive-embeds, editor-color-palette, custom-logo, menus, editor-styles, editor-style, widgets theme_path: /home/u85886p80530/domains/***/public_html/wp-content/themes/generatepress ### wp-themes-inactive (1) ### Twenty Twenty-Two: version: 1.1, author: the WordPress team ### wp-mu-plugins (1) ### installatron_hide_status_test.php: author: (undefined), version: (undefined) ### wp-plugins-active (20) ### All In One WP Security: version: 4.4.12, author: All In One WP Security & Firewall Team Autoptimize: version: 3.0.4, author: Frank Goossens (futtta) Classic Editor: version: 1.6.2, author: WordPress Contributors Classic Widgets: version: 0.3, author: WordPress Contributors Code Snippets: version: 3.1.0, author: Code Snippets Pro Contact Form 7: version: 5.5.6.1, author: Takayuki Miyoshi Disable Admin Notices Individually: version: 1.2.9, author: Creative Motion <info@cm-wp.com> GenerateBlocks: version: 1.4.3, author: Tom Usborne GP Premium: version: 2.1.2, author: Tom Usborne GP Related Posts: version: 1.3, author: West Coast Digital Lightbox with PhotoSwipe: version: 3.4.2, author: Arno Welzel MC4WP: Mailchimp for WordPress: version: 4.8.7, author: ibericode OMGF: version: 5.1.2, author: Daan from FFW.Press Really Simple SSL: version: 5.3.2, author: Really Simple Plugins Remove Category URL: version: 1.1.6, author: Valerio Souza, Сreativemotion Sassy Social Share: version: 3.3.41, author: Team Heateor Slim SEO: version: 3.13.4, author: eLightUp WebP Converter for Media: version: 4.3.4, author: Mateusz Gbiorczyk WP-Optimize - Clean, Compress, Cache: version: 3.2.3, author: David Anderson, Ruhani Rabin, Team Updraft WP Advanced Math Captcha: version: 1.2.20, author: AntiCaptcha ### code-snippets (12) ### snippet-1: name: Example HTML shortcode, scope: global, modified: 2020-09-22 14:11:05, tags: [shortcode] snippet-2: name: Example CSS snippet, scope: front-end, modified: 2020-09-22 14:11:05, tags: [css] snippet-3: name: Example JavaScript snippet, scope: front-end, modified: 2020-09-22 14:11:05, tags: [javascript] snippet-4: name: Order snippets by name, scope: admin, modified: 2020-09-22 14:11:05, tags: [code-snippets-plugin] snippet-5: name: Order snippets by date, scope: admin, modified: 2020-09-22 14:11:05, tags: [code-snippets-plugin] snippet-6: name: Remove jQuery From WordPress, scope: global, modified: 2020-09-22 14:11:33 snippet-7: name: Clickable featured image, scope: front-end, modified: 2020-09-22 14:12:12 snippet-9: name: All Google Fonts, scope: global, modified: 2021-02-11 21:34:53 snippet-11: name: Add Read More button when using Custom Excerpt, scope: global, modified: 2021-03-11 21:20:25 snippet-13: name: Auto-update, scope: global, modified: 2021-12-03 12:06:22 snippet-16: name: Hide category Title on Archives, scope: global, modified: 2021-06-09 07:11:45 snippet-17: name: Add category to Single Posts, scope: global, modified: 2021-06-09 08:23:28 ### wp-media ### image_editor: WP_Image_Editor_Imagick imagick_module_version: 1808 imagemagick_version: ImageMagick 7.1.0-2 Q16 x86_64 2021-06-25 https://imagemagick.org imagick_version: 3.5.1 file_uploads: File uploads is turned off post_max_size: 8M upload_max_filesize: 2M max_effective_size: 2 MB max_file_uploads: 20 imagick_limits: imagick::RESOURCETYPE_AREA: 377 GB imagick::RESOURCETYPE_DISK: 9.2233720368548E+18 imagick::RESOURCETYPE_FILE: 49152 imagick::RESOURCETYPE_MAP: 377 GB imagick::RESOURCETYPE_MEMORY: 189 GB imagick::RESOURCETYPE_THREAD: 1 imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, ASHLAR, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUBE, CUR, CUT, DATA, DCM, DCR, DCRAW, DCX, DDS, DFONT, DNG, DOT, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, EXR, FARBFELD, FAX, FF, FILE, FITS, FL32, FLV, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, GV, HALD, HDR, HEIC, HEIF, HISTOGRAM, HRZ, HTM, HTML, HTTP, HTTPS, ICB, ICO, ICON, IIQ, INFO, INLINE, IPL, ISOBRL, ISOBRL6, J2C, J2K, JBG, JBIG, JNG, JNX, JP2, JPC, JPE, JPEG, JPG, JPM, JPS, JPT, JSON, K25, KDC, KERNEL, LABEL, M2V, M4V, MAC, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPEG, MPG, MRW, MSL, MSVG, MTV, MVG, NEF, NRW, NULL, ORA, ORF, OTB, OTF, PAL, PALM, PAM, PANGO, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PHM, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGB565, RGBA, RGBO, RGF, RLA, RLE, RMF, RSVG, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, SVG, SVGZ, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TM2, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMF, WMV, WMZ, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YAML, YCbCr, YCbCrA, YUV gd_version: 2.2.5 gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM ghostscript_version: 9.25 ### wp-server ### server_architecture: Linux 3.10.0-962.3.2.lve1.5.63.el7.x86_64 x86_64 httpd_software: Apache/2 php_version: 7.4.27 64bit php_sapi: litespeed max_input_variables: 1000 time_limit: 120 memory_limit: 2048M max_input_time: -1 upload_max_filesize: 2M php_post_max_size: 8M curl_version: 7.71.0 OpenSSL/1.1.1d suhosin: false imagick_availability: true pretty_permalinks: true htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 10.3.24-MariaDB-cll-lve client_version: 10.3.32-MariaDB max_allowed_packet: 268435456 max_connections: 5000 ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /home/u85886p80530/domains/***/public_html/wp-content WP_PLUGIN_DIR: /home/u85886p80530/domains/***/public_html/wp-content/plugins WP_MEMORY_LIMIT: 40M WP_MAX_MEMORY_LIMIT: 2048M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: true CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_ENVIRONMENT_TYPE: Undefined DB_CHARSET: utf8 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable
Hi @webblish ,
Thank you for your reply. I’ve tested with the plugin “remove-category-url” and GeneratePress theme and still can’t replicate the bug.
I guess there’s a code that changes the default query. Can you show me the snippet “Add category to Single Posts”? And if possible, can you drop me a message?
- This reply was modified 2 years, 4 months ago by Anh Tran.
Hi, sorry for the very late reply. This is the snippet:
add_filter('body_class','db_single_body_add_category_class',10,2); function db_single_body_add_category_class($classes, $class) { if (is_single() ) { global $post; foreach((get_the_category($post->ID)) as $category) { $classes[] = 'category-'.$category->category_nicename; } } return $classes; }
Hi @webblish ,
Thanks for your reply. Your code seems fine as it only add CSS classes to the body tag. It doesn’t alter the query.
Can you try deactivate the Remove Category URL plugin and see if the breadcrumbs work?
- The topic ‘Breadcrumbs error in Search Console’ is closed to new replies.