Skip to content

Remove codecept_debug which causes internal server error#159

Merged
jasonbahl merged 1 commit intowp-graphql:developfrom
paolospag:develop
May 16, 2022
Merged

Remove codecept_debug which causes internal server error#159
jasonbahl merged 1 commit intowp-graphql:developfrom
paolospag:develop

Conversation

@paolospag
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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