-
Notifications
You must be signed in to change notification settings - Fork 97
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
Error when setting sync tab DB connection. #920
Comments
This is upon trying to save the database connection. |
@f4w-git I can see that the setup is working fine and I would request you to double check if you aren't putting any extra spaces while adding the |
I am not putting any spaces in. I tried it again just now. It has to be with how I am installing then. The following is how the documentation says to install it. Is the following correct? For standard WordPress installations, this command can be run from the wp-content/plugins sub-directory. composer require symfony/http-client nyholm/psr7 auth0/wordpress:^5.0 |
@f4w-git Alternatively, you can try out downloading the plugin source code from this link and place it in your Moreover, this is how an ideal database connection value should look. Please be cautious of the trailing spaces. |
Then this has to be an install issue. 100% brand new clean wordpress install. I have used 3 different hosting solutions. Dreamhost and 2 local ubuntu installs. Here are my install procedures for that plugin.
|
@f4w-git This can be then something to do with the $input['database'] data not passing correctly in the onUpdateSync Can you put some debug points and check if the value of your connection passing correctly to the $response? If the value passed will be an empty string or null then you will face this issue. |
Checklist
Description
I have installed the plugin successfully. 5.x to be specific. Trying to set the sync tab and get an error "Database Connection to sync WordPress with for non-social connections. Must begin with con_" Documentation all over Auth0 sites refer to the 4.x version of the plugin(which I installed successfully with sync capabilities. Error is as follows: [22-Oct-2024 18:52:16 UTC] PHP Fatal error: Uncaught Auth0\SDK\Exception\ArgumentException: A value for id must be provided in /home/httpd/wp-content/plugins/wordpress/vendor/auth0/auth0-php/src/Exception/ArgumentException.php:51
Stack trace:
#0 /home/httpd/wp-content/plugins/wordpress/vendor/auth0/auth0-php/src/API/Management/Connections.php(93): Auth0\SDK\Exception\ArgumentException::missing('id')
#1 /home/httpdwp-content/plugins/wordpress/src/Actions/Configuration.php(939): Auth0\SDK\API\Management\Connections->get(NULL)
#2 /home/httpdwp-includes/class-wp-hook.php(326): Auth0\WordPress\Actions\Configuration->onUpdateSync(Array)
#3 /home/httpd/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#4 /home/httpd/wp-includes/formatting.php(5115): apply_filters('sanitize_option...', Array, 'auth0_sync', Array)
#5 /home/httpd/wp-includes/option.php(866): sanitize_option('auth0_sync', Array)
#6 /home/httpd/wp-admin/options.php(344): update_option('auth0_sync', Array)
#7 {main}
thrown in /home/httpd/wp-content/plugins/wordpress/vendor/auth0/auth0-php/src/Exception/ArgumentException.php on line 51
Reproduction
input con_ database connection and get error.
Additional context
No response
wp-auth0 version
5.2.1
WordPress version
6.6.2
PHP version
8.3
The text was updated successfully, but these errors were encountered: