PHP Notice with WP_HTTP_BLOCK_EXTERNAL enable
-
Hello all, thanks for this incredible plugin!
Reviewing server logs, we found several php notices about “Trying to access array offset on value of type null” on autoptimizeImages class.In our production server we block all external connections and make some exceptions and the service used to fetch status (https://misc.optimizingmatters.com/api/autoptimize_service_availablity.json?from=aomain&ver=) ins’t in this whitelist (and cant be because infrastructure restrictions)
At ./autoptimize/classes/autoptimizeCriticalCSSSettings.php line 255/256 (//// warn if service is down.) your code tests the condition of autoptimize_service_availablity, to prevent invalid array access.
It’s possible to do the same thing at this point ./autoptimize/classes/autoptimizeImages.php line 204/205 ?
see the error reporting at Query Monitor https://i.imgur.com/WXTV4Ge.jpg
Thanks in advanced :)`
- The topic ‘PHP Notice with WP_HTTP_BLOCK_EXTERNAL enable’ is closed to new replies.