• devctorres

    (@devctorres)


    Hello, I have WordPress 6.8 with PHP 7.4; I had to install this version of PHP because 8.3 conflicts with the theme; it shows the following error, associated with the font.

    Fatal error: Uncaught TypeError: strpos(): Argument #1 ($haystack) must be of type string, array given in /var/www/vhosts/nathalies-boutique.nl/httpdocs/wp-content/themes/hestia/inc/views/inline/class-hestia-public-typography.php:668 Stack trace: #0 /var/www/vhosts/nathalies-boutique.nl/httpdocs/wp-content/themes/hestia/inc/views/inline/class-hestia-public-typography.php(668): strpos() #1 [internal function]: Hestia_Public_Typography->{closure}() #2 /var/www/vhosts/nathalies-boutique.nl/httpdocs/wp-content/themes/hestia/inc/views/inline/class-hestia-public-typography.php(665): array_filter() #3 /var/www/vhosts/nathalies-boutique.nl/httpdocs/wp-includes/class-wp-hook.php(324): Hestia_Public_Typography->remove_google_fontapi_resource_hints() #4 /var/www/vhosts/nathalies-boutique.nl/httpdocs/wp-includes/plugin.php(205): WP_Hook->apply_filters() #5 /var/www/vhosts/nathalies-boutique.nl/httpdocs/wp-includes/general-template.php(3649): apply_filters() #6 /var/www/vhosts/nathalies-boutique.nl/httpdocs/wp-includes/class-wp-hook.php(324): wp_resource_hints() #7 /var/www/vhosts/nathalies-boutique.nl/httpdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #8 /var/www/vhosts/nathalies-boutique.nl/httpdocs/wp-includes/plugin.php(517): WP_Hook->do_action() #9 /var/www/vhosts/nathalies-boutique.nl/httpdocs/wp-includes/general-template.php(3192): do_action() #10 /var/www/vhosts/nathalies-boutique.nl/httpdocs/wp-content/themes/hestia/header.php(40): wp_head() #11 /var/www/vhosts/nathalies-boutique.nl/httpdocs/wp-includes/template.php(810): require_once('…') #12 /var/www/vhosts/nathalies-boutique.nl/httpdocs/wp-includes/template.php(745): load_template() #13 /var/www/vhosts/nathalies-boutique.nl/httpdocs/wp-includes/general-template.php(48): locate_template() #14 /var/www/vhosts/nathalies-boutique.nl/httpdocs/wp-content/themes/hestia/page.php(9): get_header() #15 /var/www/vhosts/nathalies-boutique.nl/httpdocs/wp-includes/template-loader.php(106): include('…') #16 /var/www/vhosts/nathalies-boutique.nl/httpdocs/wp-blog-header.php(19): require_once('…') #17 /var/www/vhosts/nathalies-boutique.nl/httpdocs/index.php(17): require('…') #18 {main} thrown in /var/www/vhosts/nathalies-boutique.nl/httpdocs/wp-content/themes/hestia/inc/views/inline/class-hestia-public-typography.php on line 668

    I solved it by installing PHP version 7.4, but now I’m having problems with JavaScript; it gives me the following error.

    Uncaught TypeError: Cannot read properties of undefined (reading ‘wcdata’) at persoonlijke-service-in-betaalbare-fashion/:829:54

    How can I make the theme work properly without having to make code adjustments or patches to bypass errors?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter devctorres

    (@devctorres)

    I solved it with a temporary fix in the /wp-content/mu-plugins folder. Create a .php file and paste the following:

    <?php
    // Evita que el front reviente si un script espera window.wcdata
    add_action('wp_head', function () {
    echo "\n";
    }, 1);


    rodicaelena

    (@rodicaelena)

    Hi @devctorres,

    Thank you very much for sharing this. I’ve made sure to report it to the development team for review.

    Kind regards,

    Rodica

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘bug hestia 3.3’ is closed to new replies.