Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1480931
    SCHMUTZ Falco
    Guest

    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

    #1480935

    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

    #1480947
    This reply has been marked as private.
    #1480964

    Hi,

    Please clone the site to a staging environment, then provide the site details in the private field so we can check the error.

    Best regards,
    Ismael

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