funkhaus / wp-graphql-cors

Makes WP GraphQL's authetication "just work". It does this by customizing the CORS headers.
GNU General Public License v3.0
112 stars 21 forks source link

Unable to activate plugin : Trailing comma cause fatal error #33

Closed vdilly closed 2 years ago

vdilly commented 2 years ago

Installing this plugin release 2.0 cause fatal error when activated in Wordpress because of this comma : image

In file : \wp-content\plugins\wp-graphql-cors-2.0\includes\admin\admin.php

itrigger commented 2 years ago

i fix it like this array_merge(\WPGraphQL\CORS\Settings\Access::get_fields(), \WPGraphQL\CORS\Settings\Cookies::get_fields())

drewbaker commented 2 years ago

Weird. What version of PHP were you running?

vdilly commented 2 years ago

Weird. What version of PHP were you running?

7.2.34 Just to be clear : removing the comma did the trick