hi team, wouldnt be a good idea to edit a video showing how to :
How to manually import a theme demo
Please add following line to Functions.php file in Appearance > Editor
add_theme_support( ‘avia_demo_store_downloaded_files’ );
Download the zip file of the demo you would like to import from https://github.com/KriesiMedia/enfold-library/tree/master/demos
Extract it in \uploads\avia_demo_files\ folder. If you are importing Enfold 2017 demo, files should be extracted inside \enfold-2017\ so it should look as \uploads\avia_demo_files\enfold-2017\
Go to Enfold theme options > Demo Import and import the demo
because frankly , a newby wont even know where to start here as in the “Editor” it is clearly written : “* PLEASE DO NOT EDIT THIS FILE!”
you guys are cool to share processes but you assume we all understand what this mean.
a step by step video tutorial would fix the demo download headaches (also duplicator process)
[02-Feb-2025 14:42:24 UTC] PHP Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the avia_framework domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/mentorcorps/www/www/wp-includes/functions.php on line 6114
Dear Support,
I just updated an abandoned website (from Enfold 4.7 to the latest) after 5 years with a new licence (the developer is out of sight). Everything seemed to be more or less OK until I tried to edit a page. The editor loaded, the content was loaded into the code editor but the page layout didn’t, and the whole site became unresponsive. I couldn’t go back to the Dashboard nor I could open the front. There were no error messages. The only thing I found is this line in my site’s error log:
“Undefined array key “controls” in /home/xxxxxxx/public_html/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php on line 754″
I had to kill the process on the server to make the site responsive again. I repeated the steps and it happened again.After setting the server to use php 7.4 I had the same error (Avia didn’t load the page to edit) except the site didn’t freeze and the front run perfectly. I switched back to php 8.4.x (for security reasons) and now the site works as long as I don’t try to edit stg.
WP and all plugins were updated to the latest before installing the new Enfold. The site runs on php 8.4.x.
Please help me to solve this problem.
Thanks,
Peter
-
This topic was modified 1 year, 2 months ago by
hellsing71. Reason: Typos
Hey Noah,
Could you share server error logs with us please? Enfold is fully compatible with PHP 7.4 and up.
Best regards,
Rikard
for that small images below – there is in relation to its own dimension a big padding (7px for images that are approx. 30px)
so set the padding to a smaller value:
#top div .avia-gallery .avia-gallery-big,
#top div .avia-gallery img {
padding: 2px;
}
here the big image above is included to that new padding – so that the large image is aligned with the block of small images.
________
I always set my lightbox so that the background does not scroll.
There is now a filter for this which you can set in the child-theme functions.php.
add_filter( 'avf_default_lightbox_no_scroll', '__return_true' );
Apart from that, I don’t see the reason why these extreme heights are set for mfp-bg and mfp-wrap. The usual values are 1600 to a little over 2000px, why is it twice that in your installation? …
Noah GregoryGuest
I apologize for having to use this channel, but while I am the current developer of the website, I did not originally build it and so I do not have access to our purchase code to create an account and correspond “correctly”. I am having an issue where /something/ that I cannot track down in the enfold theme is causing a critical error on my website when trying to update the PHP past 7.4. The theme is updated, my envato token is active, etc. I have traced the issue to the theme as I can update the website to PHP 8.1 when I switch to another theme, but I want to continue using the Enfold theme and so am trying to make this work. If phone communication is easier, my cell is (843)303-4733. Thank you!
Did that and still getting errors…
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/lzevon/apps/kingucc/wp-includes/class-wp-post.php on line 267
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /home/lzevon/apps/kingucc/wp-content/plugins/the-events-calendar/src/Events/Custom_Tables/V1/Updates/Events.php on line 1
I stepped it back down to default so I don’t leave failed attempts strewn-about.
The issue has returned.
We need to investigate a possible memory leak with the alb image element.
Something is causing a memory leak or causing the query to fail.
If we edit the homepage and then click on an image element to edit it we get an empty window and the errors below in the console in Plesk.
If we have redis enabled:
AH01071: Got error ‘; PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 1310720 bytes) in /var/www/vhosts/domainname.com/httpdocs/wp-content/object-cache.php on line 2534’, referer: https://domainname.com/wp-admin/post.php?post=14&action=edit
If we have redis disabled:
AH01071: Got error ‘PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 5242880 bytes) in /var/www/vhosts/domainname.com/httpdocs/wp-includes/class-wp-object-cache.php on line 239’, referer: https://domainname.com/wp-admin/post.php?post=14&action=edit
This is accompanied by a console error:
Failed to load resource: server responded with a status of 500 ()
wp-admin/admin-ajax.php
wp-admin/load-scripts.php
I am assuming these two errors are because the process has stopped – And the cause is something to do with the issues above.
This problem occurs in php 8.1 and above. It does not occur in php 8.0
-
This reply was modified 1 year, 2 months ago by
thinkjarvis. Reason: extra note added
I just enabled debugging, I don’t have a log file generated yet, but can see this error:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 32768 bytes) in /home/lzevon/apps/kingucc/wp-content/plugins/events-calendar-pro/src/views/custom-tables-v1/components/series-relationship-marker-link.php on line 1
Hey yifatcohen,
Thank you for the inquiry.
You can try the ava_after_main_menu hook or any template hooks available in the includes > a/enfold/includes/helper-main-menu.php file.
Please add this code in the functions.php file:
function av_healcode_script_after_menu() {
?>
<script src="https://widgets.mindbodyonline.com/javascripts/healcode.js" type="text/javascript"></script>
<healcode-widget
data-version="0.2"
data-link-class="loginRegister"
data-site-id="123698"
data-mb-site-id="5741852"
data-bw-identity-site="false"
data-type="account-link"
data-inner-html="Login | Register">
</healcode-widget>
<?php
}
add_action('ava_after_main_menu', 'av_healcode_script_after_menu');
Best regards,
Ismael
Hey marketbiz,
To remove the new products section on the empty cart page add this css to your Quick CSS:
.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-product-new,.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-heading:not(.wc-block-cart__empty-cart__title) {
display:none;
}
Then to add the button add this code to the end of your child theme functions.php file in Appearance ▸ Editor:
function custom_script() { ?>
<script>
(function($){
var button = $('<div class="avia-button-wrap av-m6cpztd3-7c60bd307536e2939b17d69a432c4593-wrap avia-button-center avia-builder-el-56 el_after_av_button avia-builder-el-last "><style type="text/css" data-created_by="avia_inline_auto" id="style-css-av-m6cpztd3-7c60bd307536e2939b17d69a432c4593">#top #wrap_all .avia-button.av-m6cpztd3-7c60bd307536e2939b17d69a432c4593{border-radius:20px 20px 20px 20px;transition:all 0.4s ease-in-out;}#top #wrap_all.avia-button.av-m6cpztd3-7c60bd307536e2939b17d69a432c4593:hover .avia_button_background{border-radius:20px 20px 20px 20px;}</style><a href="#" class="avia-button av-m6cpztd3-7c60bd307536e2939b17d69a432c4593 av-link-btn avia-icon_select-no avia-size-x-large avia-position-center avia-color-dark" title="Dashboard" aria-label="Dashboard"><span class="avia_iconbox_title">Dashboard</span></a></div>');
if ($("body").hasClass("woocommerce-cart") && $(".wp-block-woocommerce-empty-cart-block .wc-block-grid").hasClass("wp-block-woocommerce-product-new") == true) {
$(button).appendTo('.wp-block-woocommerce-cart');
} else {}
})(jQuery);
</script>
<?php
}
add_action( 'wp_footer', 'custom_script', 99 );
Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
Then adjust the button URL to suit.

Best regards,
Mike
Hello,
I couldn’t find any solution so far. I removed every plugin nothing changed this behavior.
When I edit my page, for example adding another element and adding some text and clicking on “Save” the half of the page will be deleted automatically.
i don’t know why.
I have installed the following:
Enfold: 6.0.9
PHP: 8.2.27
Wordpress: 6.7.1
Can somebody help me please?
Thank you very much in advance.
Hey Mark,
It looks like your Font Awesome script is coming from revslider and not from your site, typically you need to add Font Awesome to your functions.php as Enfold doesn’t add it. See here, note that some versions are paid only and old versions may no longer work. See this example Note that it is an old Font Awesome CDN code so you may need to update.
Best regards,
Mike
Janel JordaGuest
I’ve inherited a WordPress website running Enfold Version: 4.2 with Enfold Child Version: 1.0
It’s running the old PHP 7.4 and I cannot update it to PHP 8.2 because of the following errors:
[22-Jan-2025 11:39:32 UTC] PHP Warning: session_start(): Cannot start session when headers already sent in /home/wilsonph/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio.php on line 27
[22-Jan-2025 11:40:33 UTC] PHP Warning: session_start(): Cannot start session when headers already sent in /home/wilsonph/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/masonry_entries.php on line 33
[22-Jan-2025 11:40:33 UTC] PHP Warning: session_start(): Cannot start session when headers already sent in /home/wilsonph/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/portfolio.php on line 27
[root@host1 logs]#
Can I pay you to upgrade your Enfold Theme so that I can upgrade the PHP to 8.2?
Thank you, Janel
Hey snitt,
When I check your page I don’t see that your LayerSlider is cut off, I see that the content slider is cut off due to this error:
(index):875 Uncaught TypeError: Cannot read properties of undefined (reading 'isMobile')
from this custom code in your functions.php:
add_action('wp_footer', 'ava_auto_height');
function ava_auto_height(){
?>
<script>
(function($){
function c() {
if( $.avia_utilities.isMobile ) return;
$('#content-slider-height-same .slide-entry').css('height', '');
var elementHeights = $('#content-slider-height-same .slide-entry').map(function() {
return $(this).outerHeight();
}).get();
var maxHeight = Math.max.apply(null, elementHeights);
$('#content-slider-height-same .slide-entry').height(maxHeight);
}
$(window).on('load', function() {
c();
}).load();
})(jQuery);
</script>
<?php
}

Is this what you are talking about?
Changing to this seems to solve after your WP Rocket plugin is cleared:
add_action('wp_footer', 'ava_auto_height');
function ava_auto_height(){
?>
<script>
(function($){
function c() {
//if( $.avia_utilities.isMobile ) return;
$('#content-slider-height-same .slide-entry-excerpt').css('height', '');
var elementHeights = $('#content-slider-height-same .slide-entry-excerpt').map(function() {
return $(this).outerHeight();
}).get();
var maxHeight = Math.max.apply(null, elementHeights);
$('#content-slider-height-same .slide-entry-excerpt').height(maxHeight);
}
$(window).on('load', function() {
c();
}).load();
})(jQuery);
</script>
<?php
}

I set your code back to the way you had it, please check.
Best regards,
Mike
Hi we are experiencing an issue with Enfold on one of our sites where the memory limit is getting exausted when trying to view any ALB image element on our site.
It times out and when I check the log files I get the following:
If we have redis enabled:
AH01071: Got error ‘; PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 1310720 bytes) in /var/www/vhosts/domainname.com/httpdocs/wp-content/object-cache.php on line 2534’, referer: https://domainname.com/wp-admin/post.php?post=14&action=edit
If we have redis disabled:
AH01071: Got error ‘PHP message: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 5242880 bytes) in /var/www/vhosts/domainname.com/httpdocs/wp-includes/class-wp-object-cache.php on line 239’, referer: https://domainname.com/wp-admin/post.php?post=14&action=edit
This is accompanied by a console error:
Failed to load resource: server responded with a status of 500 ()
wp-admin/admin-ajax.php
wp-admin/load-scripts.php
I am assuming these two errors are because the process has stopped – And the cause is something to do with the issues above.
We therefore cannot change the images on this site.
I have raised this issue before but we couldnt find a cause.
The allowed memory size is much larger than the limit suggested here. So not sure where the memory limit at 536870912 bytes is being pulled from.
I think this is an issue with PHP compatibility and the avia builder. The problem seems to be worse in anything above php 8.0. We are now running PHP 8.2 on this site and the problem occurs with consistency.
Please can you let me know what you need from us to investigate? I can provide login credentials if required.
-
This topic was modified 1 year, 2 months ago by
thinkjarvis.
-
This topic was modified 1 year, 2 months ago by
thinkjarvis. Reason: redacted url for security
Dear Sir or Madam,
I have a question regarding the conversion of the Enfold version from 4.4.1 to 6.0. Our website https://nundz.de runs with PHP version 7.4 and Enfold version 4.4.1. If we update both Enfold and PHP, would it crash the site or will the template run smoothly from the start?
Thanks,
Best regards,
Ilmar Kerner
Hi,
Your screenshot has this structure:
enfold-child ▸ config-templatebuilder ▸ avia-shortcodes ▸ logoslider ▸ logoslider.php

It should be:
enfold-child ▸ shortcodes ▸ logoslider ▸ logoslider.php
Best regards,
Mike
This is still not working.
here are my steps that I did
1- copied the following to my functions.pho
add_filter(‘avia_load_shortcodes’, ‘avia_include_shortcode_template’, 15, 1);
function avia_include_shortcode_template($paths)
{
$template_url = get_stylesheet_directory();
array_unshift($paths, $template_url.’/shortcodes/’);
return $paths;
}
2- added a new folder for structure – screenshot here – https://ibb.co/x2Qp70Z
3- pasted the entire code from https://pastebin.com/AEKjwcRe onto this new logoslider.php file
Is that correct?
Hello,
I have found two posts on this topic, but they are very old:
How to enable the Enfold “Theme Options” for editors?
Enabling the Enfold “Theme Options” for editors also reveals “Settings” menu
The solution “You can copy the whole avia_adminpages class to your child functions.php” doesn’t work for me.
What exactly do I have to write in the functions.php, to change
Line 219: and line 233:
'manage_options', // capability`
in:
'edit_theme_options', // capability`
Best regards,
Neverlands
Which shortcode do I need to apply the link titles to? I am confused
Are you referring to the PHP code?
my page shortcode does have link titles (see below)
[av_section min_height='' min_height_pc='25' min_height_px='500px' padding='small' custom_margin='0px' custom_margin_sync='true' svg_div_top='' svg_div_top_color='#333333' svg_div_top_width='100' svg_div_top_height='50' svg_div_top_max_height='none' svg_div_top_opacity='' svg_div_bottom='' svg_div_bottom_color='#333333' svg_div_bottom_width='100' svg_div_bottom_height='50' svg_div_bottom_max_height='none' svg_div_bottom_opacity='' color='main_color' background='bg_color' custom_bg='#000000' background_gradient_direction='vertical' background_gradient_color1='#000000' background_gradient_color2='#ffffff' background_gradient_color3='' src='' attachment='' attachment_size='' attach='scroll' position='top left' repeat='no-repeat' video='' video_ratio='16:9' overlay_opacity='0.5' overlay_color='' overlay_pattern='' overlay_custom_pattern='' shadow='no-border-styling' bottom_border='no-border-styling' bottom_border_diagonal_color='#333333' bottom_border_diagonal_direction='' bottom_border_style='' custom_arrow_bg='' id='' custom_class='' template_class='' aria_label='' av_element_hidden_in_editor='0' av_uid='av-gw04d9' sc_version='1.0']
[av_hr class='invisible' icon_select='yes' icon='ue808' font='entypo-fontello' position='center' shadow='no-shadow' height='-25' custom_border='av-border-thin' custom_width='50px' custom_margin_top='30px' custom_margin_bottom='30px' custom_border_color='' custom_icon_color='' id='' custom_class='' template_class='' av_uid='av-fvcgnh' sc_version='1.0' admin_preview_bg='']
[av_heading heading='CHECK OUT OUR OTHER BOWL 360 FRANCHISE ' tag='h3' style='blockquote modern-quote modern-centered' subheading_active='' show_icon='' icon='ue800' font='entypo-fontello' size='26' av-desktop-font-size-title='' av-medium-font-size-title='' av-small-font-size-title='' av-mini-font-size-title='' subheading_size='20' av-desktop-font-size='' av-medium-font-size='' av-small-font-size='' av-mini-font-size='' icon_size='' av-desktop-font-size-1='' av-medium-font-size-1='' av-small-font-size-1='' av-mini-font-size-1='' color='custom-color-heading' custom_font='#ffffff' subheading_color='' seperator_color='' icon_color='' margin='' margin_sync='true' av-desktop-margin='' av-desktop-margin_sync='true' av-medium-margin='' av-medium-margin_sync='true' av-small-margin='' av-small-margin_sync='true' av-mini-margin='' av-mini-margin_sync='true' headline_padding='' headline_padding_sync='true' av-desktop-headline_padding='' av-desktop-headline_padding_sync='true' av-medium-headline_padding='' av-medium-headline_padding_sync='true' av-small-headline_padding='' av-small-headline_padding_sync='true' av-mini-headline_padding='' av-mini-headline_padding_sync='true' padding='10' av-desktop-padding='' av-medium-padding='' av-small-padding='' av-mini-padding='' icon_padding='10' av-desktop-icon_padding='' av-medium-icon_padding='' av-small-icon_padding='' av-mini-icon_padding='' link='manually,http://' link_dynamic='' link_target='' title_attr='' id='' custom_class='' template_class='' av_uid='av-esbpnx' sc_version='1.0' admin_preview_bg='']
Birthdays. Holidays. Parties for the kids. Parties for the office. Parties for you and your friends. When you’re ready to celebrate, then it’s time to BE BOWLED. Bring your party to the lanes and get ready for one unforgettable event.
[/av_heading]
[av_hr class='invisible' icon_select='yes' icon='ue808' font='entypo-fontello' position='center' shadow='no-shadow' height='-50' custom_border='av-border-thin' custom_width='50px' custom_margin_top='30px' custom_margin_bottom='30px' custom_border_color='' custom_icon_color='' id='' custom_class='' template_class='' av_uid='av-cpo64d' sc_version='1.0' admin_preview_bg='']
[av_partner heading='' type='grid' columns='8' navigation='arrows' control_layout='av-control-default' nav_visibility_desktop='' nav_arrow_color='' nav_arrow_bg_color='' nav_dots_color='' nav_dot_active_color='' size='no scaling' img_size_behave='' border='' img_border='solid' img_border_width='1' img_border_width_sync='true' img_border_color='#cccccc' border_radius='12' border_radius_sync='true' box_shadow='' box_shadow_style='0px,0px,0px,0px' box_shadow_color='' padding='10px' padding_sync='true' animation='slide' transition_speed='' autoplay='false' interval='5' heading_tag='' heading_class='' img_scrset='' lazy_loading='disabled' el_id='' custom_class='' template_class='' av_uid='av-bil12l' sc_version='1.0']
[av_partner_logo id='2178' id_dynamic='' hover='Bowl 360 Ozone Park' link='manually,https://bowl360.nyc/' link_dynamic='' link_target='_blank' linktitle='Bowl 360 Ozone Park' av_uid='av-9cabb1' sc_version='1.0']
[av_partner_logo id='2180' id_dynamic='' hover='' link='manually,https://bowl360astoria.nyc/' link_dynamic='' link_target='' linktitle='Bowl 360 Astoria' av_uid='av-6z8btp' sc_version='1.0']
[av_partner_logo id='2181' id_dynamic='' hover='' link='manually,https://bowl360brooklyn.nyc/' link_dynamic='' link_target='' linktitle='Bowl360 Brooklyn' av_uid='av-6jvk4t' sc_version='1.0']
[av_partner_logo id='2183' id_dynamic='' hover='' link='manually,http://bowl360newhydepark.com/' link_dynamic='' link_target='' linktitle='Bowl 360 New Hyde Park' av_uid='av-44jhel' sc_version='1.0']
[av_partner_logo id='2184' id_dynamic='' hover='' link='manually,https://bowl360strikecityspringhill.com/' link_dynamic='' link_target='' linktitle='Bowl 360 Strike City Spring Hill' av_uid='av-101zh' sc_version='1.0']
[av_partner_logo id='2220' id_dynamic='' hover='' link='manually,https://island360restaurant.com/' link_dynamic='' link_target='' linktitle='Island 360 Restaurant' av_uid='av-101zh-2' sc_version='1.0']
[av_partner_logo id='2222' id_dynamic='' hover='' link='manually,https://paddles360.com/' link_dynamic='' link_target='' linktitle='Paddles 360' av_uid='av-101zh-1' sc_version='1.0']
[av_partner_logo id='2260' id_dynamic='' hover='' link='manually,https://uptownbarandgrill360.com/' link_dynamic='' link_target='' linktitle='Uptown Bar and Grill' av_uid='av-101zh-1-1' sc_version='1.0']
[/av_partner]
[/av_section]
Hey navindesigns,
Thank you for the inquiry.
The error is due to the slider element below the headline:
<a href="https://bowl360astoria.nyc/" data-rel="slide-1" class="slide-image" title=""><span class="av-partner-fake-img" style="padding-bottom:76.666666666667%; background-image:url(https://xxxxxx.nyc/wp-content/uploads/2023/05/02-2.png);"></span></a>
To fix it, make sure to apply Link Title > Link Title to each slide, then add this script in the functions.php file.
function ava_custom_script_add_hidden_text()
{
?>
<script type="text/javascript">
(function ($)
{
$(document).ready(function ()
{
$('.slide-image').each(function ()
{
var $this = $(this);
var titleText = $this.attr('title');
if (titleText)
{
var hiddenSpan = $('<span>', {
'class': 'visually-hidden',
'text': titleText
});
$this.append(hiddenSpan);
}
});
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'ava_custom_script_add_hidden_text', 9999);
This will create a hidden span element inside the slide-image container.
<a href="https://bowl360astoria.nyc/" data-rel="slide-1" class="slide-image" title="Visit Bowl 360 Astoria">
<span class="av-partner-fake-img"
style="padding-bottom:76.666666666667%;
background-image:url(https://xxxxx.nyc/wp-content/uploads/2023/05/02-2.png);"
aria-hidden="true"></span>
<span class="visually-hidden">Visit Bowl 360 Astoria</span>
</a>
Best regards,
Ismael
Hey xfilegirl,
In my research I believe that your “terms and conditions” is created with the ALB and not a simple Classic Editor page, if this is the case try creating it with the Classic Editor or try this function.
Note that a another possibility is a caching plugin, or theme option forcing scripts into the footer or delaying the scripts until page interaction, since it will work after a “long delay”
Also note that your theme version is very old: v4.8.6.5 and not compatible with PHP v8+ or the latest WP version, you should update to v6.0.8
Best regards,
Mike
Hi there,
After much debugging it seems that there is a conflict between woocommerce and Enfold. On checkout, the terms and conditions button is not clickable or is clickable after a very long delay. The same thing does not happen if I have the Storefront theme active. We are running PHP version 8.4 (but same thing was happening with PHP versions 7.4-8.4), and all plugins, themes and wordpress version are up-to-date.
With debug turned on I get the following errors on the checkout page:
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the avia_framework domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/fegnionc2/domains/fegnion.xyz/public_html/wp-includes/functions.php on line 6114
Deprecated: Creation of dynamic property avia_sidebar::$title is deprecated in /home/fegnionc2/domains/fegnion.xyz/public_html/wp-content/themes/enfold/framework/php/class-sidebar-generator.php on line 34
Deprecated: Function wp_targeted_link_rel is deprecated since version 6.7.0 with no alternative available. in /home/fegnionc2/domains/fegnion.xyz/public_html/wp-includes/functions.php on line 6114
Deprecated: Function wp_targeted_link_rel_callback is deprecated since version 6.7.0 with no alternative available. in /home/fegnionc2/domains/fegnion.xyz/public_html/wp-includes/functions.php on line 6114
Deprecated: Function wp_targeted_link_rel is deprecated since version 6.7.0 with no alternative available. in /home/fegnionc2/domains/fegnion.xyz/public_html/wp-includes/functions.php on line 6114
Deprecated: Function wp_targeted_link_rel_callback is deprecated since version 6.7.0 with no alternative available. in /home/fegnionc2/domains/fegnion.xyz/public_html/wp-includes/functions.php on line 6114
Hey there,
we just came across one of those nasty scaling issues on a clients site of ours.
They run Enfold with nearly 1k posts (real post_type=”post”) besides even more pages and other CPTs.
Yesterday they hit “a wall” causing reproducible OOMs on their posts in the editor as well as on the Frontend and other parts of the website.
Some context information (although mostly irrelevant):
PHP 8.1
Enfold 6.0.6
WP 6.7.1
Max Mem: 512M
Avg Max Mem Consumption on Posts in Frontend and Backend: ~80M
We dug deep and ran APM Traces on the problematic posts. We figured out that a combination of the following UI Builder Element(s) and Post Config is a guarantee to hit the OOM at some point in time:
– Create a Post and add it to Category “A”
– Add the following ALB Element(s) to the Post:
— “Blog Posts” with “Show Blog Posts” and select Category “A” to display (<– The clients have this configured to be recursive as the same post will be displayed in the list itself – don’t think they did this intentionally they just did not set an offset)
— “Entry Slider” with some other Category than “A”
– Create many of these Posts
For reasons we have not analyzed in the Enfold code yet the APM clearly showed a loop triggered between “do_shortcode” and “load_template”. With many occurences in “locate_template”, “get_template_part”, “avia_sc_blog::shortcode_handler” and “aviaShortcodeTemplate::shortcode_handler_prepare”.
As the whole OOM is gone when the “Show Blog Posts” element is removed from the Post we assume that the Blog Post Element kind of itself “renders” the content of all of it’s displayed blog posts, leading to a rendering of all of the selected blog Posts of the Blog Posts element on that page, leading to a rendering of all of the selected blog Posts of this element…… [-loop-].
The issue is so wide spreading that all of the posts being using this Element with the Category “A” are OOM. Some other functions of the site were OOM as well but we did not analyzed deeper as these errors were gone as soon as we solved the issue with the Post. I assume they might have some relationship to one of the “OOM posts”.
To fix the wide spread OOM we simply needed to move the latest post to the trash. Restoring it lead to OOM at all effected posts again. Or removing the Blog Posts Element.
Increasing the memory of the site did not help at all. Within the WordPress backend editor there is no obvious high memory consumption when analyzing with Query Monitor for example.
The findings clearly indicate that there is a loop that needs to be stopped at some point.
Hope you can assist and find way to allow our clients to continue using the elements with referencing their posts internally.
If you believe this can be solved by a configuration change in one of the UIB Elements, let me know. But I fear they will not be happy if they have to change several hundreds of posts ;-).
Thank you very much and best regards,
Jan
Hello,
I do apologize if I’m asking for something not provided here. I’m not very familiar with this, but my website is down and my hosting provider said it’s because I needed to update enfold-v3 and that would fix it. I’ve read how to update the files, but I’m not seeing enfold-v3 in the theme I just purchased. Any hints or direction would be much appreciated. This is the error that my hosting support sent to me to say I needed to update enfold-v3.
[07-Jan-2025 00:24:09 UTC] PHP Warning: require_once(config-gravityforms/config.php): failed to open stream: No such file or directory in /home1/fastipho/public_html/wp-content/themes/enfold-v3/enfold-v3/functions.php on line 411
[07-Jan-2025 00:24:09 UTC] PHP Fatal error: require_once(): Failed opening required ‘config-gravityforms/config.php’ (include_path=’.:/opt/cpanel/ea-php74/root/usr/share/pear’) in /home1/fastipho/public_html/wp-content/themes/enfold-v3/enfold-v3/functions.php on line 411
[07-Jan-2025 00:24:14 UTC] PHP Warning: Creating default object from empty value in /home1/fastipho/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_layerslider/slideshow_layerslider.php on line 28
Hi,
Thanks for your patience, when I edit your footer page color section I see a 403 server error for your admin-ajax.php
When I copy your footer page to my test site it works correctly with no error.
This could be many server issues, first I would look at your low server settings for:
PHP max input variables
PHP time limit
Max input time:

try updating to these:

There are other possible issues for a 403 error on admin-ajax.php, such as server Mod_Security or custom rules in your .htaccess file, which you have:

Best regards,
Mike
Still the same
Warning: fopen(/customers/2/d/9/sif-assentoft.dk/httpd.www/wp-content/uploads/dynamic_avia/avia-head-scripts-aab6b4df32cc048ee43a081a705e43c7—677a4516c02da.js): Failed to open stream: File too large in /customers/2/d/9/sif-assentoft.dk/httpd.www/wp-content/themes/enfold/framework/php/function-set-avia-backend.php on line 984
Hey Robert Simmons,
Thank you for your patience,
1: Our team spread throughout the world with different time zones, currently we don’t have a support agent in Austria, but the Dev Team is.
2: I don’t know about HPOS, but it looks like you only need to add this code to your functions.php file:
add_action('before_woocommerce_init', function(){
if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true );
}
});
I have not tested.
3: The plugin Events Calendar should work, but the layout will be a little different, please see this example, I don’t have a way to test Event Tickets Plus or WooCommerce Product Table from Barn2, this is a third party plugin and sometimes they have issues.
4: We update as needed, we updated 14 times last year, see the dates here
5: The Dev Team has maintained backward compatibility with each update, and try to balance it with the issue, for example, if the issue is with a specific plugin or customization it may be a one-off fix, if it is with a major issue we may offer a one-off fix to help with the Dev Team reviewing a permanent fix.
6: Enfold can not import WPBakery Builder nor is WPBakery Builder compatible with Enfold’s builder. You will most likely need to recreate your site from scratch. Plain WP posts with no WPBakery Builder elements can be imported can continue to use the WP builder.
7: same as above.
8: we don’t have a pulbic road map, but you can see the Feature Requests that the team is working on here.
I looked at your site and you should be able to recreate it with Enfold, but the layout may be a little different, please see some of our examples here. I hope that this helps.
Best regards,
Mike
Hi’
Got this failure
Warning: fopen(/customers/2/d/9/sif-assentoft.dk/httpd.www/wp-content/uploads/dynamic_avia/avia-head-scripts-aab6b4df32cc048ee43a081a705e43c7—6778eea7bd330.js): Failed to open stream: File too large in /customers/2/d/9/sif-assentoft.dk/httpd.www/wp-content/themes/enfold/framework/php/function-set-avia-backend.php on line 984