-
AuthorPosts
-
May 23, 2020 at 4:28 am #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 342Two 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
May 23, 2020 at 11:50 am #1215420I 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.
May 24, 2020 at 1:00 pm #1215713Hi,
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,
RikardMay 25, 2020 at 6:42 am #1215977This reply has been marked as private.May 26, 2020 at 2:59 am #1216338Hi,
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,
RikardMay 26, 2020 at 3:42 am #1216348Will do.
I was wondering if those various errors listed in the original post could lead to resource drain / site timeout situations.
May 27, 2020 at 5:37 am #1216794Hi,
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,
RikardMay 29, 2020 at 3:42 am #1217563Hi, 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
June 4, 2020 at 12:42 pm #1219357Hi,
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-1042129Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.