• Resolved chimelin

    (@chimelin)


    Hey I’m working on a wordpress site and I activated the Ultimate Product Catalog.

    When I started working with the catalog everything was alright, now I added some products, categories and sub-categories and no products show up on the catalog page, just this 2 errors:

    Warning: sizeof(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\wordpress-inventario-otbox\wp-content\plugins\ultimate-product-catalogue\Functions\Shortcodes.php on line 1826

    Warning: sizeof(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\wordpress-inventario-otbox\wp-content\plugins\ultimate-product-catalogue\Functions\Shortcodes.php on line 1897

    I went to check, and they are about the categories and sub-categories, here are only those lines:

    line 1825 and 1826
    // Create the categories checkboxes
    if ($Sidebar_Item == “Categories” and sizeof($Categories) > 0) {
    //

    line 1896 and 1897
    // Create the sub-categories checkboxes
    if ($Sidebar_Item == “Sub-Categories” and sizeof($SubCategories) > 0 and $Sidebar_Order != “Hierarchical”) {
    //

    How can I solve this problem?

    Edit: the php version is 7.3.5

    • This topic was modified 5 years, 8 months ago by chimelin. Reason: add php version
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Categories and sub-categories “Warning: sizeof()”’ is closed to new replies.