-
AuthorPosts
-
August 19, 2020 at 6:32 am #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.3I’ll include an account in the private content in case you need to login.
August 19, 2020 at 9:21 am #1239067Hey GabrielSenn,
Can you try to switch to PHP version 7.3? and see if it helps.
Best regards,
NikkoNovember 4, 2021 at 1:08 pm #1327780The 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.2I 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.
November 5, 2021 at 7:03 am #1327870Hi 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,
RikardNovember 7, 2021 at 5:46 pm #1328113I 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.
November 8, 2021 at 11:52 am #1328204Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.