1.) The maximum size of the masonry thumbnail is 705px so uploading images with that exact same size should be fine, uploading a larger image is recommended.
2.) Please try to add this code in the functions.php to display the post summary and read more link in the category pages.
function change_blog_archive_style() {
global $avia_config;
if(!is_single()){ $avia_config['blog_content'] = "excerpt_read_more"; }
}
add_action('get_header', 'change_blog_archive_style');
thank you for waiting!
I have good and not so good news.
The error seems to be gone. Thanks for the solution :-)
Another error came up now:
[11-Oct-2022 17:20:02 UTC] PHP Notice: Undefined variable: icon_beside in /home/wp/disk/wordpress/wp-content/themes/enfold-child/functions.php on line 65
It is in the same line as the previous one.
Any idea what it means? I will add the log file in the same file with the rest for you to see.
Hi everyone, i had the exact same issue when I was importing BAND demo.
I could fix it by importing zip archive. here is the details
I check the logs to see what is the error. here was the error
CRITICAL Uncaught Error: Class ‘ZipArchive’ not found in /home/public_html/YOUR_SITE/wp-content/themes/enfold/framework/php/inc-avia-download-demo.php:56
Stack trace:
#0 /home/public_html/YOUR_SITE/wp-content/themes/enfold/framework/php/function-set-avia-ajax.php(714): require_once()
#1 /home/public_html/YOUR_SITE/wp-includes/class-wp-hook.php(307): avia_ajax_import_data(”)
#2 /home/public_html/YOUR_SITE/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(”, Array)
#3 /home/public_html/YOUR_SITE/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
#4 /home/public_html/YOUR_SITE/wp-admin/admin-ajax.php(187): do_action(‘wp_ajax_avia_aj…’)
#5 {main}
thrown in /home/public_html/YOUR_SITE/wp-content/themes/enfold/framework/php/inc-avia-download-demo.php on line 56
My Server is CPANEL. so I find this youtube video on how to enable ZipArchive on CPANEL. (I also do not know indian, just follow the video)
BINGO. It imports successfully.
I hope it helps someone else too.
This reply was modified 3 years, 6 months ago by omidheshmatinia.
This reply was modified 3 years, 6 months ago by omidheshmatinia.
Hi Guys,
my hosting company said the error below might be coming from the theme.. but I don’t think so.
have you seen this before? I deactivated all my plugins, and whenever I try to add post or page this happens.
Hope you have an idea.
Thanks
Tina
Notice: Trying to get property ‘post_type’ of non-object in /wordpress/wp-includes/post.php on line 7581 Notice: Trying to get property ‘post_type’ of non-object in /wordpress/wp-includes/post.php on line 7582 Notice: Trying to get property ‘ID’ of non-object in /wordpress/wp-includes/post.php on line 7586 Notice: Trying to get property ‘post_type’ of non-object in /wordpress/wp-includes/post.php on line 7829 Notice: Trying to get property ‘post_type’ of non-object in /wordpress/wp-includes/theme.php on line 3514 Notice: Trying to get property ‘post_type’ of non-object in /wordpress/wp-includes/theme.php on line 3739 Notice: Trying to get property ‘post_type’ of non-object in /wordpress/wp-includes/post.php on line 5361 Notice: Trying to get property ‘ID’ of non-object in /wordpress/wp-includes/post.php on line 5361 Notice: Trying to get property ‘post_type’ of non-object in /wordpress/wp-includes/post.php on line 4662 Fatal error: Uncaught TypeError: Argument 2 passed to aviaPostCssManagement::handler_wp_save_post() must be an instance of WP_Post, null given, called in /wordpress/wp-includes/class-wp-hook.php on line 307 and defined in /www/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php:385 Stack trace: #0 /wordpress/wp-includes/class-wp-hook.php(307): aviaPostCssManagement->handler_wp_save_post(0, NULL, false) #1 /wordpress/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #2 /wordpress/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #3 /wordpress/wp-includes/post.php(4673): do_action(‘save_post’, 0, NULL, false) #4 /wordpress/wp-admin/includes/post.php(700): wp_insert_post(Array, false, false) #5 /wordpress/wp-admin/post-new.php(66): get_default_post_to_edit(‘post’, true) #6 {main} thrown in /www/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php on line 385
There has been a critical error on this website. Please check your site admin email inbox for instructions.
Hi Ismael. I tried adding your suggestion in functions.php file (as last: adjust the default icon font)
—
<? php
/ *
* Add your own functions here. You can also copy some of the theme functions into this file.
* WordPress will use those functions instead of the original functions then.
* /
function add_custom_meta () {
?>
<meta name = “google-site-verification” content = “7LpFH1J-aPDKgNxEgLwGuRCij-Cr_F9qzEGsd3lVzmQ” />
<? php
}
add_action (‘wp_head’, ‘add_custom_meta’);
/ **
* Rename the following tabs
* /
add_filter (‘woocommerce_product_tabs’, ‘woo_rename_tabs’, 98);
function woo_rename_tabs ($ tabs) {
$ tabs [‘additional_information’] [‘title’] = __ (‘Technical Sheet’); // Rename the additional information tab
}
—
but it gives me error: “Scrape key check failed. Please try again.” https://ibb.co/PZnMqk1
I added the shop button but the problem is that buying a product does not show the cart icon, but a circle with the number of purchases in the cart: how do I replace the circular icon with a nice “cart” icon ? https://ibb.co/zbtfWXr
Hi. When I upgrade my server to use PHP 7.4, 2 of my website pages does not load. When it is using PHP 7.4, The main page loads but displays a black page and another page as well. They are both pages with the slider media element provided by Enfold.
When PHP 8.0 is installed, the entire page does not load. There is a “There has been a critical error on this website. Learn more about troubleshooting WordPress” message that appears.
Servus, habe diese E-Mail hier bekommen weil ich keine Portfolio-Einträge mehr über das Backend aufrufen kann. Der Rest ist komplett vorhanden.
Seit WordPress 5.2 gibt es eine eingebaute Funktion, die erkennt, wenn ein Plugin oder ein Theme einen fatalen Fehler auf deiner Website verursacht, und dich deswegen mit dieser automatisierten E-Mail benachrichtigt.
In diesem Fall hat WordPress einen Fehler in deinem Theme „Enfold“ abgefangen.
ok i woke up one day to this all my layout builder is in infinite loder i check php version and got that in 7.2 its not wokring
only in 5.6
so i update all and now i get weird error every time i try to save a page that has even couple lines of code from builder its going to 404 page
i do not understend why this happend
Sorry – now I have changed my layout to Boxed – this makes no difference on my test platform, except for large screen widths larger than 1600px the image is further enlarged and cropped. To avoid this on your installation, please switch back to your boxed layout and we will find a way.
i see on boxed layout there is a little different html for those sections – but we can leave out the empty content of this color-section anyway:
(it is only important that we have inside the div with container class)
In a boxed layout we can prevent the enlargement by giving the #banner a maximum height – since body is set to 90% width – this must be included in the calculation.
@media only screen and (min-width: 990px) {
#banner {
max-height: calc(0.9 * 556px);
height: calc(0.9 * 34.75vw);
background-repeat: no-repeat;
background-image: url(/wp-content/uploads/2022/10/logo2-1.jpg);
background-position: 0% 0%;
background-attachment: scroll;
}
}
/**** beneath the 990px boxed layout body goes to 100% width ******/
@media only screen and (max-width: 989px) {
#banner {
max-height:556px;
height: 34.75vw;
background-repeat: no-repeat;
background-image: url(/wp-content/uploads/2022/10/logo2-1.jpg);
background-position: 0% 0%;
background-attachment: scroll;
}
}
well that content is loaded after the other content is already in the DOM; next : maybe lazy-loading comes into account too on that.
So if you just want to have the image up there without slider functions, why don’t you use a color-section anyway for performance reasons.
See here ( sorry with your image ) a page with that color section – your image has a aspect ratio of 1600:556 so if the width is 100vw the height is 34.75vw
this could be done by a custom ID f.e. banner in your quick css:
Guenni Thanks but it seems all I can gather is this div stuff below. That one again does not contain mobile turn on/off values seem so.
At the end I put if clause to this function and it works nicely for desktop + mobile separatelly.
I think we are good to close this one if there is no other way how to distinguish between desktop/mobile
Thanks a lot Guenni007.
This seems to work properly with your function above and html code from Inspect (Dev Tools). Hope it won’t break anything else :)
One issue however comes from this is that when I configure the slider to be hidden on mobile phones the above code does not change and hence it always display on phone as well. Is there some hack for this as well?
i see on your inserted code that there is a space behind header_glassy – and that is important !
if i remove that space – the presetting will not work.
______________
for the devs and mods:
by the way: on functions-enfold.php on line 1335 there is:
Hi,
Thanks for the link to your site, it looks like you were able to add the slider to all of your pages & posts with a function in your functions.php and the slider shortcode, but it looks like it added a second slider to your homepage and I believe that you only want this to add the slider to your posts, so I added if(is_single()) {…} to your function and it seems to be working, please check.
for future readers the function is basically like this:
Ismael,
I was able to get the shorcode of slider I would like to use by default on all pages. Based on reading about hooks it seems it is enough to adjust functions.php of my child theme. Are you able to provide me proper function for this to have it displayed same way like homepage on all blog posts? I couldn’t find anything about hooks in documentation.
I tried to update PHP today, and had several issues with Enfold.
1. Despite repeated manual requests to get the current version of Enfold through the dashboard, I kept getting the message that I had the most recent version and that it was 4.8.8. This is obviously not correct.
2. I double-checked the license code, and found that the one the site was using did not have current support. I changed to a code that does have currently paid-up support, and rechecked for the Enfold update, several times. I still got the message that I had the most recent version at 4.8.8.
3. I checked the main page of the site and discovered that it was showing what appeared to be a vertical tablet-sized layout.
4. I tried deactivating plugins, and the layout would not change back to normal (stretched).
5. I manually downloaded Enfold 5.1.2 and updated the theme. The site was still using the bad layout.
6. I reset PHP back to 7.4, and the site came up in its normal layout.
I checked the settings from the 7.4 PHP configuration, and everything appeared to be the same for PHP 8. I didn’t see any PHP errors. Is there some setting new to PHP 8 that wasn’t in PHP 7.4 that Enfold needs to have activated?
Hallo Service
Habe den Wechsel von normalem Menü auf Hamburger Menü bei kleiner Darstellung nicht mehr. Die responsive Funktion läuft seit dem Update von Enfold auf Version 5.1.2 (PHP-Version 7.4.28) nicht mehr. Arbeite mit ENFOLD CHILD. Ging immer einwandfrei.
Habe schon einige ENFOLD Seiten für Kunden gestaltet. Nie Probleme gehabt.
Mit freundlichen Grüßen
Fred
Recently I started receiving this warning when trying to edit the content on my pages. Because of it, I can’t currently access the editor and thus I cannot work with the website so the problem is rather critical.
Warning: Array to string conversion in /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-includes/block-editor.php on line 340
Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-includes/class.wp-dependencies.php:186 Stack trace: #0 /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-includes/class.wp-dependencies.php(186): explode(‘?’, Array) #1 /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-includes/class.wp-styles.php(371): WP_Dependencies->all_deps(Array, false, false) #2 /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-includes/class.wp-dependencies.php(126): WP_Styles->all_deps(Array) #3 /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-includes/block-editor.php(347): WP_Dependencies->do_items(Array) #4 /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-includes/block-editor.php(479): _wp_get_iframed_editor_assets() #5 /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-admin/edit-form-blocks.php(282): get_block_editor_settings(Array, Object(WP_Block_Editor_Context)) #6 /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-admin/post.php(187): require(‘/data01/virt104…’) #7 {main} thrown in /data01/virt104308/domeenid/www.towardsbetter.me/htdocs/wp-includes/class.wp-dependencies.php on line 186
My current PHP version is 8.1 FastCGI. I tried to downgrade to the earliest version that my hosting provider allows which is 7.1 FastCGI and it didn’t help.
My current Enfold Theme Version Number is 4.8.3
My WP version is 6.0.2
I have checked several other tickets that were created on this topic and I want to prevent some questions:
– Did you try to turn off and on your plugins – yes
– Are you sure that the problem is in the theme – yes (because when I put another theme everything works. When I change to the WP Classic Editor everything works as well.
– Are your theme and WP updated – yes
– Is it a critical error – yes
Hey nis59,
Thanks for your question, this is the correct link to download the demos and this is our documentation on How to manually import a theme demo.
The problem with OVH hosting is they have disabled the set_time_limit() function on their servers this function is used by WordPress so the import doesn’t time out, this is different than the current PHP run time limit. OVH also sets the Max input time as -1 this should be 180, in the past they have told customers that they will not change this, there is nothing we can do to correct that since it is the server settings causing the issue.
Yesterday an OVH customer in this thread installed the demo on their localhost and then cloned it to their OVH host, which so far seems to be the easiest solution for a OVH hosted site.
Thanks for that. I see that the video is not working on your site, but I tested it on one of our test installations, and it’s working as expected there. Please see private. Could you try upgrading your PHP version to 7.4 or higher to see if that helps? You could also try to temporarily deactivate all plugins to see if that makes any difference.
Hi,
Thanks for the feedback, unfortunately the host OVH has the set_time_limit() function disabled on their servers this function is used by WordPress so the import doesn’t time out, this is different than the current PHP run time limit.
OVH also sets the Max input time as -1 this should be 180, in the past they have told customers that they will not change this, there is nothing we can do to correct that since it is the server settings causing the issue.
One user was able to import a demo by manually uploaded demo files with FTP client, this is the thread.
but that function is on functions-enfold.php line 970ff : avia_ampersand
so if in content an ampersand is set it will be changed to : <span class='special_amp'>&</span>
Can I check if updating the theme manually worked with PHP 8?
I have a similar issue with the error being “Notice: Array to string conversion in /var/www/…./wp-includes/block-editor.php on line 340
I am using PHP 7.4.30 with errors turned off.
If I upgrade to PHP 8.0.23 then I get the above error and cannot edit any of my posts, pages etc
Can I check if this worked by updating the theme manually?
I have a similar issue with the error being “Notice: Array to string conversion in /var/www/…./wp-includes/block-editor.php on line 340
I am using PHP 7.4.30 with errors turned off.
If I upgrade to PHP 8.0.23 then I get the above error and cannot edit any of my posts, pages etc.
Hi,
Thanks for the logins, I found that your parent theme was in an extra directory /enfold/enfold/ so the child theme couldn’t find the files of the parent theme, I corrected and activated your child theme.
I noticed in WordPress ▸ Dashboard ▸ Tools ▸ Site Health your PHP version is 7.3.33 and the minimum recommended version for WordPress is v7.4, please ask your webhost to update this for you.
Best regards,
Mike
Author
Search Results
Viewing 30 results - 1,891 through 1,920 (of 16,893 total)