Wp-graphql-woocommerce: Call to undefined function codecept_debug()

Created on 15 Oct 2020  路  5Comments  路  Source: wp-graphql/wp-graphql-woocommerce

Describe the bug
There's an undefined function error when querying variations on VariableProduct.

To Reproduce
Run the following query:

query AllProducts {
  products {
    nodes {
      name
      ... on VariableProduct {
        price
        variations {
          nodes {
            databaseId
          }
        }
      }
    }
  }
}

Expected behavior
First 10 products return

Actual behavior

{
      "debugMessage": "Call to undefined function codecept_debug()",
      "message": "Internal server error",
      "extensions": {
        "category": "internal"
      },
      "locations": [
        {
          "line": 7,
          "column": 9
        }
      ],
      "path": [
        "products",
        "nodes",
        1,
        "variations"
      ]
}

Looks like there's a hanging Codeception debug function that got shipped.

Location: https://github.com/wp-graphql/wp-graphql-woocommerce/blob/develop/includes/connection/class-products.php#L190

Screenshots
image

Most helpful comment

@jacobarriola You PR and everything has been packaged in the v0.6.1 hotfix

All 5 comments

Hey @kidunot89 - FYI this is breaking my build when I update from 0.5.x to 0.6.0

@jacobarriola My bad left some debug code in there I'll get a hotfix out immediately.

@kidunot89 all good. I have a PR that's ready to go #343 .

@jacobarriola You PR and everything has been packaged in the v0.6.1 hotfix

Thanks! You are awesome @kidunot89 and @jacobarriola

Was this page helpful?
0 / 5 - 0 ratings

Related issues

huniqcast picture huniqcast  路  3Comments

jake-101 picture jake-101  路  7Comments

paplco picture paplco  路  4Comments

aidnurs picture aidnurs  路  3Comments

kenchoong picture kenchoong  路  5Comments