PHP Fatal Error
-
Hi,
I am getting Fatal error:PHP Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, non-static method WooCommerce\PayPalCommerce\Button\Assets\SmartButton::button_renderer() cannot be called statically in <path>/public_html/wp-includes/class-wp-hook.php:303
Error happens when I am trying to access any product page. PayPal buttons are DISABLED on all pages except checkout.
I think, it started to happen after upgrade of plugin to 1.6.3.
I tried to switch the theme to twentytwentyone — same problem.WooCommerce 5.9, WP is at the latest. Running PHP8
At the moment, I disabled the plugin to get site back.
Any ideas what is wrong?
Thanks,
Rudolf
-
Hi @rudolfl,
Previous plugin versions can be downloaded from the bottom of this page: https://www.ads-software.com/plugins/woocommerce-paypal-payments/advanced/
This error may be a conflict caused by an interaction with another plugin if the problem does not persist when you disable all plugins except for WooCommerce and PayPal Payments.
To better judge what could be causing this, we would need a copy of your WooCommerce system report. The system report can be accessed from here:
WooCommerce > Status > Get system report > Copy for support
You can share it either here in the forums or better privately with us from here:
https://paypal.inpsyde.com/docs/request-support/Thanks!
Kind regards,
NiklasHello,
I’m having the same error.
Basically, plugin is not compatible with PHP 8 and will not be for a while
Rudolf
To clarify, PayPal Payments is officially compatible with PHP 8, but the specific combination of PayPal Payments, PHP 8, and the Avada Builder plugin may be causing the reported error. According to our tests, the best workaround, for now, would be using an older PHP version like PHP7.4 until we have managed to include a potential solution in a future update.
Kind regards,
NiklasI am having the same issue, BUT my php version is 7.3 any help would be appreciated…
Deprecated: Non-static method WooCommerce\PayPalCommerce\Button\Assets\SmartButton::button_renderer() should not be called statically in /var/www/wp-includes/class-wp-hook.php on line 307
I have also tried to install version 1.6.3 – 1.6.4 & 1.6.5…
Help, still receiving this message..
- This reply was modified 2 years, 9 months ago by websitegirlCa.
Hello!
I’m having the same issue.
This my woocommerce report.### WordPress Environment ### WordPress address (URL): https://equibalanceofficial.com Site address (URL): https://equibalanceofficial.com WC Version: 6.3.1 REST API Version: ? 6.3.1 WC Blocks Version: ? 6.9.0 Action Scheduler Version: ? 3.4.0 WC Admin Version: ? 3.2.1 Log Directory Writable: ? WP Version: 5.9.2 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: ? WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 8.0.16 PHP Post Max Size: 516 MB PHP Time Limit: 180 PHP Max Input Vars: 2060 cURL Version: 7.81.0 OpenSSL/1.1.1m SUHOSIN Installed: – MySQL Version: 5.7.23-23 Max Upload Size: 512 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.3.1 WC Database Prefix: wp_ Total Database Size: 70.57MB Database Data Size: 65.86MB Database Index Size: 4.71MB wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 0.20MB + Index: 0.22MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 0.19MB + Index: 0.16MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_fbv: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_fbv_attachment_folder: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_fusion_forms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_fusion_form_entries: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_fusion_form_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_fusion_form_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_gla_budget_recommendations: Data: 0.22MB + Index: 0.14MB + Engine InnoDB wp_gla_merchant_issues: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_gla_shipping_rates: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_gla_shipping_times: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_mapping_to_external_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_newsletter_templates: Data: 2.52MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_scheduled_tasks: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_sending_queues: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_subscribers: Data: 0.02MB + Index: 0.13MB + Engine InnoDB wp_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_mailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Data: 9.03MB + Index: 0.11MB + Engine InnoDB wp_postmeta: Data: 2.50MB + Index: 0.59MB + Engine InnoDB wp_posts: Data: 39.03MB + Index: 0.27MB + Engine InnoDB wp_rednaowooextraproduct_global_table: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_css: Data: 0.14MB + Index: 0.02MB + Engine InnoDB wp_revslider_css_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_layer_animations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_navigations_bkp: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_revslider_sliders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_revslider_sliders_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_revslider_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_revslider_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_revslider_static_slides: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_revslider_static_slides_bkp: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.09MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.05MB + Index: 0.09MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfconfig: Data: 0.09MB + Index: 0.00MB + Engine InnoDB wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wffilemods: Data: 6.52MB + Index: 0.00MB + Engine InnoDB wp_wfhits: Data: 0.05MB + Index: 0.05MB + Engine InnoDB wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wfknownfilelist: Data: 2.52MB + Index: 0.00MB + Engine InnoDB wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wflogins: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wfstatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wapo_addons: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yith_wapo_blocks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_yoast_indexable: Data: 0.14MB + Index: 0.13MB + Engine InnoDB wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_seo_links: Data: 0.13MB + Index: 0.09MB + Engine InnoDB ### Post Type Counts ### attachment: 315 custom_css: 1 customize_changeset: 2 fusion_element: 2 fusion_form: 1 fusion_tb_layout: 1 fusion_tb_section: 2 mailpoet_page: 1 nav_menu_item: 12 page: 30 post: 5 product: 90 product_variation: 48 revision: 725 shop_order: 3 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ?Error messages should not be shown to visitors. ### Active Plugins (8) ### Advanced Custom Fields PRO: by Delicious Brains – 5.9.8 Avada Builder: by ThemeFusion – 3.6.1 Avada Core: by ThemeFusion – 5.6.1 Slider Revolution: by ThemePunch – 6.5.15 WooCommerce Category Slider Pro: by pluginever – 4.0.1 Category Slider for WooCommerce: by ShapedPlugin – 1.4.5 WooCommerce PayPal Payments: by WooCommerce – 1.7.0 WooCommerce: by Automattic – 6.3.1 ### Inactive Plugins (11) ### Checkout Field Editor for WooCommerce: by ThemeHigh – 1.6.0 Currency Switcher for WooCommerce: by WP Wham – 2.15.0 Extra Product Options Builder for WooCommerce Pro: by – 1.2.43 Jetpack: by Automattic – 10.7 Mailchimp for WooCommerce: by Mailchimp – 2.6.1 Smush: by WPMU DEV – 3.9.5 Sold Out Badge for WooCommerce: by Charlie Etienne – 4.3.0 Under Construction: by WebFactory Ltd – 3.92 W3 Total Cache: by BoldGrid – 2.2.1 WooCommerce Payments: by Automattic – 3.9.0 Wordfence Security: by Wordfence – 7.5.9 ### Must Use Plugins (1) ### Endurance Page Cache: by Mike Hansen – 2.2 ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) Currency Position: right_space Thousand Separator: . Decimal Separator: , Number of Decimals: 0 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ? ### WC Pages ### Shop base: #6465 - /shop-product/ Cart: #7 - /cart/ Checkout: #8 - /checkout/ My account: ? Page not set Terms and conditions: ? Page not set ### Theme ### Name: Avada Version: 7.6.1 Author URL: https://themeforest.net/user/ThemeFusion Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: Avada/woocommerce/cart/cart.php Avada/woocommerce/checkout/form-pay.php Avada/woocommerce/checkout/review-order.php Avada/woocommerce/checkout/thankyou.php Avada/woocommerce/loop/loop-start.php Avada/woocommerce/single-product/add-to-cart/variable.php Avada/woocommerce/single-product/short-description.php Avada/woocommerce/single-product/tabs/additional-information.php Avada/woocommerce/single-product/tabs/description.php ### WooCommerce PayPal Payments ### Onboarded: ? Shop country code: LB WooCommerce currency supported: ? PayPal card processing available in country: – Pay Later messaging available in country: – Webhook status: – Vault enabled: ? Logging enabled: – Reference Transactions: ? Used PayPal Checkout plugin: – ### Action Scheduler ### Complete: 795 Oldest: 2022-02-28 10:36:03 +0200 Newest: 2022-03-28 13:17:29 +0300 ### Status report information ### Generated at: 2022-03-28 14:07:15 +03:00
There is NO solution yet, which is quite frustrating. It was a while…
Options are:
1. Drop PHP version to 7.3
2. Drop this plugin and use original one. Yes, it is end of life, but it works. Or find another PayPal plugin that works.Rudolf
This should be working fine now with the latest version of the Avada theme/plugins so I’ll mark this thread resolved. We regret to hear this issue has taken so long but it was outside of our hands to address.
Kind regards,
NiklasActually, I think the issue is still there. I just installed Woocommerce Fast Cart by Barn2 and get the same critical error. I initially thought it was just a conflict with Barn2’s plugin, but given other users are reporting it I think it more likely that the Barn2 plugin is just making a wider issue visible.
It seems you guys still have a lot of bugs in this plugin to iron out? Please can you advise a fix that does not involve rolling back the PHP version?
thanks
I have the same problem too.
Inconceivable not to have paypal on the site.
I installed it today 04/12/2022 with the latest version of avada.
How do I solve the problem?
- The topic ‘PHP Fatal Error’ is closed to new replies.