PHP Fatal Error
-
I am getting a PHP error on a page that has a live auction going, I believe this is related to the PHP version being updated.
Fatal error: Uncaught TypeError: Unsupported operand types: float + string in /www/wp-content/plugins/ultimate-woocommerce-auction-pro/includes/class-uwa-product.php:1519
As expected, when I change line 1519 (added float) as so, this fixes the issue:
$curr_price = $storage[$i-1];
$new_bid_inc = $this->get_directbid_variable_bid_inc($curr_price);
$storage[$i] = (float)$storage[$i-1] + $new_bid_inc;
// $storage[$i] = $curr_price + $new_bid_inc;
$val = $storage[$i];
Is this something you can / are going to fix in the plugin on next update?
-
Hello peteincali2103,
Thanks for sharing the error details. We will fix it and update it in the next release of the Ultimate Auction for Woocommerce plugin.-> Could you please share the Woocommerce System Report? It can be found – at WP Admin > Woocommerce > Status > Get System Report.
This will help us analyze the WordPress setup that you are running and be able to reproduce this issue.
Thank You` WordPress Environment WordPress address (URL): https://hyehorse.mysites.io Site address (URL): https://hyehorse.mysites.io WC Version: 8.6.1 REST API Version: ? 8.6.1 WC Blocks Version: ? 11.8.0-dev Action Scheduler Version: ? 3.7.1 Log Directory Writable: ? WP Version: 6.4.3 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – Server Environment Server Info: Flywheel/5.1.0 PHP Version: 8.2.15 PHP Post Max Size: 300 MB PHP Time Limit: 180 PHP Max Input Vars: 10000 cURL Version: 7.68.0 OpenSSL/1.1.1f SUHOSIN Installed: – MySQL Version: 5.7.44-google Max Upload Size: 300 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? Database WC Database Version: 8.6.1 WC Database Prefix: wp_nuh3lxii6q_ Total Database Size: 14.19MB Database Data Size: 11.26MB Database Index Size: 2.93MB wp_nuh3lxii6q_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_nuh3lxii6q_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_nuh3lxii6q_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_nuh3lxii6q_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_auction_direct_payment: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_berocket_termmeta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_braapf_product_stock_status_parent: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_braapf_product_variation_attributes: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_nuh3lxii6q_braapf_term_taxonomy_hierarchical: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_nuh3lxii6q_braapf_variable_attributes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_cleantalk_ac_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_cleantalk_connection_reports: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_cleantalk_no_cookie_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_cleantalk_sessions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_cleantalk_sfw: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_cleantalk_sfw_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_cleantalk_sfw_personal: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_cleantalk_spamscan_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_cleantalk_ua_bl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_cleantalk_wc_spam_orders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_nuh3lxii6q_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_gf_entry: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_gf_entry_meta: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_nuh3lxii6q_gf_entry_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_gf_form_meta: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_gf_form_view: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_gf_rest_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_is_inverted_index: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_nuh3lxii6q_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_options: Data: 5.05MB + Index: 0.09MB + Engine InnoDB wp_nuh3lxii6q_postmeta: Data: 1.31MB + Index: 0.38MB + Engine InnoDB wp_nuh3lxii6q_posts: Data: 2.30MB + Index: 0.06MB + Engine InnoDB wp_nuh3lxii6q_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_term_relationships: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_nuh3lxii6q_user_registration_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_wcfm_daily_analysis: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_wcfm_detailed_analysis: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_enquiries: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_enquiries_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_enquiries_response: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_enquiries_response_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_fbc_chat_rows: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_fbc_chat_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_wcfm_fbc_chat_visitors: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_fbc_offline_messages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_following_followers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_marketplace_orders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_wcfm_marketplace_orders_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_marketplace_product_multivendor: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_wcfm_marketplace_refund_request: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_marketplace_refund_request_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_marketplace_reverse_withdrawal: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_marketplace_reverse_withdrawal_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_marketplace_reviews: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_marketplace_reviews_response: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_marketplace_reviews_response_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_marketplace_review_rating_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_marketplace_shipping_zone_locations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_marketplace_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_marketplace_store_taxonomies: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_marketplace_vendor_ledger: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_marketplace_withdraw_request: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_marketplace_withdraw_request_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_membership_subscription: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_wcfm_messages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_messages_modifier: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_messages_stat: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_support: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_support_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_support_response: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wcfm_support_response_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_wc_orders: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_nuh3lxii6q_wc_orders_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_wc_order_addresses: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_nuh3lxii6q_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_wc_order_operational_data: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_nuh3lxii6q_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_nuh3lxii6q_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_wc_product_attributes_lookup: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_nuh3lxii6q_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_woof_query_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_woof_sd: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_woof_sd_presets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_woo_ua_auction_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wpf_filters: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wpf_meta_data: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp_nuh3lxii6q_wpf_meta_keys: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_wpf_meta_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_nuh3lxii6q_wpf_meta_values_bk: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_wpf_modules: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_wpf_modules_type: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_nuh3lxii6q_wpf_usage_stat: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_nuh3lxii6q_ymm: Data: 0.02MB + Index: 0.02MB + Engine InnoDB Post Type Counts acf-field: 4 acf-field-group: 1 acf-taxonomy: 1 attachment: 22 br_filters_group: 1 br_product_filter: 1 custom_css: 2 customize_changeset: 17 et_body_layout: 4 et_footer_layout: 1 et_header_layout: 2 et_pb_layout: 50 et_template: 37 et_theme_builder: 4 filter-field: 2 filter-set: 2 is_search_form: 4 nav_menu_item: 22 page: 23 post: 3 product: 66 revision: 142 user_registration: 2 wp_global_styles: 2 wp_navigation: 1 wp_template: 2 Security Secure connection (HTTPS): ? Hide errors from visitors: ? Active Plugins (9) Gravity Forms: by Gravity Forms – 2.8.5 Advanced Custom Fields: by WP Engine – 6.2.7 Anti-Spam by CleanTalk: by СleanTalk - Anti-Spam Protection – 6.28 Ultimate WooCommerce Auction Pro - Unlimited: by Nitesh Singh – 2.3.9 User Registration: by WPEverest – 3.1.5 Advanced AJAX Product Filters for WooCommerce: by BeRocket – 1.6.4.6 WooPayments: by Automattic – 7.3.0 WooCommerce: by Automattic – 8.6.1 WP Crontrol: by John Blackbourn & crontributors – 1.16.1 Inactive Plugins (12) ACF: Better Search: by Mateusz Gbiorczyk – 4.2.0 Admin Users Logged In: by Marcel Pol – 1.0.5 Advanced Cron Manager: by BracketSpace – 2.5.2 Filter Everything?— WooCoomerce Product & WordPress Filter: by Andrii Stepasiuk – 1.8.2 HUSKY - Products Filter Professional for WooCommerce: by realmag777 – 1.3.5.2 Ivory Search: by Ivory Search – 5.5.4 Maintenance: by WebFactory Ltd – 4.08 Product Filter by WBW: by WBW – 2.5.5 WCFM - WooCommerce Frontend Manager: by WC Lovers – 6.7.8 WCFM - WooCommerce Multivendor Marketplace: by WC Lovers – 3.6.6 WCFM - WooCommerce Multivendor Membership: by WC Lovers – 2.11.3 YMM Search: by Pektsekye – 1.0.10 Dropin Plugins (1) db-error.php: db-error.php Settings API Enabled: – Force SSL: ? Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: auction (auction) 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 Woo.com: – Enforce Approved Product Download Directories: ? HPOS feature screen enabled: – HPOS feature enabled: – Order datastore: WC_Order_Data_Store_CPT HPOS data sync enabled: ? WC Pages Shop base: #11 - /shop/ Cart: #12 - /cart/ Checkout: #13 - /checkout/ My account: #14 - /my-account/ Terms and conditions: ? Page not set Theme Name: Divi Child Theme Version: 1.0.0 Author URL: https://divilife.com Child Theme: ? Parent Theme Name: Divi Parent Theme Version: 4.24.2 Parent Theme Author URL: https://www.elegantthemes.com WooCommerce Support: ? Templates Overrides: – WooPayments Version: 7.3.0 Connected to WPCOM: ? No Logging: Disabled Admin Enabled Features: activity-panels analytics product-block-editor coupons core-profiler customer-effort-score-tracks import-products-task experimental-fashion-sample-products shipping-smart-defaults shipping-setting-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks product-variation-management product-virtual-downloadable product-external-affiliate product-grouped product-linked remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices woo-mobile-welcome wc-pay-promotion wc-pay-welcome-page Disabled Features: customize-store minified-js new-product-management-experience product-pre-publish-modal settings async-product-editor-category-field Daily Cron: ? Next scheduled: 2024-03-12 18:51:46 -07:00 Options: ? Notes: 76 Onboarding: completed Action Scheduler Complete: 28 Oldest: 2024-02-27 12:54:20 -0800 Newest: 2024-03-12 09:10:58 -0700 Failed: 2 Oldest: 2023-10-16 10:21:05 -0700 Newest: 2024-03-07 10:10:49 -0800 Pending: 1 Oldest: 2024-03-12 11:28:53 -0700 Newest: 2024-03-12 11:28:53 -0700 Status report information Generated at: 2024-03-12 11:15:49 -07:00 `
Also, if there is no bid, then I get the same error, so I actually updated the code again to apply float to both values as such:
$storage[$i] = (float)$storage[$i-1] + (float)$new_bid_inc;
// $storage[$i] = $curr_price + $new_bid_inc;Additionally, when there is no bid made yet, the dropdown for the direct bid, does not increment, and repeats the starting bid value.
Hi There,
Are you using PRO Plugin? It seems so looking at your screenshot. If yes, please send your query here. This forum is only meant for free plugin queries.
- The topic ‘PHP Fatal Error’ is closed to new replies.