Invalid argument – localizejs.class.php
-
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,
Bradhttps://www.ads-software.com/plugins/above-the-fold-optimization/
- The topic ‘Invalid argument – localizejs.class.php’ is closed to new replies.