'VersionedInputType' is not a registered GraphQL type

SS v4.2.1

When clicking on the ‘Files’ tab in the CMS I get this error:

Uncaught InvalidArgumentException: Type 'VersionedInputType' is not a registered GraphQL type

I also get that error if I try to ‘Browse’ an image from an image field from any of my pages within the CMS.

Uploading a new image from within a page seems to work fine though.


I should also mention that this site is a copy of another site (Same /code as the other site with different styles) and the previous site works as expected.

I have also completely deleted the database and assets directory and started over with a fresh dev/build?flush=1 and still getting the same error.

My composer.json file looks like this:

"require": {
    "silverstripe/framework"                 : "4.2.1",
    "silverstripe/config"                    : "1.0.6",
    "silverstripe/assets"                    : "1.2.1",

    "silverstripe/admin"                     : "1.2.1",
    "silverstripe/asset-admin"               : "1.2.1",
    "silverstripe/campaign-admin"            : "1.2.1",
    "silverstripe/cms"                       : "4.2.1",
    "silverstripe/errorpage"                 : "1.2.1",
    "silverstripe/reports"                   : "4.2.1",
    "silverstripe/graphql"                   : "2.0.1",
    "silverstripe/siteconfig"                : "4.2.1",
    "undefinedoffset/sortablegridfield"      : "2.0.6",

    "silverstripe/spamprotection"            : "3.0.0",
    "undefinedoffset/silverstripe-nocaptcha" : "2.0.0",

    "unclecheese/display-logic"              : "2.0.1"

I would guess that those SS requirements are incompatible. Instead of requiring the individual packages, require a silverstripe recipe. Try removing all of the silverstripe/ packages and replacing with

        "silverstripe/recipe-plugin": "^1",
        "silverstripe/recipe-cms": "^4.2",

(Note - the version constraint above will likely upgrade you to SS4.5)

1 Like

Yep. That was exactly it. Thanks!

1 Like