-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error on plugin activation #222
Comments
Getting the same error with both ACF + WPGraphQL activated Tested via composer and same issue |
I am also having the same error when activating the plugin |
@juanv87 you can use code from this commit 1969768 https://github.com/wp-graphql/wp-graphql-acf/archive/19697681d01b0acafeeac256ca3bd5a68747d73a.zip only most recent commit is causing this issue. |
Thank you very much, it works perfectly! Greetings! |
Just noting that running |
Are you installing from the |
@jasonbahl It was from master branch. for some reason autoload was trying to include phpstan. it should be for developer mode right? In latest master branch, I am not sure if it is still replicable as of now I have not checked it again. |
Attempt to reproduce
Can someone provide step-by-step instructions on how to reproduce these fatal errors, as I'm not able to reproduce. |
Having the same issue:
Using @sulemanhelp version worked so it seems an issue with the latest version. |
@jasonbahl change the default branch to master. I think most of the people using it without looking at the current branch. i can confirm develop branch is not working. |
👋🏻 There as some gitignored files in the vendor directory that were causing some issues. The latest I'm going to close this as testing shows it's resolved and I have confirmation from users in the WPGraphQL Slack. If anyone is still experiencing this issue with latest develop, master or a release, open another issue, reference this one, and provide steps to reproduce and we can look into it further. @ngongoll changing the default branch introduces other issues. We went through this on the main WPGraphQL repo as well, and it had it's own tradeoffs. Ultimately this plugin will be on the WordPress.org repo in the not-too-distant future, and that and composer will become the recommended distribution channels, and Github will be focused more on development and contributions, and less on distribution. |
Plugin could not be activated because it triggered a fatal error.
Warning: require({pathto}\wp-content\plugins\wp-graphql-acf\vendor\composer/../phpstan/phpstan/bootstrap.php): failed to open stream: No such file or directory in {pathto}\wp-content\plugins\wp-graphql-acf\vendor\composer\autoload_real.php on line 69
Fatal error: require(): Failed opening required '{pathto}\wp-content\plugins\wp-graphql-acf\vendor\composer/../phpstan/phpstan/bootstrap.php' (include_path='{pathto}\php\PEAR') in {pathto}\wp-content\plugins\wp-graphql-acf\vendor\composer\autoload_real.php on line 69
The text was updated successfully, but these errors were encountered: