Hi,
Thanks for the login, the error I see is a admin-ajax.php 500 (Internal Server Error) so for smome reason your server is having trouble, perhaps it is because your PHP max input variables is set very low at 1000, try changing it to 10000, and your PHP time limit is set to zero, try uping to to 600. Also your Max input time is 60, try 120.

I disabled your plugin Disable Gutenberg as it is not needed, I enabled this feature in the theme at Enfold Theme Options ▸ Select Your Editor ▸ Use WP Classic Editor
If making these changes doesn’t help, try choosing a different PHP version like v8, or v7.4, perhaps the PHP version is not set up correctly of your server, just a guess or try checking your error log for further details.
Best regards,
Mike
Hi,
I updated the theme but I still can’t edit any content on the pages. When I try to do so i get redirected to a blank page and it shoots an internal error with the following content:
load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:5 JQMIGRATE: Migrate is installed, version 3.4.1
maps.googleapis.com/maps/api/mapsjs/gen_204?csp_test=true:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
util.js:72 Google Maps JavaScript API warning: NoApiKeys https://developers.google.com/maps/documentation/javascript/error-messages#no-api-keys
Bpa @ util.js:72
(anonymous) @ js?v=3.52&callback=aviaOnGoogleMapsLoaded:235
Promise.then (async)
(anonymous) @ js?v=3.52&callback=aviaOnGoogleMapsLoaded:235
load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2 POST https://lu-ca.at/wp-admin/admin-ajax.php 500 (Internal Server Error)
send @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2
ajax @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2
(anonymous) @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:5
e.<computed> @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:5
fetch_ajax_content @ avia-modal.js?ver=6.3.1-5.6.6:413
create_html @ avia-modal.js?ver=6.3.1-5.6.6:224
set_up @ avia-modal.js?ver=6.3.1-5.6.6:86
$.AviaModal @ avia-modal.js?ver=6.3.1-5.6.6:65
(anonymous) @ avia-builder.js?ver=6.3.1-5.6.6:474
dispatch @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2
v.handle @ load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,moxiejs,plupload&ver=6.3.1:2
I don’t know what to do, can you take a look at this?
Sorry Ismael, I am getting the following error message for categories:
“Your PHP code changes were not applied due to an error on line 2750 of file wp-content/themes/enfold/functions-enfold.php. Please fix and try saving again.
Cannot redeclare get_the_category_list() (previously declared in wp-includes/category-template.php:141)”
Line 2750 in my functions-enfold.php corresponds to line 230 in your linked get_categories_list code.
Thanks,
Magnus
but i tested ismaels code – and it does not even add the attribute.
On reading a lot of articles – the only thing that works is to add this attribute:
function remove_text_input_mode_on_datepicker(){
?>
<script type = "text/javascript">
window.addEventListener("DOMContentLoaded", function () {
(function($){
$('.avia_datepicker').each(function() {
$(this).attr('readonly','readonly');
});
})(jQuery);
});
</script>
<?php
}
add_action( 'wp_footer', 'remove_text_input_mode_on_datepicker', 20 );
PS:
https://kriesi.at/support/topic/date-picker-form-issue-mobile/#post-1422097
Hey InekeWerkt,
I see that you are using an old version of the theme that doesn’t support PHP v8 you are using Enfold v4.8.6.2
PLease update to v5.6.6, you may need to manually update with the instructions below, but please first note that if your child theme has a custom header.php or footer.php you will need to remove these and then after the update make new custom header.php or footer.php from the current files. It would be better to not use custom header.php or footer.php at all as most update issues are a result from these custom files.
To update your version of Enfold you will need to download the latest installable WP version from your Theme Forest account and upload it to your WordPress ▸ Appearance ▸ Themes ▸ Add Themes ▸ Add New

after you choose the zip file and click install, you will see a This theme is already installed message because you are updating, you can continue

then you will see the Theme updated successfully message.
Best regards,
Mike
HI, I have a problem with my website. If update my php version, the website crash. I did a debug and this what I get:
[06-Jun-2022 17:26:54 UTC] PHP Warning: Array to string conversion in /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/block-editor.php on line 340
[06-Jun-2022 17:26:54 UTC] PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-dependencies.php:186
Stack trace:
#0 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-dependencies.php(186): explode()
#1 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-styles.php(371): WP_Dependencies->all_deps()
#2 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-dependencies.php(126): WP_Styles->all_deps()
#3 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/block-editor.php(347): WP_Dependencies->do_items()
#4 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/block-editor.php(479): _wp_get_iframed_editor_assets()
#5 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-admin/edit-form-blocks.php(282): get_block_editor_settings()
#6 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-admin/post-new.php(72): require(‘…’)
#7 {main}
thrown in /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-dependencies.php on line 186
[06-Jun-2022 17:54:51 UTC] PHP Warning: Array to string conversion in /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/block-editor.php on line 340
[06-Jun-2022 17:54:51 UTC] PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-dependencies.php:186
Stack trace:
#0 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-dependencies.php(186): explode()
#1 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-styles.php(371): WP_Dependencies->all_deps()
#2 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-dependencies.php(126): WP_Styles->all_deps()
#3 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/block-editor.php(347): WP_Dependencies->do_items()
#4 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/block-editor.php(479): _wp_get_iframed_editor_assets()
#5 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-admin/edit-form-blocks.php(282): get_block_editor_settings()
#6 /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-admin/post-new.php(72): require(‘…’)
#7 {main}
thrown in /var/www/vhosts/addis-ababa-living-lab.com/httpdocs/wp-includes/class.wp-dependencies.php on line 186
My hosting says it is a problem inside the website. Please can you help me? Also I cant get the child get the stylesheet working.
Hi mgyura,
It seems the error is somehow related to Woocommerce as you mentioned before:
– https://stackoverflow.com/questions/73290406/warning-attempt-to-read-property-term-id-on-int-woocommerce
Can you give us a copy /nas/content/live/mywtenfold/index.php ?
or if you can setup a staging site for us, that would help us try to debug the issue.
Best regards,
Nikko
Nice – but maybe it is best to select the div by its active state – because not always the first toggle is opend at start:
function custom_header_code() {
?>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', (event) => {
if (window.innerWidth <= 768) {
const div = document.querySelector('div.active_tc');
const p = document.querySelector('.activeTitle');
if(div || p) {
div.classList.remove('active_tc');
p.classList.remove('activeTitle');
}
}
});
</script>
<?php
}
add_action( 'wp_head', 'custom_header_code' );
and if you really want to have it only on mobile devices – you can have that without screen width detection.
function custom_header_code() {
if(wp_is_mobile()){
?>
<script type="text/javascript">
window.addEventListener("DOMContentLoaded", function () {
const div = document.querySelector('div.active_tc');
const p = document.querySelector('.activeTitle');
if(div || p) {
div.classList.remove('active_tc');
p.classList.remove('activeTitle');
}
});
</script>
<?php
}}
add_action( 'wp_head', 'custom_header_code' );
only if you choose the selector activeTitle – the symbol in front will be set to closed ( + )
harunGuest
hello ı Have key but not work my key is but is invalid
-
This topic was modified 2 years, 6 months ago by
Nikko.
One of our sites is continually getting the below error. Any ideas what’s going on with the term_id? Could it have something to do with Woo Commerce also being installed?
Error message:
Attempt to read property “term_id” on int
Error:
in require called at /nas/content/live/mywtenfold/wp-includes/template.php (787)
in load_template called at /nas/content/live/mywtenfold/wp-includes/template.php (720)
in locate_template called at /nas/content/live/mywtenfold/wp-includes/general-template.php (206)
in get_template_part called at /nas/content/live/mywtenfold/wp-content/themes/enfold/single.php (51)
in include called at /nas/content/live/mywtenfold/wp-includes/template-loader.php (106)
in require_once called at /nas/content/live/mywtenfold/wp-blog-header.php (19)
in require called at /nas/content/live/mywtenfold/index.php (17)
Hi,
Thank you for the inquiry.
The issue occurs because of the modified section.php file in the child theme. Please make sure to update the file using the latest version from the parent theme.
This is the error.
Warning: Undefined variable $content in /home/…./site.com/wp-content/themes/enfold-child/shortcodes/section.php on line 87
Warning: Undefined variable $args in /home/…./site.com/wp-content/themes/enfold-child/shortcodes/section.php on line 95
Best regards,
Ismael
Hey neon2020,
Thank you for the inquiry.
Did you add the script in the functions.php file? We couldn’t find the setSlideHeight function in the page. Please provide the login details in the private field so that we can apply the modification.
// https://kriesi.at/support/topic/content-slider-customization/#post-1363578
Best regards,
Ismael
Thanks for that.
I have restored the theme and everything looks good again.
I didnt setup the site I inherited but it turns out someone modified the archive.php file in the parent theme. Can you please send me a link to download the theme Version: 4.7.6.3 so I can look for edited files and move them to the child theme instead.
Appreciate the help and sorry for wasting your time.
Hi,
Oh I see, as I review the posts above, the staging site doesn’t produce the issue, this layout on the staging site is correct:
* removed by request *
this layout from the live site for the same page is wrong:
* removed by request *
and you have tried to disable all of the plugins and reviewed all of the settings without success?
It is very strange that you created a staging site from the live site with the error and the error doesn’t occur.
Typically a staging site will copy and create a new database from the original, try changing the database that the staging site uses to the live site in the wp-config.php file and check the layout on the staging site. Perhaps it is an error in the live database?
If the staging site is correct, is repacing the live site with it an option?
Best regards,
Mike
Hi,
To add custom images before menu items for both regular submenus and mega menus like this:
Main menu items:

Regular submenu items:

and mega menu items:

Try adding this code to the end of your child theme functions.php file in Appearance ▸ Editor:
function add_image_before_menu_item_based_on_class($items) {
// Define the images for specific CSS classes.
$class_image_mapping = array(
'custom-class-1' => 'https://swisspecial.com/wp-content/uploads/2023/09/png-e1695487023144.png',
'custom-class-2' => 'https://swisspecial.com/wp-content/uploads/2023/09/siberian-husky-e1695493493574.png',
// ... add more class-to-image mappings as needed
);
// Loop through each menu item
foreach ($items as &$item) {
// Check if any of the item's classes matches our custom classes
foreach ($item->classes as $class) {
if (isset($class_image_mapping[$class])) {
// If a match is found, prepend the image to the title
$item->title = '<img src="' . esc_url($class_image_mapping[$class]) . '" alt="" style="margin-right: 5px;width: 30px;vertical-align: middle;margin-left: -15px;" />' . $item->title;
break; // exit the loop once the first match is found
}
}
}
return $items;
}
add_filter('wp_nav_menu_objects', 'add_image_before_menu_item_based_on_class');
Note the custom classes have the image path assigned, and also not the inline css to set the width of the images and the margin and the vertical-align, while these work well in my example, you may wish to adjust to your specific menu style.
Then click on the Screen Options tab at the top-right corner of the screen in the menu panel and check the box next to “CSS Classes”, then click on any menu item to expand it. You will see an option named “CSS Classes” where you can add a custom class.

Best regards,
Mike
Thorsten KaltenbornGuest
Hallo zusammen,
ich verwende enfold V. 5.6.5 (Support ist ausgelaufen).
Ich habe hier ein Problem, wenn ich eine 3-spaltige Galerie (avia_sc_gallery) ausgeben möchte. Dabei wird für die Thumb-Breite lokales CSS erzeugt. In gallery.php Zeile 658 wird dazu einfach der Prozentwert errechnet. In WordPress 6.3.1 unter PHP 7.4 erhält man bei 3 Spalten “33,3333”. Das wird aber auch mit Komma ausgegeben, müsste für CSS aber mit Punkt 33.3333 ausgeben werden.
Hoffe, diese Fehlermeldung reicht Euch für einen Bugfix. Ansonsten meldet Euch gern noch einmal bei mir. Ich habe für meine Zwecke einen lokalen Bugfix eingebaut. Vielleicht wird der Kunde ja mal updaten :-)
Viele Grüße
Thorsten Kaltenborn
Hi,
I just began to work with your theme. All I’ve done is upload the demo content that I would like to work with….I’m getting an error message that is preventing me from editing my site. Please see it below.
Fatal error: Uncaught Error: Class “WC_Product_Factory” not found in /var/www/wp-content/plugins/openswatch/includes/class-color-swatch.php:458 Stack trace: #0 /var/www/wp-includes/class-wp-hook.php(312): ColorSwatch->add_meta_boxes(‘page’) #1 /var/www/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array) #2 /var/www/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /var/www/wp-admin/includes/meta-boxes.php(1715): do_action(‘add_meta_boxes’, ‘page’, Object(WP_Post)) #4 /var/www/wp-admin/edit-form-blocks.php(276): register_and_do_post_meta_boxes(Object(WP_Post)) #5 /var/www/wp-admin/post.php(187): require(‘/var/www/wp-adm…’) #6 {main} thrown in /var/www/wp-content/plugins/openswatch/includes/class-color-swatch.php on line 458
There has been a critical error on this website. Please check your site admin email inbox for instructions.
This reply has been marked as private.
Hi
Please can you help. I get the following message when I try to edit a page or create a new one. This message also comes up when I go into the Enfold Theme settings
Fatal error: Out of memory (allocated 178257920) (tried to allocate 40960 bytes) in /services/webpages/c/i/cifial.co.uk/public/uk/wp-includes/class-wpdb.php on line 2425
Checked with my hosing service and they confirm that the memory is 256MB and I am using PHP 7.4.
Both my WordPress and Enfold Theme files are up to date.
Have tried de-activating plug-ins and re-installing the Theme from Zip file but error persisits.
You can view the Website perfectly fine and is functioning correctly, just cannot amend/edit/create pages.
Any assistance would be great.
Hi,
Thank you for the update.
If you want the modification to remain after an update, you have to install a child theme and move the modification to the child theme’s functions.php file. If you haven’t installed a child theme yet, please check the link below.
// https://kriesi.at/documentation/enfold/child-theme/#how-child-themes-work
The Apple Podcast icon is not included in the theme by default, so you will have to find an SVG version of it and convert it to an icon font using the Fontello icon converter. You can then upload it to the Enfold > Import/Export > Iconfont Manager. Please check the documentation below for more info.
// https://kriesi.at/documentation/enfold/icon/#adding-your-own-fontello-or-flaticon-icons-
Best regards,
Ismael
Hi and good afternoon,
I´ve updated WordPress, all Plugins and the envold theme to the actual version 5.6.6. I use PHP 7.4.33.
At the backend are Javascript errors at different areas (You have to activate Javascript). In the health section, mediathek grid view and of course the envold editor on the web pages doesn´t start.
I have deactivated all Plugins, and changed also to the old version. Completely the same. It works just under the twentytwenty-three theme.
So there is a bug in the theme itself.
Could you please take a look?
Thanks and best regards
Michael
Elske ElisenGuest
Dear Enfold – Kriesi.at,
Yesterday, 27 september we (Elske Elisen from MijnSteen.eu) sent your sales department an email considering the following:
1 We bought theme Enfold approximately in 2021 and used it for our basic landing website without complaint. Until 1 week ago.
We recieved your answer yesterday that the problem was rescheduled to the service community department, thank you for that. However we trust in good and quick service we herewith explain the problems we encountered that we cannot resolve without your active help unfortunately:
history
After we updated all the programs of WordPress and adding 2 new sites last week, we encountered the following problems:
We find us confronted with a new url in our landing page website leading directly to the website of Kriesi.at
The added urls, did not work online this week
We were not able to start up our website yesterday after a few hours work on some new pages.
The contact form does not work
We received a mail from WordPress – see attachment
Our host -Cloud86.nl- sorted part of the problem yesterday evening see the attached mail;
Cloud86.nl discovered that the theme Enfold could not operate with the php version. In response Cloud86 restored the former PHP version.
Please see also attached the backup of the website we prepared in concept, yesterday morning.
Herewith we kindly request Kriesi.at to look up and recover our theme Enfold today. So we can continue using and improving our website, and make sure it can be found (through xml indexing) by google at least. And build out to the next level, by us.
We also kindly request Kriesi to upload the attached backup of our site and check if the site works properly then, after your service.
We hope that we have given you enough information in order to resolve our problem with Enfold them the soonest.
We would be happy if you will reply to this mail so we know it has your attention as from now.
Please reply to:
Elske Elisen – M (Email address hidden if logged out) and to me:
Jetze Steensma – Jetze@MijnSteen.eu
Kind regards,
Mijnsteen.eu
Hi,
Thank you for the update.
To add the plugin’s overlay container to the masonry items, please try to edit the enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-masonry.php and look for this code around line 713:
$bg .= "<div class='av-masonry-image-container ' {$img_style} {$outer_title} {$outer_alt}>";
Replace it with:
$bg .= "<div class='av-masonry-image-container protectionOverlaytext' {$img_style} {$outer_title} {$outer_alt}>";
$bg .= "<img class='wccp_pro_overlay_protected_img' src='https://capturelight.net/wp-content/plugins/wccp-pro/images/transparent.gif' style='width:100%; height:100%'>";
Best regards,
Ismael
Hi grafix_,
You’re correct, it will not work because Enfold 4.4.1 was released June 2018, while PHP 8 was just released November of 2020.
You will need to update Enfold to the latest version for it to work properly.
Please do the following process:
First make a backup:
– Site Backup: https://kriesi.at/documentation/enfold/backup-wordpress-site/
– Theme Settings Backup: https://kriesi.at/documentation/enfold/backup-theme-settings/
Option 1: Use Envato Market to update your site
– link: https://envato.com/market-plugin/
Option 2: Update manually
1. Login to ThemeForest and download the Enfold theme, right-click over the downloaded zip file and extract/unzip it.
2. It should generate a new folder, open it and look for the enfold folder
3. Right-click the enfold folder then zip it, here’s a tutorial on how to create a zip file in windows: https://www.howtogeek.com/668409/how-to-zip-and-unzip-files-on-windows-10/ (this should create enfold.zip
4. Log in to WordPress as and Admin.
5. Install and activate a maintenance plugin and put your site in Maintenance mode.
6. Go to Appearance > Themes, switch to a default WordPress theme like TwentyTwenty then delete Enfold.
7. Click on the ADD NEW button.
8. Click on the UPLOAD THEME button.
9. Click BROWSE and choose enfold.zip file
10. Click the INSTALL NOW button and switch to Enfold or your child theme.
11. Remove the maintenance mode then deactivate and remove the maintenance plugin.
Then register the theme by following the instructions in https://kriesi.at/documentation/enfold/theme-registration/
Once this is done, the next time you update, you’ll only need to go to Enfold > Theme Updates and click on the Update button.
Hope it helps.
Best regards,
Nikko
Can’t import the demo for Enfold 2017.
“Download of files for demo Enfold 2017 didn’t work!
You might want to try reloading the page and then try again.”
Even though I have the PHP limit to 256M and also the wp-config.php is 256M
How can I fix it?
Hey davidkfry,
Thank you for the inquiry.
Please try to edit the enfold/config-templatebuilder/avia-shortcodes/numbers/numbers.php and look for this code around line 878:
$replace = '<span class="avia-single-number __av-single-number" data-number_format="' . $number_format . '" data-number="$1" data-start_from="' . $atts['start_from'] . '">$1</span>';
Replace it with:
$replace = '<span aria-label="$1" class="avia-single-number __av-single-number" data-number_format="' . $number_format . '" data-number="$1" data-start_from="' . $atts['start_from'] . '">$1</span>';
We just added the aria-label attribute with the actual or final number as value. Let us know if this helps.
Best regards,
Ismael
Hey Thomas,
What I can offer is a filter to add custom classes to main tag. Changing the div structure is too critical to break existing sites with customizations.
You certainly know, but in html tag you have a class like e.g. html_entry_id_30165 or you can use filter avf_custom_body_classes (enfold\header.php line 167) to add classes to body which you can use to limit selectors for the main tag (like “.your-body-class main”).
Does that help you or would you still prefer an own filter for main tag?
Best regards,
Günter
Hi,
Thank you for reporting this.
Both fixes will be added to next release 5.6.7.
If you want you can replace the following 2 files:
enfold\footer.php
enfold\config-templatebuilder\avia-shortcodes\menu\menu.php
with
https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_5_6_6/footer.php
https://github.com/KriesiMedia/enfold-library/blob/master/temp_fixes/Enfold_5_6_6/config-templatebuilder/avia-shortcodes/menu/menu.php
Do not forget to make a backup of the original files for a fallback.
Best regards,
Günter