• Resolved natsshop

    (@natsshop)


    Hi there,

    after the last update, a connection to PayPal is no longer possible.
    As is my habit (because of my previous plug-in), I wanted to reconnect to PayPal after the last update, but this is not possible. First, I disconnected from PayPal, but a new connection to PayPal is not possible.

    I do not see any error message either. I have now reinstalled the old version of the plug-in on my main site. After the next update, I simply left the connection as it is. My staging site is not connected to PayPal.

    In the console, I see the following error message: Uncaught (in promise) TypeError: this.data.messages is undefined.

    But that could be an error message because my staging site is not connected to PayPal.
    I’ve now tried to connect my staging site to PayPal, but it’s not possible. In the WooCommerce log file, I see the following entry in the original site:

    Uncaught TypeError: Cannot access offset of type string on string in /pymntpl-paypal-woocommerce/src/Rest/Routes/Admin/ConnectAccount.php:52 Zusätzlicher Kontext{ “error”: { “type”: 1, “file”: “/pymntpl-paypal-woocommerce/src/Rest/Routes/Admin/ConnectAccount.php”, “line”: 52 }, “remote-logging”: true, “backtrace”: [ “”, “#0 /pymntpl-paypal-woocommerce/src/Rest/Routes/AbstractRoute.php(28): PaymentPlugins\WooCommerce\PPCP\Rest\Routes\Admin\ConnectAccount->handle_put_request(Object(WP_REST_Request))”, “#1 /rest-api/class-wp-rest-server.php(1292): PaymentPlugins\WooCommerce\PPCP\Rest\Routes\AbstractRoute->handle_request(Object(WP_REST_Request))”, “#2 /rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request(Object(WP_REST_Request), ‘/wc-ppcp/v1/adm…’, Array, NULL)”, “#3 /rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch(Object(WP_REST_Request))”, “#4 /rest-api.php(459): WP_REST_Server->serve_request(‘/wc-ppcp/v1/adm…’)”, “#5 /pymntpl-paypal-woocommerce/src/RestApi.php(28): rest_api_loaded()”, “#6 /class-wp-hook.php(324): PaymentPlugins\WooCommerce\PPCP\RestApi->process_admin_request(”)”, “#7 /class-wp-hook.php(348): WP_Hook->apply_filters(”, Array)”, “#8 /www/htdocs/w013b757/plugin.php(517): WP_Hook->do_action(Array)”, “#9 /admin-ajax.php(192): do_action(‘wp_ajax_wc_ppcp…’)”, “#10 {main}”, “thrown” ] }

    Thank you very much for the help. Regards

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @natsshop

    We haven’t changed how the connection logic works for a very long time so your specific issue wouldn’t be related to the last update. It sounds like your site is not able to connect to the server that generates the pre-connection parameters.

    My recommendation would be to enter your client ID and secret key manually. Or you could contact your hosting provider and tell them to ensure the server paypalconnect.paymentplugins.com is whitelisted. That is the server used to generate the initial connection parameters.

    Kind Regards

    Thread Starter natsshop

    (@natsshop)

    Hello,
    okay, thank you for the answer. But that’s rather unusual. Why now all of a sudden? It’s always worked perfectly. The host is the same as always. The only thing that’s changed is the plug-in version. I’ll write to the host. But I can already tell you they’ll say it’s the plug-in.

    Regards

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @natsshop

     Why now all of a sudden?

    Given how unique many WordPress setups are, it’s impossible for me to answer that question with the information I have.

    One thing you could do is install the previous version of the plugin and try connecting again. My guess is it will also not work. The connection url, logic, etc has not changed for a long time. Also, your report of a connection is the only one I am seeing at the moment. Given how many people download this plugin daily, it would be widely reported if it were a plugin issue.

    But I can already tell you they’ll say it’s the plug-in

    I would hope they spend some time investigating before responding. When the connection button is disabled, it’s because the request to the connection server failed. All the host needs to do is try to ping the connection server.

    Kind Regards

    Thread Starter natsshop

    (@natsshop)

    Hello,
    for better understanding, I need to add the following: I am redirected to PayPal to log in. After clicking “connect,” I land on the PayPal connection page. A security check is performed, and the login window for email and password appears. Then I confirm my identity by entering a code, and finally I am redirected back to the shop. The “connect” status is not yet achieved. However, I am initially redirected to PayPal.

    It’s always very difficult with further information. I’m still groping in the dark. Of course, I’m investigating the problem. I did that before I wrote. Only when I can’t get any further do I write. And that’s the case now.

    Regards

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @natsshop

    Based on your latest reply, it doesn’t sound like the initial connection request is failing. What browser are you using to connect? If you aren’t using Chrome, I recommend you try with that browser.

    Ensure you have pop ups enabled as well.

    Kind Regards

    Thread Starter natsshop

    (@natsshop)

    Hello,

    yes, I’ve always logged in with Firefox. The pop-up opens. Now I just tried it with Chrome. I don’t see any connection to PayPal in the plug-in. But PayPal just sent me an email, that someone logged in with a new device using Chrome. So I was logged in, but the connection isn’t visible in the plug-in.

    Regards

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @natsshop

    It could be your WordPress site isn’t saving the connection details. Can you try manually adding the client ID and secret key?

    You can create those values by going to developer.paypal.com > Apps & Credentials.

    Kind Regards

    Thread Starter natsshop

    (@natsshop)

    Hello,

    I’ve now rolled back to version 1.1.4. With this version, I was able to connect to PayPal immediately. I’m a little further along now. Any idea what might be causing this? The plug-in only has the new settings for credit cards with PayPal. But I haven’t activated them.

    I am connected to PayPal with my shop. After updating to 1.1.5, I disconnected and tried to reconnect. That didn’t work. Then I went back to 1.1.4. That reconnected me. After updating to 1.1.5 again, I simply didn’t disconnect. But my staging site was always in sandbox mode. Now I have my staging site back on 1.1.4.
    I can connect to PayPal perfectly with this version. It just doesn’t work with version 1.1.5. I just tried it with my staging site: A connection with version 1.1.5 doesn’t work.

    Regards

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @natsshop

    I just ran a test and it looks like that Javascript error might be the reason the connection details aren’t being saved. The JS error is preventing the page reload which is required in order for the settings to be saved.

    We’re troubleshooting now and will release an update ASAP if that proves to be the cause.

    Kind Regards

    Thread Starter natsshop

    (@natsshop)

    Hello,

    thank you very much. I’m also very grateful for any suggestions, if the error is my fault.

    Regards

    Thread Starter natsshop

    (@natsshop)

    Hello,

    I received the following error log from my server:

    Got error ‘PHP message: PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /pymntpl-paypal-woocommerce/src/Rest/Routes/Admin/ConnectAccount.php:52\nStack trace:\n#0
    /pymntpl-paypal-woocommerce/src/Rest/Routes/AbstractRoute.php(28): PaymentPlugins\\WooCommerce\\PPCP\\Rest\\Routes\\Admin\\ConnectAccount->handle_put_request(Object(WP_REST_Request))\n#1 /rest-api/class-wp-rest-server.php(1292): PaymentPlugins\\WooCommerce\\PPCP\\Rest\\Routes\\AbstractRoute->handle_request(Object(WP_REST_Request))\n#2 /rest-api/class-wp-rest-server.php(1125): WP_REST_Server->respond_to_request(Object(WP_REST_Request), ‘/wc-ppcp/v1/adm…’, Array, NULL)\n#3 /rest-api/class-wp-rest-server.php(439): WP_REST_Server->dispatch(Object(WP_REST_Request))\n…’, referer: /admin.php?page=wc-settings&tab=checkout&section=ppcp_api

    Regards Gisela

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @natsshop

    The issue is the Javascript error.

    Please give this update a try and once you confirm, it will be part of the next release. https://drive.google.com/file/d/12gi5h0peM4AyJBS5r-Rnq6_BhEVH27nA/view?usp=drive_link

    Kind Regards

    Thread Starter natsshop

    (@natsshop)

    Hello,

    yes, I’ll do it right away, I just have to wait a moment for the backup to be restored.
    Regards

    Thread Starter natsshop

    (@natsshop)

    Hello,

    yes, it looks great again. It works perfectly again. Thank you very much for all the effort you put into it.
    Best Regards

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @natsshop

    Thank you for confirming and apologies for the issue. Version 1.1.6 is being released in about 5 minutes.

    Kind Regards

Viewing 15 replies - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.