Sebastian
Forum Replies Created
-
Forum: Plugins
In reply to: [PayPal Plus for WooCommerce] Paypal script download every minuteI just noticed that the Paypal scripts got updated often and some requests ran very slowly. Those which where downloading the Paypal scripts. That wouldn’t be very worrying if it happened once a week as was intended.
Just as I said the plugin doesn’t initialize during execution of WordPress CRON schedules. The intended hook (paypalplus.assets_cache_cron_schedule_hook) is therefore not executed and also not rescheduled. The next time the plugin initializes a new CRON schedule is registered and the Paypal scripts are downloaded again.- This reply was modified 6 years ago by Sebastian.
wordpress status report
Hier der Statusreport. Allerdings schon mit der von 3.8 auf 4.1.0 aktualisierten Woocommerceversion.In meiner Entwicklungsumgebung sind keine Caches beteiligt. Ich sehe auch nicht, wie das eine Rolle spielen sollte.
Ich habe nach einem Workaround für das Problem gesucht und festgestellt, dass in /wp-content/plugins/woo-paypalplus/public/js/front.min.js ein Wert isConflictVersion abgefragt wird. Wenn dieser gesetzt ist, werden auch bei spätem window.load Event die Zahlungsarten korrekt geladen. isConflictVersion ist allerdings nur mit Woocommerce >=3.9 gesetzt. Workaround ist hier also eine neuere Woocommerce Version oder isConflictVersion immer zu setzen.
Beste Grüße, Sebastian
Forum: Plugins
In reply to: [PayPal Plus for WooCommerce] installation$initilized = WP_Filesystem(false, wp_upload_dir()['basedir']);
Löst bei mir zumindest Problem Nummer 3. Soweit ich das überblicke, wird nur Zugang zum Uploadverzeichnis benötigt.Beste Grüße
SebastianForum: Plugins
In reply to: [PayPal Plus for WooCommerce] installationIch habe das gleiche Problem, sowohl mit der Version von ww.wp.xz.cn als auch die unter https://we.tl/t-UP9VNtZ176 herunterladbare Version.
Beim Debuggen sind mir mehrere Probleme aufgefallen.
1. Exceptions werden abgefangen und unterdrückt. Nur mit WP_DEBUG passiert das nicht. (Das ist grundsätzlich eine schlechte Idee. Führt unter anderem dazu, dass ich 2h unnötig nach diesem Problem fahnden muss, welches eigentlich in 5min aufgeklärt sein könnte.)
2. Der verwendete Logger wirft eine Exception.10.150.40.200 - 11/May/2020:13:29:53 +0000 "GET /wordpress/wp-admin/admin.php" 500 NOTICE: PHP message: PHP Fatal error: Uncaught WCPayPalPlus\Service\Exception\NameNotFound: There is neither a value or service named 'Inpsyde\Lib\Psr\Log\LoggerInterface'. in /var/www/html/wp-content/plugins/woo-paypalplus/src/Service/Exception/NameNotFound.php:23 Stack trace: #0 /var/www/html/wp-content/plugins/woo-paypalplus/src/Service/Container.php(115): WCPayPalPlus\Service\Exception\NameNotFound::forName('Inpsyde\\Lib\\Psr...') #1 /var/www/html/wp-content/plugins/woo-paypalplus/src/Http/ServiceProvider.php(43): WCPayPalPlus\Service\Container->get('Inpsyde\\Lib\\Psr...') #2 /var/www/html/wp-content/plugins/woo-paypalplus/src/Service/ServiceProvidersCollection.php(68): WCPayPalPlus\Http\ServiceProvider->register(Object(WCPayPalPlus\Service\Container)) #3 /var/www/html/wp-content/plugins/woo-paypalplus/src/PayPalPlus.php(57): WCPayPalPlus\Service\ServiceProvidersCollection->applyMethod('register', Object(WCPayPalPlus\Service\Container)) #4 /var/www/html/wp-content/plugins/woo-paypalplus/src/Bootstrapper.php(79): WCPayPalPlus\PayPalPlus->boots in /var/www/html/wp-content/plugins/woo-paypalplus/src/Service/Exception/NameNotFound.php on line 233. WP_Filesystem wird vorausgesetzt. Dies steht bei mir nicht zur Verfügung, da die Rechte im Dateisystem dafür nicht ausreichen. Das hat dann Folgefehler, da Http::ServiceProvider::register nicht komplett initialisiert.
NOTICE: PHP message: There were problem in initializing Wp FileSystem NOTICE: PHP message: PHP Fatal error: Uncaught WCPayPalPlus\Service\Exception\NameNotFound: There is neither a value or service named 'WCPayPalPlus\Http\PayPalAssetsCache\AssetsStoreUpdater'. in /var/www/html/wp-content/plugins/woo-paypalplus/src/Service/Exception/NameNotFound.php:23 10.150.40.200 - 11/May/2020:13:32:18 +0000 "GET /wordpress/wp-admin/admin.php" 500 Stack trace: #0 /var/www/html/wp-content/plugins/woo-paypalplus/src/Service/Container.php(115): WCPayPalPlus\Service\Exception\NameNotFound::forName('WCPayPalPlus\\Ht...') #1 /var/www/html/wp-content/plugins/woo-paypalplus/src/Install/ServiceProvider.php(28): WCPayPalPlus\Service\Container->get('WCPayPalPlus\\Ht...') #2 /var/www/html/wp-content/plugins/woo-paypalplus/src/Service/Container.php(127): WCPayPalPlus\Install\ServiceProvider->WCPayPalPlus\Install\{closure}(Object(WCPayPalPlus\Service\Container)) #3 /var/www/html/wp-content/plugins/woo-paypalplus/src/Service/Container.php(331): WCPayPalPlus\Service\Container->get('WCPayPalPlus\\In...') #4 /var/www/html/wp-content/plugins/woo-paypalplus/src/Install/ServiceProvider.php(38): WCPayPalPlus\Service\Container->offs in /var/www/html/wp-content/plugins/woo-paypalplus/src/Service/Exception/NameNotFound.php on line 23