PHP Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array

Solved8 replies2 participantsUpdated by Jhen

  • Avatar: jhen
    Jhen
    Participant

    PHP Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array, bool given in /srv/htdocs/wp-content/themes/royal/woocommerce/content-product-slider.php:192 Stack trace: #0 /wordpress/core/6.8.1/wp-includes/template.php(812): require() #1 /srv/htdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php(285): load_template(‘/srv/htdocs/wp-…’, false) #2 /srv/htdocs/wp-content/themes/royal/framework/theme-functions.php(2731): wc_get_template_part(‘content’, ‘product-slider’) #3 /srv/htdocs/wp-content/themes/royal/woocommerce/single-product/up-sells.php(43): etheme_create_slider(Array, Array) #4 /srv/htdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php(346): include(‘/srv/htdocs/wp-…’) #5 /srv/htdocs/wp-content/plugins/woocommerce/includes/wc-template-functions.php(2355): wc_get_template(‘single-product/…’, Array) #6 /srv/htdocs/wp-content/themes/royal/woocommerce/content-single-product.php(210): woocommerce_upsell_display() #7 /wordpress/core/6.8.1/wp-includes/template.php(812): require(‘/srv/htdocs/wp-…’) #8 /srv/htdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php(285): load_template(‘/srv/htdocs/wp-…’, false) #9 /srv/htdocs/wp-content/themes/royal/woocommerce/single-product.php(33): wc_get_template_part(‘content’, ‘single-product’) #10 /wordpress/core/6.8.1/wp-includes/template-loader.php(106): include(‘/srv/htdocs/wp-…’) #11 /wordpress/core/6.8.1/wp-blog-header.php(19): require_once(‘/wordpress/core…’) #12 /wordpress/core/6.8.1/index.php(17): require(‘/wordpress/core…’) #13 {main} thrown in /srv/htdocs/wp-content/themes/royal/woocommerce/content-product-slider.php on line 192

    8 Answers

    Avatar: jhen
    Jhen
    Participant

    PLS HELP FIX

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Hello, Jhen,

    Unfortunately, the FTP credentials you provided are not working. We are encountering the following error message:
    “Connection timed out after 20 seconds of inactivity.”

    We kindly ask you to review the access details and provide updated credentials at your earliest convenience.

    Best regards,
    The 8Theme Team

    Avatar: jhen
    Jhen
    Participant

    pls try again thanks

    get new problem

    https://s.dejavu.studio/v/o8JjhZ

    the search hard to use can not use

    pls check ,too

    Please contact administrator
    for this information.
    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Thank you for providing the FTP access. We have resolved the issue related to sizeof(). Kindly check and confirm that everything is working as expected. Please note that these changes will also be included in the next theme update.

    Best regards,
    The 8Theme Team

    Avatar: jhen
    Jhen
    Participant

    how about search problem ,or it is ok ?

    Avatar: jhen
    Jhen
    Participant

    thanks for fix all work now

    how about search problem ,or it is ok ?

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff

    Yes, the search functionality should now be working as expected.

    Best regards,
    The 8Theme Team

    Avatar: jhen
    Jhen
    Participant

    Thanks for the support! My topic “PHP Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array” has been successfully resolved.

The issue related to '‘PHP Fatal error: Uncaught TypeError: sizeof(): Argument #1 ($value) must be of type Countable|array’' has been successfully resolved, and the topic is now closed for further responses