Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1239017

    Hello there, I am getting the following error:

    Notice: Trying to access array offset on value of type bool in /home/dhmsupportdomest/public_html/sdwo-content/themes/enfold/template-builder.php on line 151

    WP Version: 5.5
    PHP Version: 7.4.9
    Enfold: 4.7.6.3

    I’ll include an account in the private content in case you need to login.

    #1239067

    Hey GabrielSenn,

    Can you try to switch to PHP version 7.3? and see if it helps.

    Best regards,
    Nikko

    #1327780

    The problem still exists in mentioned file;

    “PHP Warning: Trying to access array offset on value of type bool in /var/www/vhosts/ilabour.eu/httpdocs/wp-content/themes/enfold/template-builder.php on line 153”

    WP: v.5.8.1
    PHP: v.8.0.12
    Enfold: v.4.8.6.2

    I tried this revision and it seems to works!

    Old version;

    if(in_array($last_el['tag'], AviaBuilder::$full_el_no_section ))
    {
    	avia_sc_section::$close_overlay = "";
    }

    New version;

    if(is_array(AviaBuilder::$full_el_no_section))
    {
    	if(in_array($last_el['tag'], AviaBuilder::$full_el_no_section ))
    	{
    		avia_sc_section::$close_overlay = "";
    	}	
    }
    • This reply was modified 3 years, 1 month ago by seferdemirci.
    #1327870

    Hi seferdemirci,

    Could you try updating the theme to the latest version (4.8.7.1) to see if that helps please? https://kriesi.at/documentation/enfold/how-to-install-enfold-theme/#theme-update. If not, then please open a new thread and include WordPress admin login details in private, so that we can have a closer look at your site.

    Best regards,
    Rikard

    #1328113

    I checked release notes and bug fixes of the new version (4.8.7.1). You didn’t do any change about it to fix problems. So I can tell that updating the new version will not work.

    #1328204

    Hi,

    I updated

    
    if(in_array($last_el['tag'], AviaBuilder::$full_el_no_section ))
    

    to

    
    if( is_string( $last_el['tag'] ) && is_array( AviaBuilder::$full_el_no_section ) && in_array( $last_el['tag'], AviaBuilder::$full_el_no_section ) )
    

    in next release. This should fix the problem.
    Best regards,
    Günter

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.