Support » Plugin: HeadJS Loader » [Plugin: HeadJS Loader] Bug on line 75 and 77

  • Resolved hkellecioglu


    Excellent plugin thanks for it.
    There is a minor bug I think. Apache error log shows the following errors but plugin works without a problem.

    PHP Warning: array_unique() [function.array-unique]: The argument should be an array in …/wp-content/plugins/headjs-loader/headjs-loader.php on line 75

    PHP Warning: Invalid argument supplied for foreach() in …/wp-content/plugins/headjs-loader/headjs-loader.php on line 77

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author durin


    This was an issue if no javascript was declared. Version 0.1.1 has more control logic around empty values which should fix this.


    When HeadJS Loader is activated I get following errors:

    jQuery is not defined
    jQuery(document).ready( function($) {
    window.attachEvent is not a function

    The first error is because the script is loaded right before HeadJS Loader and then jQuery isn’t loaded yet.

    I dont have a clue why the last one is appearing. The site is a development site, so I don’t know how long it will be in the same state.

    ohh sorry for hijacking this topic.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: HeadJS Loader] Bug on line 75 and 77’ is closed to new replies.