Hi,
We’ve encountered a PHP Fatal Error in the Enfold theme, causing our WordPress installation to crash intermittently. The issue originates from an unsupported operation (string + int) in the postslider.php file:
File Path:
/themes/enfold/config-templatebuilder/avia-shortcodes/postslider/postslider.php
Line 1447:
$params[‘offset’] = $params[‘offset’] + ( ( $this->current_page – 1 ) * $params[‘items’] );
Suggested fix:
Explicitly cast parameters to integers to avoid type errors:
$params[‘offset’] = (int)$params[‘offset’] + ((int)($this->current_page – 1) * (int)$params[‘items’]);
Please consider including this adjustment in your next update to ensure greater stability across varying page configurations.
Thanks
Hey SCHMUTZ Falco,
Which version of the theme are you running and how can we reproduce the problem that you are getting on your end?
Best regards,
Rikard