Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1290525

    Hello,

    I’ve received confirmation from our hosting support that our Enfold theme is causing 30-45second delays loading pages for visitors and admin editing on the back end. I’ve optimized the site as much as I can, i’ve done all the steps concerning updating everything, deactivating plug-ins, wordpress memory expansion, etc. Visitors have to wait upwards to a minute for a single page to load and it’s been the same on the backend making site changes.

    Please help.

    Here’s the stack trace support copied showing the theme being the loading issue…

    Hi D******,
    >
    > Thanks for your patience. The brute force log ended up being a red
    > herring. I was, however, able to grab a direct stack trace of one of the
    > delayed requests, and was able to identify the theme as the source. The
    > theme generated over 4500 SQL queries during the request, most of them
    > duplicates. These are the top queries with hit counts:
    >
    > 4504 SELECT option_name, option_value FROM wp_options WHERE autoload =
    > ‘yes’ /* From [
    > purleveconnectedsolutions.com/puraccess-sensor-control-center-home-page/]
    > in [/chroot/home/purleveh/
    > purleveconnectedsolutions.com/html/wp-content/themes/enfold/framework/php/function-set-avia-backend.php:841]
    > */;
    > 102 SELECT option_name, option_value FROM wp_options WHERE autoload =
    > ‘yes’ /* From [
    > purleveconnectedsolutions.com/puraccess-sensor-control-center-home-page/]
    > in [/chroot/home/purleveh/
    > purleveconnectedsolutions.com/html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/element-manager.class.php:1057]
    > */;
    > 86 SELECT option_name, option_value FROM wp_options WHERE autoload =
    > ‘yes’ /* From [
    > purleveconnectedsolutions.com/puraccess-sensor-control-center-home-page/]
    > in [/chroot/home/purleveh/
    > purleveconnectedsolutions.com/html/wp-settings.php:525] */;
    > 39 SELECT option_name, option_value FROM wp_options WHERE autoload =
    > ‘yes’ /* From [
    > purleveconnectedsolutions.com/puraccess-sensor-control-center-home-page/]
    > in [/chroot/home/purleveh/
    > purleveconnectedsolutions.com/html/wp-content/themes/enfold/includes/helper-main-menu.php:182]
    > */;
    > 34 SELECT option_name, option_value FROM wp_options WHERE autoload =
    > ‘yes’ /* From [
    > purleveconnectedsolutions.com/puraccess-sensor-control-center-home-page/]
    > in [/chroot/home/purleveh/
    > purleveconnectedsolutions.com/html/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php:1718]
    > */;
    > 28 SELECT option_name, option_value FROM wp_options WHERE autoload =
    > ‘yes’ /* From [
    > purleveconnectedsolutions.com/puraccess-sensor-control-center-home-page/]
    > in [/chroot/home/purleveh/
    > purleveconnectedsolutions.com/html/wp-content/themes/enfold/header.php:77]
    > */;
    > 18 SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE
    > post_id IN (3118) ORDER BY meta_id ASC /* From [
    > purleveconnectedsolutions.com/puraccess-sensor-control-center-home-page/]
    > in [/chroot/home/purleveh/
    > purleveconnectedsolutions.com/html/wp-content/themes/enfold/includes/helper-main-menu.php:182]
    > */;
    > 18 SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE
    > post_id IN (3009) ORDER BY meta_id ASC /* From [
    > purleveconnectedsolutions.com/puraccess-sensor-control-center-home-page/]
    > in [/chroot/home/purleveh/
    > purleveconnectedsolutions.com/html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/widgetarea.php:86]
    > */;
    > 18 SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE
    > post_id IN (2929) ORDER BY meta_id ASC /* From [
    > purleveconnectedsolutions.com/puraccess-sensor-control-center-home-page/]
    > in [/chroot/home/purleveh/
    > purleveconnectedsolutions.com/html/wp-content/themes/enfold/includes/helper-main-menu.php:182]
    > */;
    > 18 SELECT post_id, meta_key, meta_value FROM wp_postmeta WHERE
    > post_id IN (2928) ORDER BY meta_id ASC /* From [
    > purleveconnectedsolutions.com/puraccess-sensor-control-center-home-page/]
    > in [/chroot/home/purleveh/
    > purleveconnectedsolutions.com/html/wp-content/themes/enfold/includes/helper-main-menu.php:182]
    > */;
    >
    > This was by far the most frequent, and thankfully it references the
    > specific file that called it:
    >
    > SELECT option_name, option_value FROM wp_options WHERE autoload = ‘yes’ /*
    > From [
    > purleveconnectedsolutions.com/puraccess-sensor-control-center-home-page/]
    > in [/chroot/home/purleveh/
    > purleveconnectedsolutions.com/html/wp-content/themes/enfold/framework/php/function-set-avia-backend.php:841]
    > */;
    >
    > This is the function in the theme causing the issue:
    >
    > /chroot/home/purleveh/
    > purleveconnectedsolutions.com/html/wp-content/themes/enfold/framework/php/function-set-avia-backend.php:841
    >
    > 825 if(!function_exists(‘avia_deep_decode’))
    > 826 {
    > 827 /**
    > 828 * This function performs deep decoding on an array of
    > elements
    > 829 */
    > 830 function avia_deep_decode($elements)
    > 831 {
    > 832 if(is_array($elements) || is_object($elements))
    > 833 {
    > 834 foreach($elements as $key=>$element)
    > 835 {
    > 836 $elements[$key] =
    > avia_deep_decode($element);
    > 837 }
    > 838 }
    > 839 else
    > 840 {
    > 841 $elements = html_entity_decode($elements,
    > ENT_QUOTES, get_bloginfo(‘charset’));
    > 842 }
    > 843
    > 844 return $elements;
    > 845 }
    > 846 }
    >
    > I don’t know what is causing this to only happen intermittently, but at
    > least we have a definitive cause. Please refer this to the theme’s
    > developer, or your own. If possible, disabling the “avia” functionality of
    > the theme (whatever this is) may resolve the issue.
    >
    > Please let us know if we can be of further assistance.
    >
    > Thanks,

    #1291229

    Hey dhadleyxelainnovations,

    Please send us a temporary WordPress admin login and login URL so that we can have a closer look. You can post the details in the Private Content section of your reply.

    Best regards,
    Rikard

    #1298406

    Hi Rikard,

    I’m very sorry to have missed your reply I had no idea you contacted me. We are still having major issues with the site and my hosting support is all out of answers after trying yet again trying to figure out how to get around the query issues with Enfold. Below is their latest diagnostic urging me to contact Enfold Theme support. I have also provided a temporary user account for our site in the private content section.

    Thank you so much for taking the time to help figure this out, it has been very frustrating.
    __________________________________
    :Hosting Support Response:
    __________________________________

    Thank you for your patience. I am able to see this immense slowness on my end as well, and thought it was traffic related at first however, there did not appear to be suspecious traffic and attempting to clear the traffic did not help.

    I was able to get a stack trace during this delay and after reviewing it, the issue appears to be the same as what occurred in ticket IORT-9370 back in November of 2019. Reviewing the capstrace, it appears that the enfold theme is causing a decent amount of SQL queries to be consistently generated. This stack trace was not of a request to completion but 1.5 minutes. Listed below are the top queries with hit counts within this period.

    211 SELECT option_name, option_value FROM wp_options WHERE autoload = ‘yes’ /* From [www.purleveconnectedsolutions.com/] in [/chroot/home/purleveh/purleveconnectedsolutions.com/html/wp-content/themes/enfold/framework/php/function-set-avia-backend.php:821] */;
    170 SELECT option_name, option_value FROM wp_options WHERE autoload = ‘yes’ /* From [www.purleveconnectedsolutions.com/] in [/chroot/home/purleveh/purleveconnectedsolutions.com/html/wp-content/plugins/shortpixel-image-optimiser/class/wp-shortpixel-settings.php:240] */;
    170 SELECT option_name, option_value FROM wp_options WHERE autoload = ‘yes’ /* From [www.purleveconnectedsolutions.com/] in [/chroot/home/purleveh/purleveconnectedsolutions.com/html/wp-content/plugins/shortpixel-image-optimiser/class/wp-shortpixel-settings.php:237] */;
    75 SELECT option_name, option_value FROM wp_options WHERE autoload = ‘yes’ /* From [www.purleveconnectedsolutions.com/] in [/chroot/home/purleveh/purleveconnectedsolutions.com/html/wp-settings.php:560] */;
    5 SELECT option_name, option_value FROM wp_options WHERE autoload = ‘yes’ /* From [www.purleveconnectedsolutions.com/] in [/chroot/home/purleveh/purleveconnectedsolutions.com/html/wp-content/plugins/shortpixel-image-optimiser/wp-shortpixel.php:64] */;

    As before, the top query is coming from /chroot/home/purleveh/purleveconnectedsolutions.com/html/wp-content/themes/enfold/framework/php/function-set-avia-backend.php:821 and although this is a different line than before, it appears to be the same function.

    795 if( ! function_exists( ‘avia_deep_decode’ ) )
    796 {
    797 /**
    798 * This function performs deep decoding on an array of elements
    799 *
    800 * @param array|object|string $elements
    801 * @return array|object|string
    802 */
    803 function avia_deep_decode( $elements )
    804 {
    805 if( is_array( $elements ) || is_object( $elements ) )
    806 {
    807 foreach( $elements as $key => $element )
    808 {
    809 if( is_array( $elements ) )
    810 {
    811 $elements[ $key ] = avia_deep_decode( $element );
    812 }
    813 else
    814 {
    815 $elements->$key = avia_deep_decode( $element );
    816 }
    817 }
    818 }
    819 else
    820 {
    821 $elements = html_entity_decode( $elements, ENT_QUOTES, get_bloginfo( ‘charset’ ) );
    822 }
    823
    824 return $elements;
    825 }
    826 }

    We setup W3 Total Cache to do full page caching as well as database caching. While this does appear to be helping some parts of the site, the large amount of database queries being caused by the theme is causing the immensely slow loading of the site.

    I contacted another technician to take a look over the server and your site, and they are not finding any issue server-side, and are also seeing the theme’s queries being the issue. We highly recommend that you contact the theme’s developers to look into what is causing the large amount of duplicate queries to be generated, reducing the speed of the site.

    #1299045

    ^^^Bump (sorry just want to keep it fresh on the support list I know you guys are very busy)

    #1299055

    Hi,

    Thanks for that. I can see that the backend of your site is loading very slowly on my end as well, but this is not a general problem with the theme, so we’ll have to do general debugging.

    First off, could you try updating the theme and WordPress to the latest versions, to see if that changes anything please? If not, then please try to disable all plugins, and file compression under Enfold->Performance.

    Best regards,
    Rikard

    #1299491

    Hi Rikard,

    Thank you again for your continued support.

    The site is on complete idle right now and I have the Server Support contact trying to get it accessible so I can make those updates to the new WP & Enfold versions.

    Will reply again as soon as i’m able to get those updates from timing out.

    Thank you!

    #1299823

    Hi,

    Thanks for the update, we’ll keep this thread open for you.

    Best regards,
    Rikard

    #1307467

    My site has been loading much more slowly since I updated the theme about a month ago. I haven’t changed anything except for the theme update to v 4.8.2. Would love to know how to fix it.

    #1307563

    Hi jh100,

    Please open a new thread and include WordPress admin login details in private so that we can have a closer look at your site.

    Best regards,
    Rikard

    #1307606

    I can’t find where to start a new thread. Where is it? Nevermind, found the link in your above reply, but seriously it is so hard to find.

    • This reply was modified 2 years, 11 months ago by jh100.
    #1307834

    Hi jh100,

    Please look for this button: https://imgur.com/a/AnoSPNb

    Best regards,
    Rikard

    #1307997

    Back to this thread, as you mentioned in the new thread to use this thread. . . .
    My site is loading much more slowly since I updated the theme about a month ago. There are a couple of videos that take forever to load as well, even though I have reduced the size significantly. I haven’t changed anything except for the theme update to v 4.8.2. I have tried making some of the images smaller, with not much improvement. Would love to know how to fix it. Thank you!

    #1308280

    Hi jh100,

    I’m referring to this thread: https://kriesi.at/support/topic/slow-loading-pages/. It gets a bit confusing when you post in 3 different threads. Could you stick to that thread from now on please?

    Best regards,
    Rikard

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.