Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addon breaks GraphQL functionality #133

Closed
St3Ko opened this issue May 17, 2022 · 6 comments
Closed

Addon breaks GraphQL functionality #133

St3Ko opened this issue May 17, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@St3Ko
Copy link

St3Ko commented May 17, 2022

this addon currently breaks GraphQL functionality since Statamic 3.3

Every query, which includes an entry with the blueprint OnPageSeoBlueprint.php attached will fail with an error of Type GridItem_LocalizedUrls not found.

removing the lines where the field localized_urls gets defined removes the error. (OnPageSeoBlueprint.php:92)

for more infos see here

thx!

Statamic 3.3.11 Pro
Laravel 8.83.13
PHP 7.4.28
aryehraber/statamic-uuid 2.1.0
withcandour/aardvark-seo 2.0.24

@AndrewHaine
Copy link
Contributor

Thank you for reporting this, we will take a look into whether this is a required change on our end or in Statamic.

@AndrewHaine AndrewHaine added the bug Something isn't working label May 24, 2022
@marcdap
Copy link

marcdap commented Sep 19, 2022

Hello, I'm writing to know, if it's possible, the status of this error. We are also using the plugin, and it is breaking the functionality when querying using GraphQL.

Statamic: 3.3.35
Aardvark SEO: 2.0.28

As an example this query is working when the add-on is uninstalled:

query MyQuery {
  entries {
    from
    to
    data {
      id
      title
      slug
      collection {
        handle
      }
    }
  }
}

With the add-on installed the following error is thrown:

Type GridItem_LocalizedUrls not found.\nCheck that the config array key for the type matches the name attribute in the type's class.\nIt is required when 'lazyload_types' is enabled

Any information would be appreciated. Thank you.

@tomgillett
Copy link

I am also experiencing this same issue.

@goellner
Copy link

@AndrewHaine when are planning on making a new release with the fix? I tried our project with this fix and everything is building properly and the graphql queries are working again.

@AndrewHaine
Copy link
Contributor

Hi @goellner , that'll be out later today :)

@AndrewHaine
Copy link
Contributor

Fixed in 2.0.29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants