-
Search Results
-
Hi Guys,
I am working with a customer who is using the following code in functions.php to modify breadcrumb output:
//advanced title + breadcrumb function if (!function_exists('avia_title')) { function avia_title($args = false, $id = false) { global $avia_config; if (!$id) $id = avia_get_the_id(); $header_settings = avia_header_setting(); if ($header_settings['header_title_bar'] == 'hidden_title_bar') return ""; $defaults = array( 'title' => get_the_title($id), 'subtitle' => "", //avia_post_meta($id, 'subtitle'), 'link' => get_permalink($id), 'html' => "<div class='{class} title_container'><div class='container'>{heading_html}</div></div>{additions}", 'heading_html' => "<h1 class='main-title entry-title'>{title}</h1>", 'class' => 'stretch_full container_wrap alternate_color ' . avia_is_dark_bg('alternate_color', true), 'breadcrumb' => true, 'additions' => "", 'heading' => 'h1' //headings are set based on this article: http://yoast.com/blog-headings-structure/ ); if (is_tax() || is_category() || is_tag()) { global $wp_query; $term = $wp_query->get_queried_object(); $defaults['link'] = get_term_link($term); } else if (is_archive()) { $defaults['link'] = ""; } // Parse incomming $args into an array and merge it with $defaults $args = wp_parse_args($args, $defaults); $args = apply_filters('avf_title_args', $args, $id); //disable breadcrumb if requested if ($header_settings['header_title_bar'] == 'title_bar') $args['breadcrumb'] = false; //disable title if requested if ($header_settings['header_title_bar'] == 'breadcrumbs_only') $args['title'] = ''; // OPTIONAL: Declare each item in $args as its own variable i.e. $type, $before. extract($args, EXTR_SKIP); if (empty($title)) $class .= " empty_title "; $markup = avia_markup_helper(array('context' => 'avia_title', 'echo' => false)); if (!empty($link) && !empty($title)) $title = $title; if (!empty($subtitle)) $additions .= "<div class='title_meta meta-color'>" . wpautop($subtitle) . "</div>"; if ($breadcrumb) $additions .= avia_breadcrumbs(array('separator' => '>', 'richsnippet' => true)); if (!$title) $heading_html = ""; $html = str_replace('{heading_html}', $heading_html, $html); $html = str_replace('{class}', $class, $html); $html = str_replace('{title}', $title, $html); $html = str_replace('{additions}', $additions, $html); $html = str_replace('{heading}', $heading, $html); if (!empty($avia_config['slide_output']) && !avia_is_dynamic_template($id) && !avia_is_overview()) { $avia_config['small_title'] = $title; } else { return $html; } } }Since updating to Enfold 4.8.8 the following line is causing a fatal error.
46 PHP Fatal error: Uncaught Error: Call to undefined function avia_breadcrumbs() in /nas/content/live/gagemathersstg/wp-content/themes/enfold-child/functions.php:85\nStac
The line that is causing the problem is extracted below.
if ($breadcrumb) $additions .= avia_breadcrumbs(array('separator' => '>', 'richsnippet' => true));If I remove the line the site is visible but breadcrumbs are no longer visible on any of the pages.
Has avia_breadcrumbs been depreciated or changed in 4.8.8 or have there been any other changes to the breadcrumbs that we should know about to make them work again?
I have rolled back the server to 4.7.1 for now just while I raise this issue so the client can still access the site.
Topic: PHP 7.3
Hi,
I need to change my web hosting over to PHP 7.3 and want to be sure my version of the Enfold theme is compatible. It looks like I’m using Enfold 4.4 with a child theme that’s 0.1.0. Will it work or do I need to update Enfold? If so, can you walk me through how to do it?Thanks!
SandrasTopic: PHP 8 breaks my entire site
Dear Admin,
I updated my website PHP version to 8.0 and my site break please see the attached email https://ibb.co/PcmDM2k. I could not do anything unless I switch back to PHP 7.4. my WordPress version is 5.8.2 and latest enfold version as at today is installedHi – I have long used the rss feed capability to trigger mailchimp to send an email to subscribers when a new blog post is published on my site. Sometime between Nov 17 and today that functionality broke. I am theorizing that it was either the switch to PHP 8 or the update to Enfold 4.8.8 which triggered this.
If you go to http://www.thomashenthorne.com/rss or http://www.thomashenthorne.com/feed you see this error:This page contains the following errors:
error on line 46 at column 60: Opening and ending tag mismatch: description line 44 and title
Below is a rendering of the page up to the first error.
Thomas Henthorne https://www.thomashenthorne.com Marin Real Estate: Find Marin homes for sale from your trusted Marin Realtor Sun, 12 Dec 2021 22:24:00 +0000 en-US hourly 1 https://wordpress.org/?v=5.8.2 https://i1.wp.com/www.thomashenthorne.com/wp-content/uploads/2016/02/cropped-Thomas-Henthorne-Top-Marin-Real-Estate-Agent.jpg?fit=32%2C32&ssl=1 Thomas Henthorne https://www.thomashenthorne.com 32 32 94920035 Marin County Real Estate Market Report December 2021 | Latest News https://www.thomashenthorne.com/marin-county-real-estate-market-news-december-2021/ https://www.thomashenthorne.com/marin-county-real-estate-market-news-december-2021/#respond Sun, 12 Dec 2021 22:21:42 +0000 https://www.thomashenthorne.com/?p=17325I already had critical errors in some Enfold (only dutch) installs with version 4.8.7.1 and php 8.0 hosted on one.com
When I downgraded to php 7.4 evrything was OK. (more or less because I had to go back to PHP 7.4)Now with the new 4.8.8 release I was hopefull the issues would e resolved.
But again a critical errorEen fout van het type E_ERROR werd veroorzaakt op regelnummer 311 van het bestand /customers/2/5/8/vahconsulting.be/httpd.www/wp-content/themes/enfold/includes/admin/option_tabs/avia_blog.php. Foutmelding: Uncaught ValueError: Unknown format specifier “S” in /customers/2/5/8/vahconsulting.be/httpd.www/wp-content/themes/enfold/includes/admin/option_tabs/avia_blog.php:311
Stack trace:
#0 /customers/2/5/8/vahconsulting.be/httpd.www/wp-content/themes/enfold/includes/admin/option_tabs/avia_blog.php(311): sprintf(‘Als u links naa…’, ‘After the latest enfold theme update my site would not display any pages apart from the home page
The web hosts flagged up the error as in the private content below.
I removed the following code (as per https://kriesi.at/documentation/enfold/breadcrumbs/)
from my child theme functions PHP file
————————————-
——————————————-
and my site is now back up but I am stuck with no breadcrumbs and the av_breadcrumbs shortcode displayed at the top of each page.
I use the short code in a code block on each page to display the breadcrumbs
[ av_breadcrumbs ]The error can be repeated. Put the code back into functions php the site is broken – take it out it is back up.
I see one other person may have had this problem.
Topic: PHP 7.4 & Enfold New Version
Hi there,
when migrating to the new PHP version 7.4, Enfold displays error messages. So I have to buy the theme again and upload it, right?But I’m worried that data (e.g. images) and, above all, all of the original settings will then be lost; So the theme settings and the individual page settings that were made with the Layout Builder.
If I upload the newly purchased Enfold theme via FTP and delete the old one via FTP, will the settings be retained? Does this approach work as described or not?
Thanks for your support.
—
in german:Hallo,
bei der Umstellung auf die neue PHP Version 7.4 zeigt Enfold Fehlermeldungen an. Ich muss das Theme daher neu kaufen und hochladen, richtig?Ich mache mir aber Sorgen, dass dann Daten (z.B. Bilder) und vor allem die ganzen ursprünglichen Einstellungen verloren gehen; also die Theme-Einstellungen und die individuellen seiteneinstellungen, die mit dem Layout Builder gemacht wurden.
Wenn ich das neu gekaufte Enfold Theme über FTP hochlade und das alte über FTP rauslösche, bleiben dann die Einstellungen erhalten? Funktioniert diese Vorgehensweise so wie beschrieben oder nicht?
Vielen Dank für Ihre Unterstützung.
Hello,
I was testing in my staging environment Version 4.8.8, but I got the following Fatal Error in class-asset-manager.php
Error goes away if I disable in the performance options JavaScript files merging and compression
I tried to clear enfold CSS AN JS cache and re-enable file merging, but error return
########################################
Fatal error: Uncaught Error: Attempt to assign property “src” on null in /www/sufiit_944/public/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php:880 Stack trace: #0 /www/sufiit_944/public/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php(289): aviaAssetManager->try_deregister_scripts(‘avia-footer-scr…’) #1 /www/sufiit_944/public/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php(112): aviaAssetManager->merge(‘js’, ‘avia-footer-scr…’, Array) #2 /www/sufiit_944/public/wp-includes/class-wp-hook.php(303): aviaAssetManager->minimize_footer_scripts(”) #3 /www/sufiit_944/public/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #4 /www/sufiit_944/public/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #5 /www/sufiit_944/public/wp-includes/script-loader.php(2066): do_action(‘wp_print_footer…’) #6 /www/sufiit_944/public/wp-includes/class-wp-hook.php(303): wp_print_footer_scripts(”) #7 /www/sufiit_944/public/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array) #8 /www/sufiit_944/public/wp-includes/plugin.php(470): WP_Hook->do_action(Array) #9 /www/sufiit_944/public/wp-includes/general-template.php(3031): do_action(‘wp_footer’) #10 /www/sufiit_944/public/wp-content/themes/enfold/footer.php(333): wp_footer() #11 /www/sufiit_944/public/wp-includes/template.php(770): require_once(‘/www/sufiit_944…’) #12 /www/sufiit_944/public/wp-includes/template.php(716): load_template(‘/www/sufiit_944…’, true, Array) #13 /www/sufiit_944/public/wp-includes/general-template.php(92): locate_template(Array, true, true, Array) #14 /www/sufiit_944/public/wp-content/themes/enfold/page.php(56): get_footer() #15 /www/sufiit_944/public/wp-includes/template-loader.php(106): include(‘/www/sufiit_944…’) #16 /www/sufiit_944/public/wp-blog-header.php(19): require_once(‘/www/sufiit_944…’) #17 /www/sufiit_944/public/index.php(17): require(‘/www/sufiit_944…’) #18 {main} thrown in /www/sufiit_944/public/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-asset-manager.php on line 880Thank you
MauroWhen using de_DE_formal in WPML then Enfold has some invalid translations.
When looking into enfold/lang/de_DE_formal.po line 23094 it says:#: functions-enfold.php:328 includes/loop-author.php:197 #: includes/loop-index.php:538 msgid "Sorry, no posts matched your criteria" msgstr "Entschuldigung, aber kein Eintrag erfüllt Deine Suchkriterien"instead of “Entschuldigung, aber kein Eintrag erfüllt Deine Suchkriterien” it should be “Entschuldigung, aber kein Eintrag erfüllt Ihre Suchkriterien”. It seems like translations were copied from de_DE instead of de_DE_formal. It would be nice if this could be fixed globally.
Topic: CRITICAL Uncaught Error
Hello,
On this site, clueb.it, in the Woocommerce logs I frequently have this error:
= = = = =
2021-12-09T06:08:58+00:00 CRITICAL Uncaught Error: Call to a member function get_cart() on null in /var/www/html/wp-content/themes/enfold/config-woocommerce/config.php:2232
Stack trace:
#0 /var/www/html/wp-includes/class-wp-hook.php(303): avia_woocommerce_cart_pos()
#1 /var/www/html/wp-includes/plugin.php(189): WP_Hook->apply_filters()
#2 /var/www/html/wp-content/themes/enfold/functions-enfold.php(1619): apply_filters()
#3 /var/www/html/wp-content/themes/enfold/header.php(32): avia_header_class_string()
#4 /var/www/html/wp-includes/template.php(770): require_once(‘/var/www/html/w…’)
#5 /var/www/html/wp-includes/template.php(716): load_template()
#6 /var/www/html/wp-includes/general-template.php(48): locate_template()
#7 /var/www/html/wp-content/themes/enfold/404.php(9): get_header()
#8 /var/www/html/wp-includes/template-loader.php(106): include(‘/var/www/html/w…’)
#9 /var/www/html/wp-blog-header.php(19): require_once(‘/var/www/html/w…’)
#10 /var/www/html/index.php(17): require(‘/var/www/html/w…’)
#11 {main}
thrown in /var/www/html/wp-content/themes/enfold/config-woocommerce/config.php alla riga 2232
= = =Could this error be the cause of frequent “Pending Payment on WooCommerce”?
What can I do to fix?Best regards
Oriano





