• Resolved NicMic

    (@nicmic)


    Hi,
    When using the plugin on my site I get the following error message :

    Warning: Invalid argument supplied for foreach() in /homez/www/wp-content/plugins/async-js-and-css/asyncJSandCSS.php on line 213

    If I view my site while not logged in (no error while in admin).

    This site has very few scripts / css.

    http://wordpress.org/plugins/async-js-and-css/

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter NicMic

    (@nicmic)

    Oops, on another site it’s lines 238 & 247
    On a third site everyhting works fine.

    Thread Starter NicMic

    (@nicmic)

    Oh, 4th site, strange behaviour :
    the :

    <script type=”text/javascript”>
    asyncScripts = […]

    block gets added in the source page BEFORE the head, and as a result, no styles are loaded.

    Thread Starter NicMic

    (@nicmic)

    (That last one looks like it’s caused by PHP Output Buffering)

    Thread Starter NicMic

    (@nicmic)

    It is in fact a problem caused by an incompatibility with the “force title rewrite” in WordPress SEO.

    Plugin Author dmikam

    (@dmikam)

    Yes it, looks like it conflicts with buffering because it also uses buffering to detect scripts included directly into wp_foot (not with wp_enqueue_script).
    I’m planning to include an option to disable this detection and so avoud this type of conflicts.

    Thanks for information.
    In two days or so I’ll publish new version with this option and some others.

    Plugin Author dmikam

    (@dmikam)

    Just have released a new version with options to disable scanning wp_head and wp_footer (they both use output buffering).
    Some other options added too.

    Thread Starter NicMic

    (@nicmic)

    Thanks, nice options 😀
    However I still get :

    Warning: Invalid argument supplied for foreach() in /home/www1/wp-content/plugins/async-js-and-css/functions.php on line 178

    Warning: Invalid argument supplied for foreach() in /home/www1/wp-content/plugins/async-js-and-css/functions.php on line 187

    Plugin Author dmikam

    (@dmikam)

    Now they are removed 🙂
    New version.

    Thread Starter NicMic

    (@nicmic)

    Indeed 😀

    Plugin Author dmikam

    (@dmikam)

    Thank you !
    Marked as resolved.

    Thread Starter NicMic

    (@nicmic)

    No no, thank YOU 🙂
    Do you maybe have a donations page?

    Plugin Author dmikam

    (@dmikam)

    🙂

    There is a donation link “Donate to this plugin »” on the plugin’s page: http://wordpress.org/plugins/async-js-and-css/ . It is on the right sidebar.

    Plugin Author dmikam

    (@dmikam)

    Thanks a lot 🙂 !

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Error message ( line 213)’ is closed to new replies.