-
Search Results
-
Every time I log into the wp- admin i get an automated email from wordpress saying i have a fatal error on my site.
In this case, WordPress caught an error with your theme, Enfold.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 5.9.2
Current theme: Enfold (version 4.9)
Current plugin: (version )
PHP version 8.0.16Error Details
=============
An error of type E_ERROR was caused in line 385 of the file /nas/content/live/clearcututah/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php. Error message: Uncaught TypeError: aviaPostCssManagement::handler_wp_save_post(): Argument #2 ($post) must be of type WP_Post, null given, called in /nas/content/live/clearcututah/wp-includes/class-wp-hook.php on line 307 and defined in /nas/content/live/clearcututah/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-post-css-management.php:385
Stack trace:
#0 /nas/content/live/clearcututah/wp-includes/class-wp-hook.php(307): aviaPostCssManagement->handler_wp_save_post(0, NULL, false)
#1 /nas/content/live/clearcututah/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(true, Array)
#2 /nas/content/live/clearcututah/wp-includes/plugin.php(474): WP_Hook->do_action(Array)
#3 /nas/content/live/clearcututah/wp-includes/post.php(4687): do_action(‘save_post’, 0, NULL, false)
#4 /nas/content/live/clearcututah/wp-admin/includes/post.php(700): wp_insert_post(Array, false, false)
#5 /nas/content/live/clearcututah/wp-admin/includes/dashboard.php(547): get_default_post_to_edit(‘post’, true)
#6 /nas/content/live/clearcututah/wp-admin/includes/template.php(1395): wp_dashboard_quick_press(”, Array)
#7 /nas/content/live/clearcututah/wp-admin/includes/dashboard.php(268): do_meta_boxes(Object(WP_Screen), ‘side’, ”)
#8 /nas/content/live/clearcututah/wp-admin/index.php(203): wp_dashboard()
#9 {main}
thrownDear support team.
My website home page and WooCommerce single product page shows error. could you please help me fix the error?
your prompt reply will be much appreciated:Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “woocommerce_single_product_summary_button” not found or invalid function name in /home4/shinydec/public_html/wp-includes/class-wp-hook.php:307 Stack trace: #0 /home4/shinydec/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array) #1 /home4/shinydec/public_html/wp-includes/plugin.php(474): WP_Hook->do_action(Array) #2 /home4/shinydec/public_html/wp-content/plugins/woocommerce/templates/content-single-product.php(60): do_action(‘woocommerce_sin…’) #3 /home4/shinydec/public_html/wp-includes/template.php(772): require(‘/home4/shinydec…’) #4 /home4/shinydec/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(284): load_template(‘/home4/shinydec…’, false) #5 /home4/shinydec/public_html/wp-content/themes/Enfold-child-theme/woocommerce/single-product.php(37): wc_get_template_part(‘content’, ‘single-product’) #6 /home4/shinydec/public_html/wp-includes/template-loader.php(106): include(‘/home4/shinydec…’) #7 /home4/shinydec/public_html/wp-blog-header.php(19): require_once(‘/home4/shinydec…’) #8 /home4/shinydec/public_html/index.php(17): require(‘/home4/shinydec…’) #9 {main} thrown in /home4/shinydec/public_html/wp-includes/class-wp-hook.php on line 307
Topic: 3 logos
Hi I need to build an header like this, with 3 logos:
1) the main on the left
2) e 3) on the right (they need to be clickable).Like this.
I followed this guide with no success (chapter “Add multiple logos”), put this code in my child functions.php:
------------------------------- Remove the logo ------------------------------- add_filter('avf_logo_final_output', 'avia_remove_default_logo', 10, 6); function avia_remove_default_logo($logo, $use_image, $headline_type, $sub, $alt, $link){ return ''; } ------------------------------- Additional Logos ------------------------------- function add_logos($logo) { if(is_page(home)){ $logo .= '<a class="first-logo" href="/"><img src="http://rivista-toscana-medica.local/wp-content/uploads/2022/03/logo-rivista.jpg"/></a>'; $logo .= '<a class="second-logo" href="https://toscanamedica.org"><img src="http://rivista-toscana-medica.local/wp-content/uploads/2022/03/logo-ordine.jpg"/></a>'; $logo .= '<a class="third-logo" href="https://www.pacinimedicina.it"><img src="http://rivista-toscana-medica.local/wp-content/uploads/2022/03/pacinimedicina.png"/></a>'; } return $logo; } add_filter('avf_logo_final_output', 'add_logos');But having this php error:
(! ) FATAL ERROR: UNCAUGHT ERROR: UNDEFINED CONSTANT “HOME” IN /USERS/NIGULI/LOCAL SITES/RIVISTA-TOSCANA-MEDICA/APP/PUBLIC/WP-CONTENT/THEMES/ENFOLD-CHILD/FUNCTIONS.PHP ON LINE 21
What am I doing wrong?
Line 21 is:
if(is_page(home)){So does the code not recognize which is the homepage? why? Thanks for helping me.
Hi!
After an update of the Enfold theme, our blog archive page is broken because of a PHP error.
In our child theme the code of the archive.php is changes to:
if(!empty($post_ids)) { $atts = array( 'type' => 'grid', 'items' => get_option('posts_per_page'), 'columns' => 2, 'class' => 'avia-builder-el-no-sibling', 'paginate' => 'yes', 'gap' => 'large', 'overlay_fx' => 'bluronhover', 'caption_elements' => 'title', 'caption_styling' => 'overlay', 'use_main_query_pagination' => 'yes', 'custom_query' => array( 'post__in'=>$post_ids, 'post_type'=>get_post_types() ) ); $blog = new avia_masonry($atts); $blog->extract_terms(); $blog->query_entries();This now brings up a PHP error with the latest Enfold version:
Fatal error: Uncaught Error: Call to a member function get_default_sc_args() on null in /www/htdocs/xxx/xxx/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-sub-item-query-base.php:84 Stack trace: #0 /www/htdocs/xxx/xxx/wp-content/themes/enfold/config-templatebuilder/avia-shortcode-helpers/class-avia-masonry.php(50): aviaBuilder\base\aviaSubItemQueryBase->__construct(Array, NULL, Array) #1 /www/htdocs/xxx/xxx/wp-content/themes/enfold-child/archive.php(66): avia_masonry->__construct(Array) #2 /www/htdocs/xxx/xxx/wp-includes/template-loader.php(106): include('/www/htdocs/xxx...') #3 /www/htdocs/xxx/xxx/wp-blog-header.php(19): require_once('/www/htdocs/xxx...') #4 /www/htdocs/xxx/xxx/index.php(17): require('/www/htdocs/xxx...') #5 {main} thrown in /www/htdocs/xxx/xxx/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-sub-item-query-base.php on line 84The call to
$blog = new avia_masonry($atts);
is the problem here. How can we achieve a post grid look in the archive page with the latest Enfold version?Thanks,
Marcsince we have changed from php 7.3 first to 7.4 and then 8.0, we get fatal error on the website.
Fatal error: Unparenthesized
a ? b : c ? d : eis not supported. Use either(a ? b : c) ? d : eora ? b : (c ? d : e)in /homepages/25/d412285811/htdocs/htdocs/wp-content/themes/enfold/functions-enfold.php on line 324
we tried to change this in php, but it doesnt work.
$post_type = $image ? “” : ( get_post_format($post->ID) != “” ? get_post_format($post->ID) : “standard” );
Is there a new Version of enfold?Topic: fatal error on your site
Since WordPress 5.2 there is a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.
In this case, WordPress caught an error with your theme, Enfold.
First, visit your website and check for any visible issues. Next, visit the page where the error was caught (wp-admin/customize.php?return=%2Fwp-admin%2Fthemes.php) and check for any visible issues.
Please contact your host for assistance with investigating this issue further.
If your site appears broken and you can’t access your dashboard normally, WordPress now has a special “recovery mode”. This lets you safely login to your dashboard and investigate further.
To keep your site safe, this link will expire in 1 day. Don’t worry about that, though: a new link will be emailed to you if the error occurs again after it expires.
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 5.9.1
Current theme: Enfold Child (version 1.0)
Current plugin: (version )
PHP version 7.4.28Error Details
An error of type E_ERROR was caused in line 563 of the file /www/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php. Error message: Uncaught Error: Call to undefined function gutenberg_can_edit_post_type() in /www/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php:563
Stack trace:0 /www/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(423): Avia_Gutenberg->can_use_block_editor(‘post’, true)
1 /www/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(458): Avia_Gutenberg->init_force_classic_post_types()
2 /www/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(533): Avia_Gutenberg->get_force_classic_post_types()
3 /www/wp-content/themes/enfold/config-gutenberg/class-avia-gutenberg.php(661): Avia_Gutenberg->force_classic_editor(‘page’)
4 /wordpress/wp-includes/class-wp-hook.php(307): Avia_Gutenberg->handler_display_post_states(Array, Object(WP_Post))
5 /wordpress/wp-includes/plugin.php(189): WP_Hook->apply_filters(Array, Array)
6 /wordpress/wp-admin/includes/template.php(2242): apply_filters(‘display_post_st…’, Array, Object(WP_Post))
7 /wordpress/wp-includes/nav-menTopic: Importing Demo
Hi
I can’t download any demo. Getting “Error accessing file for download:
cURL error 28: Connection timed out after 10001 seconds”.
I tried the manual method (https://kriesi.at/documentation/enfold/import-demos/#how-to-import-a-theme-demo), but it doesn’t work either.
Here are the server’s options:
Web server Apache
PHP version 8.1.0 (Supports 64bit values)
PHP SAPI fpm-fcgi
PHP max input variables 16000
PHP time limit 165
PHP memory limit 512M
Max input time -1
Upload max filesize 128M
PHP post max size 130M
cURL version 7.64.0 OpenSSL/1.1.1dThanks for any help!
Topic: error in
I have two errors in my enfold theme that I would like to solve and I have no idea how
the first on a page created:
Warning: Undefined array key “controls” in /home/anibal1971/public_html/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php on line 746the second in the footer of the theme
Warning: Undefined variable $kriesi_at_backlink in /home/anibal1971/public_html/wp-content/themes/enfold/footer.php on line 194





