• Hello,

    I have been using your plugin for a few months without issue. It works as expected, thank you!

    While cleaning up Apache error logs, I noticed the following PHP warning occurring frequently (several times an hour):

    AH01071: Got error ‘PHP message: PHP Warning: Invalid argument supplied for foreach() in /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/above-the-fold-optimization/includes/localizejs.class.php on line 203\n’

    I took a look at the code and assume that ‘$this->CTRL->localizejs->modules’ does not exist at times. I am not sure where this function is called from. Can you please advise or suggest how to resolve this?

    /* Parse HTML*/
    public function parse_html( $html ) {
    foreach ($this->CTRL->localizejs->modules as $module) {
    $html = $module->parse_html( $html );
    }
    return $html;
    }

    Regards,
    Brad

    https://www.ads-software.com/plugins/above-the-fold-optimization/

Viewing 1 replies (of 1 total)
  • Plugin Author optimalisatie

    (@optimalisatie)

    Dear Brad,

    My apologies for the late reply.

    Thank you for the bug report! The localizeJS feature is a beta-feature. I’ve investigated the issue and found a bug. The bug has been fixed in the next version (v2.3.4).

Viewing 1 replies (of 1 total)
  • The topic ‘Invalid argument – localizejs.class.php’ is closed to new replies.