-
Notifications
You must be signed in to change notification settings - Fork 92
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
Composer installation not working - fatal error upon attempting activation #893
Comments
After much struggle, I was able to find a workaround for my workflow—I'm not able to directly include this in my site's I'm not sure if I consider this closed, as the underlying issue is a lack of a pre-built package being available either here on GitHub or via the WP plugins repo. |
@blakmarkit happened to come across your issue because I'm interested in the other open issue. Brings a few questions to mind.
![]() Also curious your local development environment and your host. I'm using a Bedrock setup with lots of other plugins and didn't run into any issues installing with |
@chadevans my site structure (local and host) is standard WP, not Bedrock, because of my host. My Other wpackagist packages are added to my main In this case, I downloaded the 5.2 release source separately So the problem is at least partially that the directions aren't clear on adapting for non-Bedrock installations, and partially that this is even necessary given that auth0 could finally package zip releases. |
@blakmarkit looks like you have solid troubleshooting skills. I will add that in a Bedrock install, the ![]() Inside the root ![]() |
@chadevans interesting! No idea why it wasn't picking up the dependencies for me. They were in the root, but the plugin wasn't finding them. Mine only worked once the |
Comparing our two composer.json files, in the "config" section, mine reads "vendor-dir":"vendor" and yours has "vendor-dir":"lib/vendor". Maybe try changing to "vendor" if it wasn't creating a lib/vendor folder? That's all I can think of to try. |
All 5.x releases are available here, under the "releases" tab: https://github.com/auth0/wordpress/releases. Just expand the "assets" to get the ZIP downloads. We recommend the Composer approach because it guarantees all dependencies are installed with their latest versions (security fixes, etc.), and additional steps are necessary to make the ZIP approach work.
Respectfully, two of the three links you shared are for v4 of the plugin and have no relation to the version we're discussing here. I appreciate that you created this issue, but I must ask, please do not ping years-old issues; it isn't polite to other users. Thanks very much.
I'm glad you could troubleshoot and chart an installation path that worked for your environment. I appreciate your feedback, and I'll definitely consider this for future updates, but we are not planning any imminent changes to our distribution approach for the plugin at this time. I will close since a resolution was found, but please feel free to continue the discussion. |
Thanks for the great writeup - can I suggest adding a summary to this issue to explain how to workaround for non Bedrock deployment. To get the plugin to show and successfully activate in the
I tried to then delete the |
Checklist
Description
Considering how arduous it has been to troubleshoot this issue, it would be nice if there was an actual released 5.x zip package here on the repo or on the WP plugins repo. There's been many issues over the last year and half asking for a release, with promises that it would be "coming soon" or within "weeks".
#863 (comment)
#889
#859 (comment)
Could someone assist me in configuring this correctly? If you need any other info, please let me know.
stack trace (on Local):
composer.json
is configured at the root of the WP directory. This is a requirement for our host—they do not support a Bedrock structure. Attempting to runcomposer require
from eitherwp-content
orwp-content/plugins
doesn't work—no directory is created.composer config:
Reproduction
run
composer require symfony/http-client nyholm/psr7 auth0/wordpress
composer require auth0/wordpress
/
,wp-content
,wp-content/plugins
Upon activating the 5.2 version of the plugin, installed via composer, I get a fatal error.
Additional context
No response
wp-auth0 version
5.2
WordPress version
6.5.2
PHP version
8.2.x
The text was updated successfully, but these errors were encountered: