Skip to content

nodeByUri not working for a translated taxonomy archive #98

@kuuak

Description

@kuuak

Hello there,

I'm facing an issue when trying to get a translated taxonomy archive through the nodeByUri root query field. See just below the nodeByUri query returning WPGraphQL\\Registry\\TypeRegistry::get_type(): Argument #1 ($type_name) must be of type string, null given, called in /var/www/html/wp-content/plugins/wp-graphql/src/Type/InterfaceType/UniformResourceIdentifiable.php on line 102 error

Image

This is on a fresh setup with latests WP & plugins versions, very basic content and as little as possible configs to have a custom post type (Event), custom taxonomy (Event category), 2 languages (FR* default & EN) & permalink setting to postname.

I can validate WordPress routing is working properly

Image

Thanks for your help

Full Site Health Info

wp-core

version: 6.8.1
site_language: en_US
user_language: en_US
timezone: +00:00
permalink: /%postname%/
https_status: false
multisite: undefined
user_registration: 0
blog_public: 0
default_comment_status: open
environment_type: production
user_count: 1
dotorg_communication: true

wp-paths-sizes

wordpress_path: /var/www/html
wordpress_size: 71.05 MB (74506303 bytes)
uploads_path: /var/www/html/wp-content/uploads
uploads_size: 1.10 MB (1152467 bytes)
themes_path: /var/www/html/wp-content/themes
themes_size: 25.31 MB (26542757 bytes)
plugins_path: /var/www/html/wp-content/plugins
plugins_size: 63.40 MB (66474760 bytes)
fonts_path: /var/www/html/wp-content/uploads/fonts
fonts_size: directory not found
database_size: 2.09 MB (2195456 bytes)
total_size: 162.96 MB (170871743 bytes)

wp-dropins (1)

db.php: true

wp-active-theme

name: Twenty Twenty-Five (twentytwentyfive)
version: 1.2
author: the WordPress team
author_website: https://wordpress.org
parent_theme: none
theme_features: core-block-patterns, post-thumbnails, responsive-embeds, editor-styles, html5, automatic-feed-links, widgets-block-editor, block-templates, post-formats, editor-style
theme_path: /var/www/html/wp-content/themes/twentytwentyfive
auto_update: Disabled

wp-themes-inactive (1)

Micr: version: 1.0.0, author: superhuit, Auto-updates disabled

wp-plugins-active (5)

Polylang Pro: version: 3.7.1, author: WP SYNTEX, Auto-updates disabled
Query Monitor: version: 3.17.2, author: John Blackbourn, Auto-updates disabled
Rewrite Rules Inspector: version: 1.4.0, author: Automattic, Daniel Bachhuber, Auto-updates disabled
WPGraphQL: version: 2.3.0, author: WPGraphQL, Auto-updates disabled
WP GraphQL Polylang: version: 0.7.1, author: Esa-Matti Suuronen, Valu Digital Oy, Auto-updates disabled

wp-plugins-inactive (0)

wp-media

image_editor: WP_Image_Editor_Imagick
imagick_module_version: 1691
imagemagick_version: ImageMagick 6.9.11-60 Q16 aarch64 2021-01-25 https://imagemagick.org
imagick_version: 3.8.0
file_uploads: 1
post_max_size: 8M
upload_max_filesize: 2M
max_effective_size: 2 MB
max_file_uploads: 20
imagick_limits:
imagick::RESOURCETYPE_AREA: 122 MB
imagick::RESOURCETYPE_DISK: 1073741824
imagick::RESOURCETYPE_FILE: 786432
imagick::RESOURCETYPE_MAP: 512 MB
imagick::RESOURCETYPE_MEMORY: 256 MB
imagick::RESOURCETYPE_THREAD: 1
imagick::RESOURCETYPE_TIME: 9.2233720368548E+18
imagemagick_file_formats: 3FR, 3G2, 3GP, AAI, AI, APNG, ART, ARW, AVI, AVIF, AVS, BGR, BGRA, BGRO, BIE, BMP, BMP2, BMP3, BRF, CAL, CALS, CANVAS, CAPTION, CIN, CIP, CLIP, CMYK, CMYKA, CR2, CR3, CRW, CUR, CUT, DATA, DCM, DCR, DCX, DDS, DFONT, DNG, DPX, DXT1, DXT5, EPDF, EPI, EPS, EPS2, EPS3, EPSF, EPSI, EPT, EPT2, EPT3, ERF, FAX, FILE, FITS, FRACTAL, FTP, FTS, G3, G4, GIF, GIF87, GRADIENT, GRAY, GRAYA, GROUP4, H, HALD, HDR, HEIC, 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, LABEL, M2V, M4V, MAC, MAGICK, MAP, MASK, MAT, MATTE, MEF, MIFF, MKV, MNG, MONO, MOV, MP4, MPC, MPG, MRW, MSL, MTV, MVG, NEF, NRW, NULL, ORF, OTB, OTF, PAL, PALM, PAM, PATTERN, PBM, PCD, PCDS, PCL, PCT, PCX, PDB, PDF, PDFA, PEF, PES, PFA, PFB, PFM, PGM, PGX, PICON, PICT, PIX, PJPEG, PLASMA, PNG, PNG00, PNG24, PNG32, PNG48, PNG64, PNG8, PNM, POCKETMOD, PPM, PREVIEW, PS, PS2, PS3, PSB, PSD, PTIF, PWP, RADIAL-GRADIENT, RAF, RAS, RAW, RGB, RGBA, RGBO, RGF, RLA, RLE, RMF, RW2, SCR, SCT, SFW, SGI, SHTML, SIX, SIXEL, SPARSE-COLOR, SR2, SRF, STEGANO, SUN, TEXT, TGA, THUMBNAIL, TIFF, TIFF64, TILE, TIM, TTC, TTF, TXT, UBRL, UBRL6, UIL, UYVY, VDA, VICAR, VID, VIDEO, VIFF, VIPS, VST, WBMP, WEBM, WEBP, WMV, WPG, X, X3F, XBM, XC, XCF, XPM, XPS, XV, XWD, YCbCr, YCbCrA, YUV
gd_version: bundled (2.1.0 compatible)
gd_formats: GIF, JPEG, PNG, WebP, BMP, AVIF
ghostscript_version: 10.00.0

