Troubleshooting
this page is for errors that we have overcome
Last updated
Was this helpful?
this page is for errors that we have overcome
Last updated
Was this helpful?
Generally, 404 errors can be resolved by npm installs in the frontend wherever there is a package.json file. You may need to delete generated directories like node_modules & next.. Be sure to check for unsynced fields from ACF too.
500 errors tend to be resolved by running composer install wherever there is a composer.json file.
Here's an instance where typescript saves us.
This 500 error was caused by on unintentional upgrade to the composer dependency for wp-graphql.
Solution: delete next
directory & then run npm install
.
for conflicts with build directory
It seems that the php code takes priority so we need to comment code or the include until we are happy with where it gets then export again.
I had to delete the certificate from my keychain on Mac. Then, reload Local By Flywheel to generate a new certificate.
My wouldn't work with HTTPS & I couldn't change my password either.
Solution: Update password manually.
Open Adminer
select wp_users
& update user_pass
with a generated MD5 Hash then the string that you put in for your password should work at the login screen for https.
This can help to see block updates
directories need to be moved to a shorter path
Rename the directory and login again
get page by slug function error - Error: Unexpected end of JSON input
This was due to plugins not being loaded & activated
cd into gravity/backend/plugins/wp-graphql-woocommerce & run composer install
no styles in backend - run npm run build for theme styles in the themes directory > gravity-platform (npm install may be needed as well)
This is likely a data problem. There may be data that is returning null breaking the graphql query.
This error happened for me when Local by Flywheel had some sort of db issue & all files were erased. The logo file made it through this check
These seems like an edge case. But, it does illustrate how missing data can give this Internal Server Error with WPGraphQL.
This manifests in different errors, but it seems to stem from the wrong npm &/or node version. Here is an article on Node Version Manager.
Putting this here for anyone else that encounters this and gets stumped:nvm keeps switching to the a newer version of node for some reason. Until I can figure out why that’s happening, the solution I’m using to fix it is to kill the dev instance, then:
This may error may also be due to a side effect of a particular configuration in Local by Flywheel. If Local's RouterMode is set to localhost rather than Site Domains, this error will occur because graphql will not have the proper path.
add non-null assertion operator return null!
Might be Next caching may be confusing things. Delete the .next
directory in the frontend
folder and restart your compiler.
119
I solved a lot of "not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes" type of errors just by declaring an object that is passed entirely to the component.
For this one, I had to update my frontend .env file. The correct settings are here : https://projects.lapero.io/#/notebooks/413933
This one turned out to be a data problem too. Particularly ACF Fields. A new field was added without syncing. Solution was to back out the changes, sync first & try again.
update through wp-CLI
This is due to you Local by Flywheel SSL certificate expiring.