mishaml
Forum Replies Created
-
Forum: Plugins
In reply to: [Nextend Social Login and Register] Rest api error invalid_usernameFinally, I also try your example code https://gist.github.com/nextendweb-laszlo/8753826f1fdc1fae84342d3b957b18d3#file-nsl-register-link-skeleton-php to implement rest api login on my site. And when I turn off Woocommercee this code seems to work, otherwise it’s not working as expected and returns an error. So I think that Woocommerce somehow interferes with Nextend Social Login
Forum: Plugins
In reply to: [Nextend Social Login and Register] Rest api error invalid_username#0 /home/cp538923/sushijo.cz/dev/wp-includes/class-wp-hook.php(324): fix_nextend_error(true)
#1 /home/cp538923/sushijo.cz/dev/wp-includes/plugin.php(205): WP_Hook->apply_filters(true, Array)
#2 /home/cp538923/sushijo.cz/dev/wp-includes/user.php(366): apply_filters('application_pas...', true)
#3 /home/cp538923/sushijo.cz/dev/wp-includes/user.php(504): wp_authenticate_application_password(NULL, 'ck_c060bcf330ff...', 'cs_c3a66547734c...')
#4 /home/cp538923/sushijo.cz/dev/wp-includes/class-wp-hook.php(324): wp_validate_application_password(false)
#5 /home/cp538923/sushijo.cz/dev/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array)
#6 /home/cp538923/sushijo.cz/dev/wp-includes/user.php(3668): apply_filters('determine_curre...', false)
#7 /home/cp538923/sushijo.cz/dev/wp-includes/pluggable.php(70): _wp_get_current_user()
#8 /home/cp538923/sushijo.cz/dev/wp-includes/user.php(658): wp_get_current_user()
#9 /home/cp538923/sushijo.cz/dev/wp-content/plugins/woocommerce/includes/class-wc-rest-authentication.php(125): get_current_user_id()
#10 /home/cp538923/sushijo.cz/dev/wp-includes/class-wp-hook.php(324): WC_REST_Authentication->authentication_fallback(NULL)
#11 /home/cp538923/sushijo.cz/dev/wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array)
#12 /home/cp538923/sushijo.cz/dev/wp-includes/rest-api/class-wp-rest-server.php(197): apply_filters('rest_authentica...', NULL)
#13 /home/cp538923/sushijo.cz/dev/wp-includes/rest-api/class-wp-rest-server.php(436): WP_REST_Server->check_authentication()
#14 /home/cp538923/sushijo.cz/dev/wp-includes/rest-api.php(420): WP_REST_Server->serve_request('/nextend-social...')
#15 /home/cp538923/sushijo.cz/dev/wp-includes/class-wp-hook.php(324): rest_api_loaded(Object(WP))
#16 /home/cp538923/sushijo.cz/dev/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#17 /home/cp538923/sushijo.cz/dev/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
#18 /home/cp538923/sushijo.cz/dev/wp-includes/class-wp.php(418): do_action_ref_array('parse_request', Array)
#19 /home/cp538923/sushijo.cz/dev/wp-includes/class-wp.php(813): WP->parse_request('')
#20 /home/cp538923/sushijo.cz/dev/wp-includes/functions.php(1336): WP->main('')
#21 /home/cp538923/sushijo.cz/dev/wp-blog-header.php(16): wp()
#22 /home/cp538923/sushijo.cz/dev/index.php(17): require('/home/cp538923/...')I’ve tried to print the backtrace, and all I see is that woocommerce is making it’s authentification for rest route, not any signs of another plugins
Forum: Plugins
In reply to: [Nextend Social Login and Register] Rest api error invalid_usernameI found that this error is triggered in wp-includes/user.php. To bypass it I should set filter application_password_is_api_request to false. I’m not sure about why this error occur in my case, however it would be great to implement this fix in plugin in case someone also catches it.
I mean not global roles, but roles in community group.
Forum: Plugins
In reply to: [Nextend Social Login and Register] Rest api error invalid_usernameThank you, this way I can get correct access token. I found that this error occurs when I use Woocommerce plugin. Without it api returns user id. I’ve installed pro addon, so integration with Woocommerce should work.
Forum: Plugins
In reply to: [Nextend Social Login and Register] Rest api error invalid_usernameDo you have a code to generate access token, because it seems that in order to test it I should set up full integration with google
Forum: Plugins
In reply to: [Nextend Social Login and Register] Rest api error invalid_usernameAre there any errors in my postman code comparing to your version?
However, may you fix this case so there will be no fatal error at least, even if the coupon wouldn’t work. As far as I understand, you have to check whether WC()->cart exists or whether it is not rest request
But this is only the default message. Is it possible to translate custom message like on my screenshot?
Sorry for disturb, but will you look for this
Yeah, I was trying to fix this problem, but I’ve commented it so you can check everything. Our site has 4 languages, main czech version, another languages are located in subdirectories /ru/, /uk/, /en/. When the user is registering on https://sushijo.ninesquares.studio/uk/register/, it is expected he will be redirected to https://sushijo.ninesquares.studio/uk/my-account/, and so on on english and russian version. Currently all users are redirected to https://sushijo.ninesquares.studio/my-account/
Forum: Plugins
In reply to: [Customer Reviews for WooCommerce] WPML cannot translate page leave a reviewI’ve rewrote templates today because I need fix urgently, but this is just a workaround, so I wait you to make a fix to clean up the code.
Forum: Plugins
In reply to: [Customer Reviews for WooCommerce] WPML cannot translate page leave a reviewHi! I’ve read in changelog
Bug fix: Email body of review reminders could not be translated with WPML when using local review forms
It is connected with my issue? Currently it seems that this doesn’t helped
Forum: Plugins
In reply to: [Google for WooCommerce] Fatal error: Asset handle already existsI have the same issue. The problem appears on Contact form 7 forms page. I’ve had polylang plugin for multicurrency, which requires 2 plugins to be installed to translate contact form 7. When I turn off CF7 Smart Grid Design Extension the problem dissapears, and forms page opens.
Forum: Plugins
In reply to: [Customer Reviews for WooCommerce] Fatal error on manual review reminder sendYeah, with WP Staging Pro turn off the problem seems resolved, thanks