pods-framework / pods

The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
https://pods.io/
GNU General Public License v2.0
1.06k stars 266 forks source link

WPGraphQL "Internal server error" #6868

Closed anirudh7 closed 2 years ago

anirudh7 commented 2 years ago

Description

After updating to 2.9.2 this error took a new turn.

{ "errors": [ { "debugMessage": "Access to undeclared static property: Pods\\Pod_Manager::$pods", "message": "Internal server error", "extensions": { "category": "internal" }, "locations": [ { "line": 5, "column": 9 } ], "path": [ "itsnzSpeakers", "edges", 0, "node", "speakerName" ] } ], "data": { "itsnzSpeakers": { "edges": [ { "node": { "speakerName": null } } ] } }, "extensions": { "debug": [] } }

Version

2.9.2

Testing Instructions

No response

Screenshots / Screencast

image

Possible Workaround

No response

Site Health Information

No response

Pods Package

{
    "@meta": {
        "version": "2.9.2",
        "build": 1660674468
    },
    "settings": {
        "types_only": "0",
        "watch_changed_fields": "0",
        "metadata_integration": "1",
        "metadata_override_get": "0",
        "session_auto_start": "0",
        "wisdom_opt_out": "1"
    },
    "pods": [
        {
            "name": "itsnz_speaker",
            "id": 23,
            "label": "ITSNZ Speakers",
            "description": "",
            "type": "post_type",
            "storage": "meta",
            "label_singular": "ITSNZ Speaker",
            "public": "1",
            "show_ui": "1",
            "rest_enable": "1",
            "supports_title": "1",
            "supports_editor": "1",
            "_migrated_28": "1",
            "required": "0",
            "repeatable": "0",
            "wpgraphql_enabled": "1",
            "wpgraphql_all_fields_enabled": "1",
            "wpgraphql_pick_format": "connection",
            "wpgraphql_file_format": "connection",
            "groups": [
                {
                    "name": "more_fields",
                    "id": 24,
                    "label": "More Fields",
                    "description": "",
                    "weight": 0,
                    "fields": [
                        {
                            "name": "speaker_name",
                            "id": 25,
                            "label": "Speaker Name",
                            "description": "",
                            "weight": 0,
                            "type": "text",
                            "sister_id": "-- Select One --",
                            "required": "0",
                            "repeatable": "0",
                            "text_allowed_html_tags": "strong em a ul ol li b i",
                            "text_max_length": "255",
                            "roles_allowed": "administrator",
                            "rest_pick_response": "array",
                            "rest_pick_depth": "1",
                            "wpgraphql_enabled": "1",
                            "wpgraphql_pick_format": "connection",
                            "wpgraphql_file_format": "connection",
                            "text_trim": "1"
                        }
                    ]
                }
            ]
        }
    ]
}
sc0ttkclark commented 2 years ago

Is the WPGraphQL Integration Pods Pro Add-On enabled? Try deactivating that and confirm whether you see that error.

anirudh7 commented 2 years ago

Is the WPGraphQL Integration Pods Pro Add-On enabled? Try deactivating that and confirm whether you see that error.

It was deactivated but still the same.

image

deployn commented 2 years ago

I do have the same issue, but I also had it yesterday with version 2.9.1

sc0ttkclark commented 2 years ago

Fixed via https://github.com/pods-framework/pods/commit/6ff0a5b2177d49a3f5c5ef364e355a2dc1c2c882

To be released later today