[ad_1]
When I click the connect to PayPal button (trying to get things started), I log in to PayPal, click to grant access, and then get this message: The response is not a valid JSON response.
I checked the logs, and found this:
2023-07-08T00:04:24+00:00 CRITICAL Uncaught TypeError: Cannot access offset of type string on string in /home2/mysite/wp-content/plugins/pymntpl-paypal-woocommerce/src/Rest/Routes/Admin/ConnectAccount.php:52
Stack trace:
0 /mysite/wp-content/plugins/pymntpl-paypal-woocommerce/src/Rest/Routes/AbstractRoute.php(28): PaymentPlugins\WooCommerce\PPCP\Rest\Routes\Admin\ConnectAccount->handle_put_request(Object(WP_REST_Request))
1 /mysite/wp-includes/rest-api/class-wp-rest-server.php(1181): PaymentPlugins\WooCommerce\PPCP\Rest\Routes\AbstractRoute->handle_request(Object(WP_REST_Request))
2 /mysite/wp-includes/rest-api/class-wp-rest-server.php(1028): WP_REST_Server->respond_to_request(Object(WP_REST_Request), '/wc-ppcp/v1/adm…', Array, NULL)
3 /mysite/wp-includes/rest-api/class-wp-rest-server.php(442): WP_REST_Server->dispatch(Object(WP_REST_Request))
4 /mysite/wp-includes/rest-api.php(410): WP_REST_Server->serve_request('/wc-ppcp/v1/adm…')
5 /mysite/wp-content/plugins/pymntpl-paypal-woocommerce/src/RestApi.php(27): rest_api_loaded()
6 /mysite/wp-includes/class-wp-hook.php(308): PaymentPlugins\WooCommerce\PPCP\RestApi->process_admin_request('')
7 /mysite/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
8 /mysite/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
9 /mysite/wp-admin/admin-ajax.php(188): do_action('wp_ajax_wc_ppcp…')
10 {main}
thrown in /mysite/wp-content/plugins/pymntpl-paypal-woocommerce/src/Rest/Routes/Admin/ConnectAccount.php on line 52
