Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1158431

    Hello guys,
    I have a problem with our production site I get a 504 The application did not respond in time.
    Everything is fine if I disable the theme and swich to a basic twentyx theme.

    PHP Error logs are showing:
    20-Nov-2019 08:44:25 UTC] PHP Notice: Undefined variable: main_color in /srv/bindings/834466d839eb482d8e81762f91e88437/code/wp-content/themes/enfold/css/dynamic-css.php on line 35
    [20-Nov-2019 08:44:25 UTC] PHP Notice: Undefined variable: primary in /srv/bindings/834466d839eb482d8e81762f91e88437/code/wp-content/themes/enfold/css/dynamic-css.php on line 48
    [20-Nov-2019 08:44:25 UTC] PHP Notice: Undefined variable: primary in /srv/bindings/834466d839eb482d8e81762f91e88437/code/wp-content/themes/enfold/css/dynamic-css.php on line 53
    [20-Nov-2019 08:44:25 UTC] PHP Notice: Trying to get property of non-object in /srv/bindings/834466d839eb482d8e81762f91e88437/code/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php on line 66

    PHP fpm error log shows:
    [20-Nov-2019 08:48:12] ERROR: failed to ptrace(PEEKDATA) pid 11934: Input/output error (5)
    [20-Nov-2019 08:48:12] NOTICE: finished trace of 11934
    [20-Nov-2019 08:48:16] WARNING: [pool www] child 12110, script ‘/srv/bindings/834466d839eb482d8e81762f91e88437/code//index.php’ (request: “GET /index.php”) executing too slow (5.813648 sec), logging
    [20-Nov-2019 08:48:16] NOTICE: child 12110 stopped for tracing
    [20-Nov-2019 08:48:16] NOTICE: about to trace 12110
    [20-Nov-2019 08:48:16] ERROR: failed to ptrace(PEEKDATA) pid 12110: Input/output error (5)
    [20-Nov-2019 08:48:16] NOTICE: finished trace of 12110

    The hosting provider is Pantheon
    On the dev environment I have updated to the latest version of Enfold. It didn’t fix the problem.

    Anyone can give me some pointers in fixing this I would be really grateful!

    Please investigate,
    Thanks!

    • This topic was modified 5 years, 7 months ago by bogdan.pop.
    #1158434

    but you are running an actual php version on your hoster ( php 7.x ff.) ?
    Because newer Enfold i think – needs newer php Versions – not php 5.x

    #1158437

    for the dev env I have changed it to php 5.x the live environment runs on 7.1 – same issue on both

    #1158707

    Hi,

    I can’t see any 504 error messages on either the front- or back-end of your staging site. Does that happen when you update to 4.6.3.1?

    Best regards,
    Rikard

    #1158756

    Hey Rikard I have fixed it for the moment, this was the problematic stack:

    [20-Nov-2019 16:08:24] [pool www] pid 4591
    script_filename = /srv/bindings/4f390bd93233431a892bf00cf0f1c04a/code//index.php
    [0x00007ff90ae1e440] file_get_contents() /srv/bindings/4f390bd93233431a892bf00cf0f1c04a/code/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php:690
    [0x00007ff90ae1e3a0] avia_is_200() /srv/bindings/4f390bd93233431a892bf00cf0f1c04a/code/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php:634
    [0x00007ff90ae1e250] avia_html5_video_embed() /srv/bindings/4f390bd93233431a892bf00cf0f1c04a/code/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/av-helper-slideshow.php:877
    [0x00007ff90ae1e0a0] set_video_slide() /srv/bindings/4f390bd93233431a892bf00cf0f1c04a/code/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/av-helper-slideshow.php:426
    [0x00007ff90ae1db20] advanced_slide() /srv/bindings/4f390bd93233431a892bf00cf0f1c04a/code/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/av-helper-slideshow.php:266
    [0x00007ff90ae1da10] html() /srv/bindings/4f390bd93233431a892bf00cf0f1c04a/code/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_fullsize/slideshow_fullsize.php:993
    [0x00007ff90ae1d890] shortcode_handler() /srv/bindings/4f390bd93233431a892bf00cf0f1c04a/code/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/shortcode-template.class.php:688
    [0x00007ff90ae1d6a0] shortcode_handler_prepare() /srv/bindings/4f390bd93233431a892bf00cf0f1c04a/code/wp-includes/shortcodes.php:319
    [0x00007ff90ae1d5a0] do_shortcode_tag() /srv/bindings/4f390bd93233431a892bf00cf0f1c04a/code/wp-includes/shortcodes.php:197
    [0x00007ff90ae1d520] preg_replace_callback() /srv/bindings/4f390bd93233431a892bf00cf0f1c04a/code/wp-includes/shortcodes.php:197
    [0x00007ff90ae1d430] do_shortcode() /srv/bindings/4f390bd93233431a892bf00cf0f1c04a/code/wp-includes/class-wp-hook.php:286
    [0x00007ff90ae1d350] apply_filters() /srv/bindings/4f390bd93233431a892bf00cf0f1c04a/code/wp-includes/plugin.php:203
    [0x00007ff90ae1d290] apply_filters() /srv/bindings/4f390bd93233431a892bf00cf0f1c04a/code/wp-content/themes/enfold/template-builder.php:100
    [0x00007ff90ae1d1a0] [INCLUDE_OR_EVAL]() /srv/bindings/4f390bd93233431a892bf00cf0f1c04a/code/wp-includes/template-loader.php:74
    [0x00007ff90ae1d110] [INCLUDE_OR_EVAL]() /srv/bindings/4f390bd93233431a892bf00cf0f1c04a/code/wp-blog-header.php:19
    [0x00007ff90ae1d080] [INCLUDE_OR_EVAL]() /srv/bindings/4f390bd93233431a892bf00cf0f1c04a/code/index.php:17

    A video on the home page was causing this.
    I have removed the slider and instead used a code block in which I added the video back.
    Next step is to upload the video to youtube in order to take a step back on relying on the themes functionalities and reduce the server load.

    #1158992

    Hi,

    Thanks for the update, are you ok with using your alternate solution?

    Best regards,
    Rikard

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