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

Constant "Undefined offset: 10" #178

Closed
alexcarpenter opened this issue Oct 24, 2018 · 6 comments
Closed

Constant "Undefined offset: 10" #178

alexcarpenter opened this issue Oct 24, 2018 · 6 comments

Comments

@alexcarpenter
Copy link

No matter what I specify in the editor, I get an error in the output.

{
  "error": "Undefined offset: 10"
}

Even when there is nothing specified in the editor, I still get the error.

Craft CMS v3.0.28
CraftQL v1.1.0

screen shot 2018-10-24 at 9 21 59 am
screen shot 2018-10-24 at 9 22 14 am

@markhuot
Copy link
Owner

Alex, can you please,

  1. log in to Craft
  2. make sure devMode is enabled
  3. navigate to /api/debug
  4. enter {entries(section:[news]){...on News { title }}} in to the query box and click submit
  5. let me know if you see a more descriptive error message?

@alexcarpenter
Copy link
Author

Still getting the Undefined offset: 10.

@alexcarpenter
Copy link
Author

Issue was due to an category field that was hooked up to a category group that did not exist anymore.

@markhuot
Copy link
Owner

I'm going to re-open this since I have some code related to this. Once the code is released to a stable tag I'll re-close this issue.

@markhuot markhuot reopened this Oct 24, 2018
@danireginatto
Copy link

I have the same problem and I can not solve it.
Is there any way to correct / identify, even manually?

I'm going to re-open this since I have some code related to this. Once the code is released to a stable tag I'll re-close this issue.

@markhuot
Copy link
Owner

markhuot commented Feb 5, 2019

The latest release 1.3.x should fix this issue and allow missing category groups to fail silently. If you're still seeing this or having issues please re-open.

@markhuot markhuot closed this as completed Feb 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants