HeadJS Loader
[resolved] Bug on line 75 and 77 (4 posts)

  1. hkellecioglu
    Posted 5 years ago #

    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


  2. durin
    Plugin Author

    Posted 5 years ago #

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

  3. Thomas Blomberg Hansen
    Posted 5 years ago #


    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 http://2011.landdistrikterne.dk a development site, so I don't know how long it will be in the same state.

  4. Thomas Blomberg Hansen
    Posted 5 years ago #

    ohh sorry for hijacking this topic.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • HeadJS Loader
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic