• Resolved timholz

    (@timholz)


    Hi
    I receive the following warning in my debug.log:

    [18-Dec-2018 19:27:03 UTC] PHP Warning: Invalid argument supplied for foreach() in /Applications/MAMP/htdocs/wordpress/wp-content/plugins/autoptimize/classes/autoptimizeScripts.php on line 485

    I use the latest plugin version and php 7.2.12.
    Can i ignore this warning or should it be fixed?

    regards
    theo

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter timholz

    (@timholz)

    Sorry, my mistake. Syntax error in a function.
    regards
    theo

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    well on one hand you could ignore it; it’s pretty harmless, it’s but a warning and it’s in a part of the logic which should not impact the actual optimization.

    but weird nonetheless (not in the least because that part of the code has not changed in years really), so some questions;
    * is this a one-off warning or are there hundreds of such warnings in the errorlog?
    * do you see this on one site, or on more (if you’re managing multiple sites)?
    * when did this start?

    frank

    Thread Starter timholz

    (@timholz)

    Hi Frank,
    there were hundreds of them.
    I saw it only on the site where i made the syntax error in my movelast function.
    I can’t remember when it started, must have been when i wrote the function mentioned above.
    But anyway, i found the cause and the bebug.log is empty, since i removed the syntax error.
    Thanks a lot for your interest.
    theo

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    ah, the syntax error was in code outside of AO, now I understand ??

    have a nice evening!
    frank

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘emptying the cache of autoptimize’ is closed to new replies.