Fatal error: Uncaught Error: dirname(): Argument #1 ($path) must be of type string, bool given
in /var/www/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/services.php on line 156

Call stack:

  1. dirname()
    wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/services.php:156
  2. WooCommerce\P\B\ButtonModule::WooCommerce\P\B\{closure}()
    wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/DelegatingContainer.php:117
  3. WooCommerce\P\V\D\C\DelegatingContainer::invokeFactory()
    wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/DelegatingContainer.php:56
  4. WooCommerce\P\V\D\C\DelegatingContainer::get()
    wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/services.php:129
  5. WooCommerce\P\B\ButtonModule::WooCommerce\P\B\{closure}()
    wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/DelegatingContainer.php:117
  6. WooCommerce\P\V\D\C\DelegatingContainer::invokeFactory()
    wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/DelegatingContainer.php:56
  7. WooCommerce\P\V\D\C\DelegatingContainer::get()
    wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/CompositeContainer.php:53
  8. WooCommerce\P\V\D\C\CompositeContainer::get()
    wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/CachingContainer.php:61
  9. WooCommerce\P\V\D\C\CachingContainer::WooCommerce\P\V\D\C\{closure}()
    wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/CachingContainer.php:161
  10. WooCommerce\P\V\D\C\CachingContainer::invokeGenerator()
    wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/CachingContainer.php:128
  11. WooCommerce\P\V\D\C\CachingContainer::getCached()
    wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/CachingContainer.php:62
  12. WooCommerce\P\V\D\C\CachingContainer::get()
    wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/ButtonModule.php:56
  13. WooCommerce\P\B\ButtonModule::WooCommerce\P\B\{closure}()
    wp-includes/class-wp-hook.php:324
  14. WP_Hook::apply_filters()
    wp-includes/class-wp-hook.php:348
  15. WP_Hook::do_action()
    wp-includes/plugin.php:565
  16. do_action_ref_array()
    wp-includes/class-wp.php:830
  17. WP::main()
    wp-includes/functions.php:1336
  18. wp()
    wp-blog-header.php:16
  19. require()
    index.php:17

Query Monitor


Fatal error: Uncaught TypeError: dirname(): Argument #1 ($path) must be of type string, bool given in /var/www/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/services.php:156 Stack trace: #0 /var/www/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/services.php(156): dirname(false, 3) #1 /var/www/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/DelegatingContainer.php(117): WooCommerce\PayPalCommerce\Button\ButtonModule::WooCommerce\PayPalCommerce\Button\{closure}(Object(WooCommerce\PayPalCommerce\Vendor\Dhii\Container\DelegatingContainer)) #2 /var/www/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/DelegatingContainer.php(56): WooCommerce\PayPalCommerce\Vendor\Dhii\Container\DelegatingContainer->invokeFactory(Object(Closure)) #3 /var/www/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/services.php(129): WooCommerce\PayPalCommerce\Vendor\Dhii\Container\DelegatingContainer->get('button.url') #4 /var/www/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/DelegatingContainer.php(117): WooCommerce\PayPalCommerce\Button\ButtonModule::WooCommerce\PayPalCommerce\Button\{closure}(Object(WooCommerce\PayPalCommerce\Vendor\Dhii\Container\DelegatingContainer)) #5 /var/www/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/DelegatingContainer.php(56): WooCommerce\PayPalCommerce\Vendor\Dhii\Container\DelegatingContainer->invokeFactory(Object(Closure)) #6 /var/www/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/CompositeContainer.php(53): WooCommerce\PayPalCommerce\Vendor\Dhii\Container\DelegatingContainer->get('button.smart-bu...') #7 /var/www/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/CachingContainer.php(61): WooCommerce\PayPalCommerce\Vendor\Dhii\Container\CompositeContainer->get('button.smart-bu...') #8 /var/www/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/CachingContainer.php(161): WooCommerce\PayPalCommerce\Vendor\Dhii\Container\CachingContainer->WooCommerce\PayPalCommerce\Vendor\Dhii\Container\{closure}() #9 /var/www/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/CachingContainer.php(128): WooCommerce\PayPalCommerce\Vendor\Dhii\Container\CachingContainer->invokeGenerator(Object(Closure)) #10 /var/www/wp-content/plugins/woocommerce-paypal-payments/lib/packages/Dhii/Container/CachingContainer.php(62): WooCommerce\PayPalCommerce\Vendor\Dhii\Container\CachingContainer->getCached('button.smart-bu...', Object(Closure)) #11 /var/www/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/ButtonModule.php(56): WooCommerce\PayPalCommerce\Vendor\Dhii\Container\CachingContainer->get('button.smart-bu...') #12 /var/www/wp-includes/class-wp-hook.php(324): WooCommerce\PayPalCommerce\Button\ButtonModule::WooCommerce\PayPalCommerce\Button\{closure}(Object(WP)) #13 /var/www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #14 /var/www/wp-includes/plugin.php(565): WP_Hook->do_action(Array) #15 /var/www/wp-includes/class-wp.php(830): do_action_ref_array('wp', Array) #16 /var/www/wp-includes/functions.php(1336): WP->main('') #17 /var/www/wp-blog-header.php(16): wp() #18 /var/www/index.php(17): require('/var/www/wp-blo...') #19 {main} thrown in /var/www/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/services.php on line 156