Tagged: ,

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1215345

    Like others I’m seeing in the forums, I’m getting hundreds of the following errors in the WP logs of three different Enfold sites that I manage:

      PHP Warning: Invalid argument supplied for foreach() in /home/XX/public_html/XX/wp-content/themes/enfold/includes/helper-assets.php on line 339
      PHP Warning: Invalid argument supplied for foreach() in /home/XX/public_html/XX/wp-content/themes/enfold/includes/helper-assets.php on line 342

    Two of the three sites are also throwing the following errors at random times:

      PHP Warning: fopen(/home/YY/public_html/YY/wp-content/plugins/home/YY/public_html/YY/wp-content/themes/enfold/config-layerslider/LayerSlider/layerslider.php): failed to open stream: No such file or directory in /home/YY/public_html/YY/wp-includes/functions.php on line 5974

      PHP Warning: fread() expects parameter 1 to be resource, bool given in /home/YY/public_html/YY/wp-includes/functions.php on line 5977

      PHP Warning: fclose() expects parameter 1 to be resource, bool given in /home/YY/public_html/YY/wp-includes/functions.php on line 5980

      PHP Warning: Creating default object from empty value in /home/YY/public_html/YY/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_layerslider/slideshow_layerslider.php on line 28

    #1215420

    I am also getting

    PHP Warning: Creating default object from empty value in /home/xxxx/public_html/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_layerslider/slideshow_layerslider.php

    This is causing the site to become very slow and 2 people on the site is causing it to crash.

    • This reply was modified 4 years, 6 months ago by Oaktreestoves.
    #1215713

    Hi,

    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

    #1215977
    This reply has been marked as private.
    #1216338

    Hi,

    Thanks for that. We released a new version of the theme today, could you try updating one or all of your sites to see if that makes any difference please?

    Best regards,
    Rikard

    #1216348

    Will do.

    I was wondering if those various errors listed in the original post could lead to resource drain / site timeout situations.

    #1216794

    Hi,

    I’m not sure to be honest with you, but it’s something which shouldn’t happen either way. Please try to update the theme to see what happens after that.

    Best regards,
    Rikard

    #1217563

    Hi, Rikard,

    I ran the updates and so far it looks pretty good, but I’m seriously knocking on wood. I’ve only seen one incident of that error recently, but since the sites have very little traffic, I’m not sure if it is fixed or if the error event just wasn’t triggered. What, exactly, is the process going on when the error below happens? What does helper-assets.php do at line 342?

    PHP Warning: Invalid argument supplied for foreach() in /home/XX/public_html/YY/wp-content/themes/enfold/includes/helper-assets.php on line 342

    #1219357

    Hi,

    What does helper-assets.php do at line 342?

    The line is a loop, which iterates through the global variable $posts and the error occurs because the said variable is not found or undefined. Did you add a video in the page? Please check the following thread for a possible fix.

    Related thread:

    // https://kriesi.at/support/topic/php-warning-message/#post-1192124
    // https://kriesi.at/support/topic/invalid-argument-supplied-for-foreach-in-helper-assets-php-on-line-327/#post-1042129

    Best regards,
    Ismael

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