• Resolved tkeyesjr

    (@tkeyesjr)


    On all my product pages i’m getting an annoying error that says…

    Warning: array_sum() expects parameter 1 to be array, string given in /home2/kiickash/public_html/steppingupms.com/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-product.php on line 1123

    I’m still able to view the products but I can’t get this error to go away. It’s right above the short product description.

    I’ve tried adding some code to the abstract-wc-product.php file error_reporting(0);as suggested on https://wordimpress.com/php-turn-on-or-off-error-reporting/. However that did not work. I just got a php error that broke my site. Maybe I didn’t add it correctly. (I’m not a developer and have very limited knowledge about code.)

    I also tried updating the woocommerce plugin and reinstalling but no luck.

    Oh, before this happened I just did a large product import using a .csv import plugin. Maybe that had something to do with it.

    Any help would be appreciated.

    Site link: https://steppingupms.com/ms-art-auction

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Are you still experiencing the same issue after deactivating all of your plugins (except WooCommerce) and switching to the default Twenty Sixteen theme?

    Thread Starter tkeyesjr

    (@tkeyesjr)

    Yes I am still having the same issue.

    Thread Starter tkeyesjr

    (@tkeyesjr)

    Oh, I forgot to put a copy of my woocommerce system report.

    
    ### WordPress Environment ###
    
    Home URL: https://steppingupms.com
    Site URL: https://steppingupms.com
    WC Version: 2.6.8
    Log Directory Writable: ?
    WP Version: 4.6.1
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: –
    WP Cron: ?
    Language: en_US
    
    ### Server Environment ###
    
    Server Info: Apache
    PHP Version: ? 5.5.38 - We recommend a minimum PHP version of 5.6. See: How to update your PHP version
    PHP Post Max Size: 64 MB
    PHP Time Limit: 30
    PHP Max Input Vars: 1000
    cURL Version: 7.19.7
    NSS/3.21 Basic ECC
    
    SUHOSIN Installed: –
    MySQL Version: 5.6.32
    Max Upload Size: 64 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Database ###
    
    WC Database Version: 2.6.8
    : 
    woocommerce_sessions: ?
    woocommerce_api_keys: ?
    woocommerce_attribute_taxonomies: ?
    woocommerce_downloadable_product_permissions: ?
    woocommerce_order_items: ?
    woocommerce_order_itemmeta: ?
    woocommerce_tax_rates: ?
    woocommerce_tax_rate_locations: ?
    woocommerce_shipping_zones: ?
    woocommerce_shipping_zone_locations: ?
    woocommerce_shipping_zone_methods: ?
    woocommerce_payment_tokens: ?
    woocommerce_payment_tokenmeta: ?
    MaxMind GeoIP Database: ?
    
    ### Active Plugins (1) ###
    
    WooCommerce: by WooThemes – 2.6.8
    
    ### Settings ###
    
    Force SSL: –
    Currency: USD ($)
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Number of Decimals: 2
    
    ### API ###
    
    API Enabled: ?
    
    ### WC Pages ###
    
    Shop Base: #357 - /events/all-kinds-of-art-fundraiser-for-ms/
    Cart: #71 - /cart/
    Checkout: #72 - /checkout/
    My Account: #73 - /my-account/
    
    ### Taxonomies ###
    
    Product Types: auction (auction)
    donation (donation)
    external (external)
    grouped (grouped)
    simple (simple)
    variable (variable)
    
    ### Theme ###
    
    Name: Flatsome Child
    Version: 3.0
    Author URL: 
    Child Theme: ?
    Parent Theme Name: Flatsome
    Parent Theme Version: 3.1.6
    Parent Theme Author URL: https://www.uxthemes.com/
    WooCommerce Support: ?
    
    ### Templates ###
    
    Overrides: flatsome/woocommerce/archive-product.php
    flatsome/woocommerce/cart/cart-empty.php
    flatsome/woocommerce/cart/cart.php
    flatsome/woocommerce/checkout/form-checkout.php
    flatsome/woocommerce/checkout/form-coupon.php
    flatsome/woocommerce/checkout/thankyou.php
    flatsome/woocommerce/content-product.php
    flatsome/woocommerce/content-product_cat.php
    flatsome/woocommerce/content-single-product.php
    flatsome/woocommerce/global/breadcrumb.php
    flatsome/woocommerce/global/quantity-input.php
    flatsome/woocommerce/global/wrapper-end.php
    flatsome/woocommerce/global/wrapper-start.php
    flatsome/woocommerce/loop/loop-end.php
    flatsome/woocommerce/loop/loop-start.php
    flatsome/woocommerce/loop/orderby.php
    flatsome/woocommerce/loop/pagination.php
    flatsome/woocommerce/loop/result-count.php
    flatsome/woocommerce/loop/sale-flash.php
    flatsome/woocommerce/myaccount/form-login.php
    flatsome/woocommerce/myaccount/navigation.php
    flatsome/woocommerce/notices/error.php
    flatsome/woocommerce/notices/notice.php
    flatsome/woocommerce/notices/success.php
    flatsome/product-searchform.php version - is out of date. The core version is 2.5.0
    flatsome/woocommerce/single-product/price.php
    flatsome/woocommerce/single-product/product-image.php
    flatsome/woocommerce/single-product/product-thumbnails.php
    flatsome/woocommerce/single-product/related.php
    flatsome/woocommerce/single-product/review.php
    flatsome/woocommerce/single-product/sale-flash.php
    flatsome/woocommerce/single-product/short-description.php
    flatsome/woocommerce/single-product/tabs/tabs.php
    flatsome/woocommerce/single-product/title.php
    flatsome/woocommerce/single-product/up-sells.php
    flatsome/woocommerce/single-product-reviews.php
    flatsome/woocommerce/single-product.php
    
    : Learn how to update outdated templates
    

    I don’t get this error and the chances of debugging it remotely are not good.

    This is coming from the code that shows the average rating for your product. Are you bothered about user ratings on this site? Try turning off ratings at Dashboard > WooCommerce > Settings > Products tab > General: uncheck “Enable ratings on reviews”

    You should be able to hide PHP warnings with this line in wp-config.php:

    
    define('WP_DEBUG', false);
    

    If you get a different problem, just change false to true temporarily to expose any warnings.

    Thread Starter tkeyesjr

    (@tkeyesjr)

    Thanks lorro that worked! Very much appreciated.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error on Product Pages’ is closed to new replies.