• When a product is not in stock we’re getting this error:

    array(4) {
      ["type"]=>
      int(1)
      ["message"]=>
      string(1570) "Uncaught TypeError: Unsupported operand types: string / int in /home/DOMAIN/domains/DOMAIN.nl/public_html/wp-content/plugins/in3-marketing/includes/functions.php:24
    Stack trace:
    #0 /home/DOMAIN/domains/DOMAIN.nl/public_html/wp-content/plugins/in3-marketing/includes/functions.php(63): in3_formatted()
    #1 /home/DOMAIN/domains/DOMAIN.nl/public_html/wp-includes/class-wp-hook.php(308): in3_display_on_single_product()
    #2 /home/DOMAIN/domains/DOMAIN.nl/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters()
    #3 /home/DOMAIN/domains/DOMAIN.nl/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 /home/DOMAIN/domains/DOMAIN.nl/public_html/wp-content/plugins/woocommerce/templates/content-single-product.php(60): do_action()
    #5 /home/DOMAIN/domains/DOMAIN.nl/public_html/wp-includes/template.php(785): require('/home/DOMAIN...')
    #6 /home/DOMAIN/domains/DOMAIN.nl/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template()
    #7 /home/DOMAIN/domains/DOMAIN.nl/public_html/wp-content/plugins/woocommerce/templates/single-product.php(37): wc_get_template_part()
    #8 /home/DOMAIN/domains/DOMAIN.nl/public_html/wp-includes/template-loader.php(106): include('/home/DOMAIN...')
    #9 /home/DOMAIN/domains/DOMAIN.nl/public_html/wp-blog-header.php(19): require_once('/home/DOMAIN...')
    #10 /home/DOMAIN/domains/DOMAIN.nl/public_html/index.php(17): require('/home/DOMAIN...')
    #11 {main}
      thrown"
      ["file"]=>
      string(108) "/home/DOMAIN/domains/DOMAIN.nl/public_html/wp-content/plugins/in3-marketing/includes/functions.php"
      ["line"]=>
      int(24)
    }
    object(WP_Error)#25026 (3) {
      ["errors"]=>
      array(1) {
        ["non_protected_endpoint"]=>
        array(1) {
          [0]=>
          string(47) "Fout opgetreden op een niet-beschermd endpoint."
        }
      }
      ["error_data"]=>
      array(0) {
      }
      ["additional_data":protected]=>
      array(0) {
      }
    }

    This is fatal so we had to disable the plugin completely. Any change this can be fixed?

  • The topic ‘Critical error: Unsupported operand types’ is closed to new replies.