wp-server

server_architecture: Linux 6.10.14-linuxkit aarch64
httpd_software: Apache/2.4.62 (Debian)
php_version: 8.2.28 64bit
php_sapi: apache2handler
max_input_variables: 1000
time_limit: 30
memory_limit: 128M
admin_memory_limit: 256M
max_input_time: -1
upload_max_filesize: 2M
php_post_max_size: 8M
curl_version: 7.88.1 OpenSSL/3.0.15
suhosin: false
imagick_availability: true
pretty_permalinks: true
htaccess_extra_rules: false
static_robotstxt_file: false
current: 2025-05-15T14:00:29+00:00
utc-time: Thursday, 15-May-25 14:00:29 UTC
server-time: 2025-05-15T14:00:28+00:00

wp-database

extension: mysqli
server_version: 11.7.2-MariaDB-ubu2404
client_version: mysqlnd 8.2.28
max_allowed_packet: 16777216
max_connections: 151

wp-constants

WP_HOME: undefined
WP_SITEURL: undefined
WP_CONTENT_DIR: /var/www/html/wp-content
WP_PLUGIN_DIR: /var/www/html/wp-content/plugins
WP_MEMORY_LIMIT: 40M
WP_MAX_MEMORY_LIMIT: 256M
WP_DEBUG: true
WP_DEBUG_DISPLAY: true
WP_DEBUG_LOG: /dev/stderr
SCRIPT_DEBUG: false
WP_CACHE: false
CONCATENATE_SCRIPTS: undefined
COMPRESS_SCRIPTS: undefined
COMPRESS_CSS: undefined
WP_ENVIRONMENT_TYPE: undefined
WP_DEVELOPMENT_MODE: undefined
DB_CHARSET: utf8
DB_COLLATE: undefined

wp-filesystem

wordpress: writable
wp-content: writable
uploads: writable
plugins: writable
themes: writable
fonts: does not exist

pll_options

force_lang: 1: The language is set from the directory name in pretty permalinks
hide_default: 0: Display URL language information for default language
rewrite: 1: Remove /language/ in pretty permalinks
redirect_lang: 0: The front page URL contains the page name or page id instead of the language code
browser: 0: Detect browser language deactivated
media_support: 0: The media are not translated
post_types: post, page, wp_block, event, wp_navigation, wp_template_part
taxonomies: category, post_tag, event_category
sync: 0: Synchronization disabled
default_lang: fr
language_taxonomies: 0
previous_version: 0
version: 3.7.1
media-duplicate: false
machine_translation_enabled: 0
machine_translation_services:
deepl: Array

pll_language_fr

name: Français
slug: fr
term_group: 0
term_id: 4
locale: fr_FR
is_rtl: 0
w3c: fr-FR
facebook: fr_FR
home_url: http://localhost/fr/
search_url: http://localhost/fr/
page_on_front: 0
page_for_posts: 0
flag_code: fr
flag_url: http://localhost/wp-content/plugins/polylang-pro/vendor/wpsyntex/polylang/flags/fr.png
custom_flag_url: 0
active: true
fallbacks: 0
is_default: true
term_props:
language/term_id: 4
language/term_taxonomy_id: 4
language/count: 4
term_language/term_id: 5
term_language/term_taxonomy_id: 5
term_language/count: 2

pll_language_en

name: English
slug: en
term_group: 0
term_id: 7
locale: en_US
is_rtl: 0
w3c: en-US
facebook: en_US
home_url: http://localhost/en/
search_url: http://localhost/en/
page_on_front: 0
page_for_posts: 0
flag_code: us
flag_url: http://localhost/wp-content/plugins/polylang-pro/vendor/wpsyntex/polylang/flags/us.png
custom_flag_url: 0
active: true
fallbacks: 0
is_default: 0
term_props:
language/term_id: 7
language/term_taxonomy_id: 7
language/count: 0
term_language/term_id: 8
term_language/term_taxonomy_id: 8
term_language/count: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions