
-
AuthorPosts
-
November 22, 2016 at 11:32 pm #715660
Hi there.
We seem to be having AJAX errors with Enfold that’s showing up using Events Calendar (Pro) –errors that aren’t arising when we switch to another theme: https://cl.ly/012b0U3n0L3KWhat’s happening on the front end with this conflict is that when users select an events filter and then navigate to a previous/next page, the page reloads and resets/erases the filter selections–instead of loading the new data in AJAX and maintaining the filter selection.
I realize you do not support the plugin itself (which you list under Woocommerce on our Recommended Plugins post). But as these errors are only showing up when using Enfold, I’m wondering if you’d know where this AJAX theme issue may be occurring so we can troubleshoot it.
Thanks.
November 25, 2016 at 6:04 am #716652Hey EastBayMeditation,
Thank you for using Enfold.
I’m not sure what could be causing the issue. Have you asked the tribe support team? I’m sure they’ll know what those logs mean.
Best regards,
IsmaelNovember 29, 2016 at 10:56 pm #718556Hi, Ismael–
Because the errors are occurring only when Enfold is active, these errors seem to be from some kind of AJAX conflict with the theme. So I’m trying to get to the bottom of finding theme-related errors first.
One thing I’m finding are these Enfold PHP errors, which may/may not be related:
https://cl.ly/143z2P1o1O17It would be helpful for us to resolve these first.
Thanks,
Devra (for Xiaojing and the EBMC)December 3, 2016 at 1:26 am #719976Hi, hello? Is this theme actively supported? Any idea how to troubleshoot the above Enfold PHP errors?
Thanks.
December 5, 2016 at 6:23 am #720314Hi,
I’m sorry for the delay. If this is an ajax conflict in the theme, you should find a few javascript errors in the logs. The first screenshot displays debugging info from the the plugin so we don’t have any idea what to look for. Did you ask the plugin support to look at those?
Best regards,
IsmaelDecember 5, 2016 at 9:31 pm #720703Hi, Ismael. Please read the full thread. First I am trying to troubleshoot theme-specific errors, PHP errors we are finding on theme load: https://cl.ly/143z2P1o1O17 . If the header file is not being correctly read, that may account for ajax issues.
December 8, 2016 at 2:29 pm #721983Hi,
please ask plugin’s author and come back to us with their answer about this.
Best regards,
AndyDecember 9, 2016 at 2:07 am #722286Andy, our staff and also the plugin developers determined that:
1) this problem is only happening when Enfold is active. It is not happening when we test using another theme. Therefore, they have said we should contact YOU, the theme developers.
2) We are having a THEME ISSUE here that goes beyond this plugin. We are getting theme-related PHP errors in header.php and function-set-avia-backend.php! (https://cl.ly/143z2P1o1O17 ) I don’t understand why no one is responding to this. I will submit a separate ticket right now.
December 13, 2016 at 6:07 am #723533Hi,
Alright. Let’s look at those errors.
1.) It says that the error occurs around line 433 of the framework > php > function-set-avia-backend.php. This is the actual line:
$rgba[2] * $rgba[2] * 0.068);
I’m not sure how it will affect any ajax functionality because that function is use to determine if a color is dark or light. The function is also use inside avia_events_dynamic_css function which generates dynamic styles for the plugin’s template. You can disable that function temporarily. Add this code in the functions.php file.
add_action( 'init', 'init_avia_mod' ); function init_avia_mod() { remove_filter('avia_dynamic_css_output', 'avia_events_dynamic_css', 10, 2); }
2.) The second error is from the header.php file which is added in the child theme. Are you sure that you’re using the latest version of the header.php file? What are the modifications that you have in that file?
Best regards,
IsmaelJanuary 3, 2017 at 12:02 am #728794Hi, Ismael–thanks so much for your response.
I’ve actually only just gotten sftp access (I’m an outside party to the initial development team) and so was just today able to update the theme. It looks like they were running a pretty old version, 3.7x, which pre-dated a major Enfold release. I’ve just updated it to 3.8.So, for issue #1 above: I’ve gone ahead and added your snippet to functions.php.
#2: I’ve also analyzed the child theme’s header.php file comparing code with the main one, and right now, the only differences between enfold’s header.php and the child theme’s header.php files are the following additions to the <head> tag in the custom one:
a) This custom title tag, line 21:
<title><?php if(function_exists('avia_set_title_tag')) { echo avia_set_title_tag(); } ?></title>
b) This custom favicon tag, line 34:
if (function_exists('avia_favicon')) { echo avia_favicon(avia_get_option('favicon')); }
c) The addition of font css links, line 57:
<link href='https://fonts.googleapis.com/css?family=Josefin+Sans:400,700,600' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="path/to/font-awesome/css/font-awesome.min.css">
The rest of the file is identical.
I’m still seeing PHP errors for:
avia_backend_calc_preceived_brightness()
wp-content/themes/enfold/css/dynamic-css.php:79
avia_prepare_dynamic_styles()
wp-content/themes/enfold/functions.php:473
avia_custom_styles()
Unknown location
do_action(‘init’)
wp-settings.php:449I’m also seeing that avia_modal_js and avia_element_js are missing, with broken dependencies in avia_table_js (/enfold/config-templatebuilder/avia-template-builder/assets/js/avia-table.js), avia_tab_taggle_js (/enfold/config-templatebuilder/avia-template-builder/assets/js/avia-tab-toggle.js) and avia_media_js (/enfold/config-templatebuilder/avia-template-builder/assets/js/avia-media.js), in case these .js errors are culprits?
Thanks and much appreciated.
January 4, 2017 at 6:10 am #729282Hi,
The first error is not critical because it’s just looking for a key or value inside an array that is undefined. For the second error, please disable the header.php file in the child theme temporarily then check if the error still exist.
I still don’t know how we can help you with these notifications though. Please ask the plugin developer again. Maybe, they can give us any hint or info on what to look for.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.