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

Remove codecept_debug which causes internal server error #159

Merged
merged 1 commit into from
May 16, 2022

Conversation

paolospag
Copy link
Contributor

The codecept_debug function, used for unit tests, probably shouldn't be in the plugin production code.
This causes an internal server error due to undefined function in the WordPress ecosystem.

The detailed error is:

PHP Fatal error: Uncaught Error: Call to undefined function WPGraphQL\JWT_Authentication\codecept_debug()

This is reproducible only by querying under authorization, not with default queries.

During the build, Next.js + Apollo Client show this error:

[Network error]: ServerError: Response not successful: Received status code 500

Related issues:
#158
#157

@Pasqat
Copy link

Pasqat commented May 16, 2022

I can confirm that commenting out that line the error is gone!

@jasonbahl jasonbahl merged commit 65cc9c0 into wp-graphql:develop May 16, 2022
@jasonbahl jasonbahl mentioned this pull request May 16, 2022
@jasonbahl
Copy link
Collaborator

Got this merged and released as v0.5.2. Thanks so much. Embarrassing that this debug code was left in 🤦🏻‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants