Hi guys
I’m getting the following error which is causing my site to through an error every few hours
[warn] mod_fcgid: stderr: PHP Warning: reset() expects parameter 1 to be array, null given in /home/linweb22/d/drivedevelopment.co.uk/user/htdocs/wp-content/themes/enfold/config-templatebuilder/avia-shortcodes/slideshow_layerslider.php on line 40
Thanks
Iain
Hi,
Please upgrade to Enfold 1.7.
Do you have W3 Total Cache plugin? Flush the cache settings.
Regards,
Ismael
Hi
I’m already using Enfold 1.7 and I don’t have W3 Total Cache Plugin installed so the website won’t be caching
The error that gets posted happens every few hours?
Thanks
Iain
Please open up wp-contentthemesenfoldconfig-templatebuilderavia-shortcodesslideshow_layerslider.php and replace
if(empty($params['args']['id'])) $params['args']['id'] = reset($slides);
with
if(empty($params['args']['id']))
{
$params['args']['id'] = (!empty($slides) && is_array($slides)) ? reset($slides) : '';
}
I tagged this thread for Kriesi’s attention.
Thanks Dude and Kriesi
Glad we could help :)
Let us know if you have any other questions or issues.