Hi Enfold Support,
I am seeing a PHP warning on a site using Enfold related to the bundled LayerSlider integration.
Issue
The site log shows a malformed path being passed to file_get_contents(). It looks like a full theme path is being incorrectly prefixed with the plugins directory path.
Log entry
[12-Mar-2026 10:24:06 UTC] PHP Warning: file_get_contents(/var/www/***/public_html/wp-content/plugins/var/www/***/public_html/wp-content/themes/enfold/config-layerslider/LayerSlider/layerslider.php): Failed to open stream: No such file or directory in /var/www/***/public_html/wp-includes/functions.php on line 6910
The actual LayerSlider file does exist at:
/wp-content/themes/enfold/config-layerslider/LayerSlider/layerslider.php
However, the warning shows WordPress trying to load this instead:
/wp-content/plugins/var/www/…/wp-content/themes/enfold/config-layerslider/LayerSlider/layerslider.php
So it appears that:
an absolute theme path is being generated correctly at some point, but then
/wp-content/plugins/ is being prepended to it incorrectly
Enfold should reference the bundled LayerSlider file using the correct theme path.
A malformed path is built, causing file_get_contents() to fail and generate a PHP warning.
Could you please advise:
whether this is a known Enfold / bundled LayerSlider issue
whether there is a patch or theme update available
which file/function in Enfold is responsible for building this path
If helpful, I can also provide the full environment details and additional logs.
Thanks.
