-
Search Results
-
Topic: Compatibility with PHP 8.0
Hi,
We have a website which has the Enfold Version 4.7.6.3 theme that is on a server running PHP 7.4.33 and the hosting company will be updating it to PHP 8.0 in the next month.
Please advise whether this theme and associated plugins are compatible with PHP 8.0.Thanks,
When i try to edit a page, i get this error on my site, can you help?
An error of type E_ERROR was caused in line 619 of the file /home/tradoto/public_html/wp-content/themes/enfold-child/functions.php. Error message: Uncaught Error: Call to a member function needs_shipping() on null in /home/tradoto/public_html/wp-content/themes/enfold-child/functions.php:619
Stack trace:
#0 /home/tradoto/public_html/wp-includes/class-wp-hook.php(310): patricks_billing_fields(Array)
#1 /home/tradoto/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
#2 /home/tradoto/public_html/wp-content/plugins/woocommerce/includes/class-wc-countries.php(1660): apply_filters(‘woocommerce_bil…’, Array, ‘US’)
#3 /home/tradoto/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(253): WC_Countries->get_address_fields(‘US’, ‘billing_’)
#4 /home/tradoto/public_html/wp-content/themes/enfold-child/functions.php(664): WC_Checkout->get_checkout_fields()
#5 /home/tradoto/public_html/wp-includes/class-wp-hook.php(308): o_woocommerce_confirm_password_checkout(Object(WC_Checkout))
#6 /home/tradoto/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(”, Array)
#7 /home/tradoto/public_html/wp-includeHi Support Team,
I have custom post type “agentss” and i have change the permalink of this post type from site_url/agentss/post-name to site_url/agents/agent_id(post_meta_value)/post-name. Below is the code i have used in functions.php
add_action( ‘init’, ‘pubmonth_register_rewrite_tag’);
function pubmonth_register_rewrite_tag() {
add_rewrite_tag( ‘%agent_id%’, ‘([0-9]{5}’);
}add_filter(‘post_type_link’, ‘pub_term_permalink’, 10, 4);
function pub_term_permalink($permalink, $post, $leavename, $sample)
{
if ( false !== strpos( $permalink, ‘agents/%agent_id%’ ) ) {
//get the month of the publication
$agent_id = get_post_meta($post->ID, ‘agent_id’, true);
$rewritecode = array(
‘%agent_id%’,
$leavename? ” : ‘%postname%’,
);
$rewritereplace = array(
$agent_id,
$post->post_name
);
$permalink = str_replace($rewritecode, $rewritereplace, $permalink);
}
return $permalink;
}add_action( ‘init’, ‘pub_add_rewrite_rules’ );
function pub_add_rewrite_rules() {
add_rewrite_rule( ‘^([^/]*)/([0-9]{4})/([^/]+)?’, ‘agentss/index.php?pagename=$matches[2]’, ‘top’ );
}
then i saved the permalink. after this post link is showing correctly in the admin but wghen i open in front end it is throwing page-not-found/?avia_forced_reroute=1Topic: CRITICAL Uncaught ValueError
Hi, I’m getting this errors in my error log:
CRITICAL Uncaught ValueError: fread(): Argument #2 ($length) must be greater than 0 in /home/xxx/public_html/wp-content/themes/enfold/framework/php/function-set-avia-backend.php:1146 Stack trace: #0 /home/xxx/public_html/wp-content/themes/enfold/framework/php/function-set-avia-backend.php(1146): fread() #1 /home/xxx/public_html/wp-content/themes/enfold/functions-enfold.php(2344): avia_backend_create_file() #2 /home/xxx/public_html/wp-includes/class-wp-hook.php(308): avia_generate_stylesheet() #3 /home/xxx/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #4 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #5 /home/xxx/public_html/wp-content/themes/enfold/framework/php/function-set-avia-backend.php(118): do_action() #6 /home/xxx/public_html/wp-includes/class-wp-hook.php(308): avia_update_helper->update_version() #7 /home/xxx/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #8 /home/xxx/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #9 /home/xxx/public_html/wp-settings.php(645): do_action() #10 /home/xxx/public_html/wp-config.php(118): require_once('/home/xxx/...') #11 /home/xxx/public_html/wp-load.php(50): require_once('/home/xxx/...') #12 /home/xxx/public_html/wp-blog-header.php(13): require_once('/home/xxx/...') #13 /home/xxx/public_html/index.php(17): require('/home/xxx/...') #14 {main} thrown dans /home/xxx/public_html/wp-content/themes/enfold/framework/php/function-set-avia-backend.php à la ligne 1146Please advise…
Topic: inherited theme – support?
Hi there,
I inherited a website with this theme. I did not build the site but am now maintaining it.
I am experiencing an error:
Warning: include(/home/customer/www/terrieschauer.com/public_html/wp-content/uploads/avia_fonts/fontello/charmap.php): failed to open stream: No such file or directory in /home/customer/www/terrieschauer.com/public_html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-font-manager.php on line 477How do I get support for this?
Do I buy the enfold theme through theme forest and then I can register and get help?Thank you,
SabraWe attempted to upgrade from Enfold 4.8.7.1 to the newest version that we just purchased and downloaded from ThemeForest. It was used by a previous developer to design the site and the theme was purchased under his license and not updated in some time. After uploading & installing Enfold, when we activated the associated Child theme, we received the, “There has been a critical error on this website,” message. The front end crashed, but the admin area was still functional (weird). We are running PHP 8.1 with Flywheel as our host. Upon inspection of the error logs we found the cause PHP Fatal error: Uncaught Error: Call to undefined method avia_partner_logo::default_args() in /www/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/logoslider/logoslider.php:778. Are you able to shed any light on what we need to do so that we can continue running the Enfold theme in its latest version? Please and thank you.
Topic: Error
WordPress has 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.
Error Details
=============
An error of type E_ERROR was caused in line 1074 of the file /home/cskacanada/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/utils.php. Error message: Allowed memory size of 134217728 bytes exhausted (tried to allocate 46137376 bytes)Hi,
Wenn ich im Backend die Frontseite bearbeiten möchte, wird mir ein kritischer Fehler angezeigt.
https://therapieraum-wuppertal.de/wp-content/uploads/2023/06/Bildschirmfoto-2023-06-26-um-16.28.07.png
In der Debug log-Datei steht folgendes:
[26-Jun-2023 13:57:23 UTC] PHP Deprecated: Creation of dynamic property Avia_Popup_Templates::$resp_sizes_options is deprecated in /kunden/426540_45136/Wuppertal/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 65
[…]Vielen Dank und liebe Grüße
Caro
—————-
Hi,
If I want to edit the front page in the backend, I get a critical error. I’ll give you access so you can look at the problem.
https://therapieraum-wuppertal.de/wp-content/uploads/2023/06/Bildschirmfoto-2023-06-26-um-16.28.07.png
The debug log file says the following:
[26-Jun-2023 13:57:23 UTC] PHP Deprecated: Creation of dynamic property Avia_Popup_Templates::$resp_sizes_options is deprecated in
/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/base-classes/class-popup-templates-responsive.php on line 65
[…]Thank you and best regards
CaroHi dear all,
unfortunately some Enfold components don’t work with PHP 7.4.
So I need to update Enfold.What I already did:
—————————–
1. created envato Token and posted it in Enfold Settings
2. Tried to update (unfortunately it says “you have version 4.5.2 and that is the latest version)
3. I tried the Multipack Plugin, as mentioned in another post about WP Multisite Update, but unfortunately this did not help.QUESTION:
How to update Enfold?
Should I somewhere (where? Envato?) Download the latest version and physically install? What happens then with all settings?
Or is there another smarter solution?Looking forward to hearing from you,
best regards,
TobiasHi
I have an old bug that has not disappeared after the update.
Is there a way?
Under PHP 8.0 the page does not load .WordPress has detected an error in the theme it is using: Enfold. WordPress Version 6.2.2
Current theme: Enfold (version 5.6.2)
Current plugin: (version )
PHP Version: 7.4.30The E_ERROR error was caused on line 17 of the …/wp-content/themes/enfold/searchform.php file.
Error message: Uncaught Error: Call to undefined function av_icon_char() in …/wp-content/themes/enfold/searchform.php:17
Stack trace:
# 0 …/wp-includes/general-template.php(308): require()
# 1 …/wp-content/themes/enfold/includes/error404.php(17): get_search_form()
# 2 …/wp-includes/template.php(785): require(‘/home/users/…’)
# 3 …/wp-includes/template.php(718): load_template(‘/home/users/…’, false, Array)
# 4 …/wp-includes/general-template.php(204): locate_template(Array, true, false, Array)
# 5 …/wp-content/themes/enfold/404.php(30): get_template_part(‘includes/error4…’)
# 6 …/wp-content/plugins/wp-cerber/cerber-load.php(4658): include(‘/home/users/…’)Daniel
Topic: PHP update error
Hi Enfold team,
my site stops running when to php 8.0
Enfold Version: 5.6.2I have updated everything (wordpress, all plugins and enfold) but still the issue is there.
Please help me fix this issue.To make sure the site runs, i switched it back to php 7.4 but the server charges for that version
Using the latest Enfold (v5.6.2) there are two errors in how Avia is parsing shortcodes.
1. enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-parser.php – In check_wp_result_array(), it tries to access $sc[1] outside of the loop that creates the $sc variable.
2. enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-parser.php – In balance_shortcode(), in the first preg_match_all it has this line:
“/” . ShortcodeHelper::get_fake_pattern(false, $shortcodes) . “/s”
which fails when GravityView is installed and being used. It is unable to parse the following shortcodes properly due to the extra slash: [gv\widgets\page_size] [/gv\widgets\page_size]
These two errors cause continue errors to be generated in the error_log
[21-Jun-2023 15:22:26 UTC] PHP Warning: preg_match_all(): Compilation failed: unknown property name after \P or \p at offset 5747 in /chroot/home/USERNAME/DOMAIN/html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/class-shortcode-parser.php on line 562Hi,
I have a new client from whom I took over a website and transferred it to my server. The previous agency had the API key for the Enfold theme and other plugins. The website used to run on PHP 7.4, but my server has PHP 8.1. I purchased a new Enfold theme and updated the other plugins, but now the footer is not displaying, and the subpages in other languages are not functioning properly. Can you take a look?best regards, riba
Hi,
this is mentioned in the documentation:
It is a browser feature but it is possible to hide them by adding following code to Functions.php file of your child theme in Appearance > Editor
function remove_title_attr(){ ?> <script> jQuery(window).on('load', function(){ jQuery('#wrap_all a').removeAttr('title'); jQuery('#wrap_all img').removeAttr('title'); }); </script> <?php } add_action('wp_footer', 'remove_title_attr');so far so good, but:
with this active, the lightbox of Masonry Gallery for example show no image title. When disabling this function, then the title of the images are shown in the lightbox.Is there a workaround so that this feature can be ACTIVE and STILL display the image titles in the lightbox?
Thanks.Hey Team,
we get the following error on our page:
Deprecated: Die Funktion Class avia_style_generator wurde mit einem Argument aufgerufen, das seit Version 5.3 veraltet ist! Trying to set protected/private property: avia_style_generator::print_extra_output – will become unavailable in a future release. Check for a set method or a filter. in /var/www/vhosts/www_remstalwerk_de/wp-includes/functions.php on line 5697
Can you tell us, how we can fix it?
Best
Hi there,
On my website, I have a popup. Because of this, some css and js files are being duplicated. This can be seen in GTMetrix (Avoid enormous network payloads): https://gtmetrix.com/reports/welding-alloys.zerobox.co.za/y3XRcP6O/
I would simply like to add some code in my functions.php file to dequeue these styles or scripts if a duplicate occurs (if in an iframe).
However, I am unable to get the correct handle for the js and css files I wish to dequeue.See example of files that appear twice due to the iframe as explained above:
1. https://welding-alloys.zerobox.co.za/wp-content/uploads/dynamic_avia/avia-merged-styles-7fe77e298b503a9a07f5ff4ad5c43d89—649173dc020ff.css
2. https://welding-alloys.zerobox.co.za/wp-content/uploads/dynamic_avia/avia-footer-scripts-ad02dcb999be2087336cb42c0931e3ed—649173e2c4054.jsI have tried to print_r the results of global $wp_styles; and global $wp_scripts; , but I don’t seem to find any of the above in the array, I would like to know the handle of the above files, so I can dequeue them. Here is what I tried (using the ids) but it did not work:
if (window!=window.top) {
/* I’m in an iframe! – Dequeue styles and scripts*/
wp_dequeue_style( ‘avia-merged-styles’ );
wp_dequeue_script(‘avia-head-scripts’);
wp_dequeue_script(‘avia-footer-scripts’);
}
*It seems like the handles I have used on wp_dequeue_style and wp_dequeue_script are incorrect? Please advise on how I can find the handles/ dequeue specific css and js as mentioned above.Thanks.









