• Resolved steinguru

    (@steinguru)


    Hallo! Zun?chst einmal: Vielen Dank für das PlugIn und den netten Support auf Deutsch!

    Leider funktioniert das PlugIn bei uns nicht. Nach dem Speichern der Einstellungen bekommen wir eine leere Seite angezeigt. Wenn man die leere Seite leloadet, sind die Einstellungen gespeichert und die Einstellungen erscheinen ganz normal.

    Leider wird keine ID ausgefüllt, daher bekommen wir beim Zahlen die Fehlermeldung, dass gerade keine Zahlungen m?glich sind.

    Haben es mit PHP 7.1 und 7.0 probiert (jeweils die FPM und CGI Version), immer das gleiche Bild. Sowohl bei Sandbox als auch bei LIVE-Betrieb. WP-Version ist 4.7.4 und Woocommerce l?uft mit Version 3.0.6.

    K?nnen wir irgendetwas tun?

    • This topic was modified 7 years, 10 months ago by steinguru.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Biont

    (@biont)

    Hallo steinguru,

    Beim Speichern der Settings versucht das Plugin die eingegebenen Credentials zu verifizieren, und danach, die eingegebenen Daten für das Experience Profile zu übertragen.

    Unter wp-content/uploads/wc-logs/ findest du eine “paypal_*.log” Datei, die Infos über die stattgefundenen API Requests zu PayPal beinhaltet. Es k?nnte uns schonmal weiterbringen, wenn du dort nachsiehst, und den Inhalt hier postest.

    Da du aber eine wei?e Seite bekommst, muss noch was ?rgeres vorliegen, sprich: “PHP selbst steigt aus”, was natürlich sehr unsch?n ist. Daher w?re es hilfreich, wenn du dein PHP error.log auch posten k?nntest.

    Danke schonmal und schone Grü?e!

    Thread Starter steinguru

    (@steinguru)

    Vielen Dank für die Antwort. Habe mich leider falsch ausgedrückt, ich bekomme keine leere, wei?e Seite, sondern mein normales Backend wird angezeigt. Nur auf der rechten Seite, wo vor dem Speichern die Einstellungen waren, ist alles komplett grau (es sind einfach alle Felder, Schrift etc. verschwunden).

    Das sagt die Log:

    ——————————————————————————————————————————–

    [15-05-2017 07:31:07] PayPal\Core\PayPalHttpConnection: INFO : Response Status : 200
    [15-05-2017 07:31:07] PayPal\Core\PayPalHttpConnection: DEBUG : Response Headers : HTTP/1.1 200 OK, Date: Mon, 15 May 2017 07:31:07 GMT, Server: Apache, paypal-debug-id: 8cfde18c285c1, Content-Language: *, Paypal-Debug-Id: 8cfde18c285c1, Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dplatformapiserv%26TIME%3D995694937%26HTTP_X_PP_AZ_LOCATOR%3D; Expires=Mon, 15 May 2017 08:01:07 GMT; domain=.paypal.com; path=/; Secure; HttpOnly, Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT, Vary: Authorization, Content-Length: 25, Connection: close, Content-Type: application/json, ,
    [15-05-2017 07:31:07] PayPal\Core\PayPalHttpConnection: DEBUG : Response Data : {“payments”:[],”count”:0}

    ================================================================================================================================

    [15-05-2017 07:32:52] PayPal\Core\PayPalHttpConnection: INFO : GET https://api.sandbox.paypal.com/v1/payments/payment?count=1
    [15-05-2017 07:32:53] PayPal\Core\PayPalHttpConnection: DEBUG : Request Headers : GET /v1/payments/payment?count=1 HTTP/1.1, Host: api.sandbox.paypal.com, Accept: */*, Content-Type: application/json, User-Agent: PayPalSDK/PayPal-PHP-SDK 1.6.4 (platform-ver=7.0.15; bit=32; os=Linux_2.6.32.71-kvm-32cpu-06; machine=x86_64; crypto-lib-ver=1.0.2f; curl=7.46.0), Authorization: Bearer A21AAE-p9yzq3O9eoFDMd2JoyFcVQg5HRf8XsuzycL5Vpqnc5h4pVWJgl0y_2cax6PLhJ6EjrcApEjPMyyWySnFLtx84U-VYA, PayPal-Partner-Attribution-Id: WooCommerce_Cart_Plus, ,
    [15-05-2017 07:32:53] PayPal\Core\PayPalHttpConnection: DEBUG : No Request Payload
    ——————————————————————————————————————————–

    [15-05-2017 07:32:53] PayPal\Core\PayPalHttpConnection: INFO : Response Status : 200
    [15-05-2017 07:32:53] PayPal\Core\PayPalHttpConnection: DEBUG : Response Headers : HTTP/1.1 200 OK, Date: Mon, 15 May 2017 07:32:53 GMT, Server: Apache, paypal-debug-id: ba287cfa8b165, Content-Language: *, Paypal-Debug-Id: ba287cfa8b165, Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dplatformapiserv%26TIME%3D2774079833%26HTTP_X_PP_AZ_LOCATOR%3D; Expires=Mon, 15 May 2017 08:02:53 GMT; domain=.paypal.com; path=/; Secure; HttpOnly, Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT, Vary: Authorization, Content-Length: 25, Connection: close, Content-Type: application/json, ,
    [15-05-2017 07:32:53] PayPal\Core\PayPalHttpConnection: DEBUG : Response Data : {“payments”:[],”count”:0}

    ================================================================================================================================

    Thread Starter steinguru

    (@steinguru)

    Was vielleicht noch hilft: Wenn ich “falsche” ID’s eingebe und auf Speichern drücke, wird die Seite perfekt dargestellt, inklusive dem Hinweis oben, dass ich falsche Daten eingegeben habe.

    Nur, wenn ich die korrekten Daten eingebe, klappt es nicht…

    Plugin Author Biont

    (@biont)

    Okay, wir brauchen trotzdem dein PHP error log. Sicherlich gibt es irgendwo einen Fehler und WordPress h?rt quasi auf zu rendern. Das würde zu deiner Beschreibung passen.

    Kannst du da bitte mal nachschauen? Das Log von PayPal, das du gepostet hast, sieht n?mlich “leider” okay aus.

    Viele Grü?e,

    Moritz

    Thread Starter steinguru

    (@steinguru)

    Das ist der Log (das XXXXX ist nachtr?glich von uns eingetragen worden):

    [22-May-2017 09:29:59 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-help.php on line 202
    [22-May-2017 09:29:59 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-help.php on line 207
    [22-May-2017 09:29:59 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php on line 37
    [22-May-2017 09:29:59 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/gateways/paypal/includes/settings-paypal.php on line 126
    [22-May-2017 09:29:59 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/admin/class-wc-admin.php on line 223
    [22-May-2017 09:30:03 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-help.php on line 202
    [22-May-2017 09:30:03 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-help.php on line 207
    [22-May-2017 09:30:03 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php on line 37
    [22-May-2017 09:30:03 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/gateways/paypal/includes/settings-paypal.php on line 126
    [22-May-2017 09:30:03 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/admin/class-wc-admin.php on line 223
    [22-May-2017 09:30:06 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-help.php on line 202
    [22-May-2017 09:30:06 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-help.php on line 207
    [22-May-2017 09:30:06 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php on line 37
    [22-May-2017 09:30:06 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/gateways/paypal/includes/settings-paypal.php on line 126
    [22-May-2017 09:30:06 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/admin/class-wc-admin.php on line 223
    [22-May-2017 09:30:11 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-help.php on line 202
    [22-May-2017 09:30:11 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-help.php on line 207
    [22-May-2017 09:30:11 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php on line 37
    [22-May-2017 09:30:11 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/gateways/paypal/includes/settings-paypal.php on line 126
    [22-May-2017 09:30:11 UTC] PHP Fatal error: Uncaught Error: Call to undefined method PayPal\Rest\ApiContext::setRequestId() in /html/XXXXX/wp-content/plugins/woo-paypalplus/src/WC/PayPalPlusGateway.php:209
    Stack trace:
    #0 /html/XXXXX/wp-content/plugins/woo-paypalplus/src/WC/PayPalPlusGateway.php(301): WCPayPalPlus\WC\PayPalPlusGateway->get_api_context()
    #1 /html/XXXXX/wp-includes/class-wp-hook.php(298): WCPayPalPlus\WC\PayPalPlusGateway->on_save(”)
    #2 /html/XXXXX/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
    #3 /html/XXXXX/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #4 /html/XXXXX/wp-content/plugins/woocommerce/includes/admin/settings/class-wc-settings-checkout.php(367): do_action(‘woocommerce_upd…’)
    #5 /html/XXXXX/wp-includes/class-wp-hook.php(298): WC_Settings_Payment_Gateways->save(”)
    #6 /html/XXXXX/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
    #7 /html/XXXXX/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #8 /html/XXXXX/wp-content in /html/XXXXX/wp-content/plugins/woo-paypalplus/src/WC/PayPalPlusGateway.php on line 209
    [22-May-2017 09:30:17 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-help.php on line 202
    [22-May-2017 09:30:17 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-help.php on line 207
    [22-May-2017 09:30:17 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/gateways/paypal/class-wc-gateway-paypal.php on line 37
    [22-May-2017 09:30:17 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/gateways/paypal/includes/settings-paypal.php on line 126
    [22-May-2017 09:30:17 UTC] PHP Warning: sprintf(): Too few arguments in /html/XXXXX/wp-content/plugins/woocommerce/includes/admin/class-wc-admin.php on line 223

    Plugin Author Biont

    (@biont)

    Danke für das log.
    Das ist enorm mysteri?s. Der spannende Teil ist der hier:

    PHP Fatal error: Uncaught Error: Call to undefined method PayPal\Rest\ApiContext::setRequestId() in /html/XXXXX/wp-content/plugins/woo-paypalplus/src/WC/PayPalPlusGateway.php:209

    ApiContext::setRequestId ist aber definitiv vorhanden in der Version des PayPal SDK, die mit dem Plugin geliefert wird.

    Hast du noch weitere Plugins laufen, die mit PayPal zusammenarbeiten? Eines von denen k?nnte zB. eine ?ltere Version des PayPal SDK verwenden, wodurch es zu einer Namenskollision kommt.

    F?llt dir dazu was ein?

    Vielen Dank,

    Moritz

    Thread Starter steinguru

    (@steinguru)

    Ja, wir nutzen noch PayPal for WooCommerce für unsere Subscriptions.

    Hatte das nach dem Lesen der Kommentare hier so verstanden, dass PayPal Plus unabh?ngig von anderen PlugIns l?uft.

    Ich würde mal versuchen, das zu deaktivieren, meine Frage w?re dann aber: Ist euer PayPal Plus PlugIn kompatibel mit Woocommerce Subscriptions?

    Thread Starter steinguru

    (@steinguru)

    Guten Morgen,

    wir haben das “normale” PayPal PlugIn komplett deaktiviert. Leider tritt der Fehler immer noch auf…

    Viele Grü?e!

    Plugin Author Biont

    (@biont)

    Guten Morgen steinguru,

    Danke dir für die Rückmeldung. Noch weitere Plugins, die PayPal benutzen, sind dir vermutlich nicht bekannt? Ich vermute immer noch, dass wir hier eine alte Version des PayPal SDK untergeschoben bekommen, und unsere eigene daher gar nicht laden k?nnen. Es ist im Grunde die einzig plausible Erkl?rung, weswegen es sehr komisch ist, dass das Problem auch nach Deaktivierung immer noch auftritt.

    Ich habe das jedenfalls als Bug aufgenommen und werde mir eine L?sung überlegen.

    Danke dir nochmals!

    Moritz

    Thread Starter steinguru

    (@steinguru)

    Hallo nochmal,

    so, ich hab jetzt manuell in der DB und aufm FTP alle Fragmente des anderen PayPal Plugins entfernt, jetzt funktioniert es ??

    Seite wird geladen und auch die ID wird korrekt ausgefüllt.

    Vielen Dank für den tollen Support!

    Einzig die Subscriptions funktionieren nicht, da WooCommerce euer PlugIn nicht für wiederkehrende Zahlungen “freigibt”.

    Kann man da noch was drehen bzw. plant ihr das für die Zukunft? Oder klappt das schon und ich mache nur was falsch?

    Viele Grü?e

    steinguru

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Leere Seite nach Speichern der Einstellungen’ is closed to new replies.