wpengine / wp-graphql-filter-query

Adds taxonomy filtering and aggregation support to WP GraphQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not compatible with Bedrock Wordpress

draxvint opened this issue · comments

I got error 500 after installing/activating the plugin.

[13-Dec-2023 09:38:41 UTC] PHP Warning:  require_once(/home3/fortixsy/public_html/web/app/mu-plugins/wp-graphql/vendor/webonyx/graphql-php/src/Error/ClientAware.php): Failed to open stream: No such file or directory in /home3/fortixsy/public_html/web/app/mu-plugins/wp-graphql-filter-query/wp-graphql-filter-query.php on line 27
[13-Dec-2023 09:38:41 UTC] PHP Fatal error:  Uncaught Error: Failed opening required '/home3/fortixsy/public_html/web/app/mu-plugins/wp-graphql/vendor/webonyx/graphql-php/src/Error/ClientAware.php' (include_path='.:/opt/alt/php82/usr/share/pear:/opt/alt/php82/usr/share/php:/usr/share/pear:/usr/share/php') in /home3/fortixsy/public_html/web/app/mu-plugins/wp-graphql-filter-query/wp-graphql-filter-query.php:27
Stack trace:
#0 /home3/fortixsy/public_html/vendor/roots/bedrock-autoloader/src/Autoloader.php(64): include_once()
#1 [internal function]: Roots\Bedrock\Autoloader::Roots\Bedrock\{closure}()
#2 /home3/fortixsy/public_html/vendor/roots/bedrock-autoloader/src/Autoloader.php(63): array_map()
#3 /home3/fortixsy/public_html/vendor/roots/bedrock-autoloader/src/Autoloader.php(51): Roots\Bedrock\Autoloader->loadPlugins()
#4 /home3/fortixsy/public_html/web/app/mu-plugins/bedrock-autoloader.php(15): Roots\Bedrock\Autoloader->__construct()
#5 /home3/fortixsy/public_html/web/wp/wp-settings.php(398): include_once('/home3/fortixsy...')
#6 /home3/fortixsy/public_html/web/wp-config.php(9): require_once('/home3/fortixsy...')
#7 /home3/fortixsy/public_html/web/wp/wp-load.php(55): require_once('/home3/fortixsy...')
#8 /home3/fortixsy/public_html/web/wp/wp-admin/admin.php(34): require_once('/home3/fortixsy...')
#9 /home3/fortixsy/public_html/web/wp/wp-admin/plugins.php(10): require_once('/home3/fortixsy...')
#10 {main}
  thrown in /home3/fortixsy/public_html/web/app/mu-plugins/wp-graphql-filter-query/wp-graphql-filter-query.php on line 27

Temporally i fixed with this:
require_once dirname( __DIR__ ) . '/../../../vendor/webonyx/graphql-php/src/Error/ClientAware.php';

Can you make compatible with botsh standard wordpress and Bedrock wordpress?