Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #739642

    Issue was not resolved by updating to latest version 3.8.4 of the Enfold theme. Site is running on WP 4.7.2. Site is timing out with 502 and 504 Gateway Timeout errors and logs show this repeatedly:

    PHP Warning: urldecode() expects parameter 1 to be string, array given in /www/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/mailchimp.php on line 466

    What needs to be changed in the theme’s code to fix this issue?

    • This topic was modified 7 years, 9 months ago by Ria. Reason: added theme version number
    #741042

    Hey Riavon,

    Sorry for the late reply. That is only a warning and should not result in a 50x error on your server, I think you would need to contact your hosting provider to see if they know what is going on there.

    Best regards,
    Rikard

    #741338

    Hi Rikard,

    Thank you. I had already been in touch with the hosting provider, and they (for some reason) are trying to blame this timeout on that php error. Thank you for confirming what I already knew. I thought I was taking crazy pills when they told me that, even though I knew different.

    #741483

    Hello again. We were able to dig deeper with the hosting company (Flywheel) and involved their engineers, who responded and managed to do some magic to get the site back on the air (stop 502/504 errors).

    According to Flywheel hosting, the script that was erroring out on my client’s site, causing repeated 502 and 504 Gateway Timeout errors, was as follows:

    [pool site-60980] script_filename = /www//index.php file_get_contents() /www/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php:636 avia_is_200() /www/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php:568 avia_html5_video_embed() /www/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/av-helper-slideshow.php:662 set_video_slide() /www/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/av-helper-slideshow.php:305 advanced_slide() /www/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/av-helper-slideshow.php:150 html() /www/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/section.php:811 avia_new_section() /www/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/section.php:653 shortcode_handler() /www/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/shortcode-template.class.php:250 shortcode_handler_prepare() unknown:0 call_user_func() /www/wp-includes/shortcodes.php:345 do_shortcode_tag() unknown:0 preg_replace_callback() /www/wp-includes/shortcodes.php:223 do_shortcode() unknown:0 call_user_func_array() /www/wp-includes/class-wp-hook.php:298 apply_filters() /www/wp-includes/plugin.php:203 apply_filters() /www/wp-content/themes/enfold/template-builder.php:43 +++ dump failed

    Flywheel said: “We forced caching across the entire site with our server caching and that seems to have kept the site up and running currently but you may want to have your Theme developer look in to that script.”

    So that’s what we learned today. I wanted to give you the heads-up about this feedback from the hosting company regarding the Enfold theme.

    #741504

    We are having the same issue….. now and then 502/504 errors.

    #743582

    Hi,

    have you got any issues on the frontend? if not then you can switch off your php error log by putting this inside functions.php:

    define( 'WP_DEBUG', false );

    Also try to activate a default WP theme to check if you get similar results or not and let us know about them here.

    Best regards,
    Andy

    #777307

    Hello,

    I’m having the same issue. I have an open Topic about the same exact issue, which I opened before I found this. It’s here: https://kriesi.at/support/topic/504-error-with-enfold-4-0-3/

    So my site will be fine for awhile and then the 504 errors start coming. Sometime the error will happen, then I’ll just refresh my site and it loads fine.

    Is there a fix?

    Thanks!
    Corey

    #777652

    Hi Corey,

    I’ve replied to your thread, please don’t post in several threads for the same issue.

    Best regards,
    Rikard

    #845319

    hi i am having the same issues and i am also using flywheel hosting

    i found this post from a google search, the response from flywheel was

    The 504 Gateway Timeout error is an HTTP status code that means that one server did not receive a timely response from another server that it was accessing while attempting to load the web page or fill another request by the browser.

    In other words, 504 errors usually indicate that a different computer, one that the website you’re getting the 504 message on doesn’t control but relies on, isn’t communicating with it quickly enough. Often these errors can be intermittent, depending on the performance of the other server.

    I hope that’s helpful, and let us know if you have further questions. :)

    #846117

    Hi,

    This is isn’t really a theme problem, so your hosting provider is likely in a better position to help you out with it. Did you read this thread?

    Best regards,
    Rikard

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