WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. hkellecioglu
    Member
    Posted 3 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

    http://wordpress.org/extend/plugins/headjs-loader/

  2. durin
    Member
    Plugin Author

    Posted 3 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. thomasdk81
    Member
    Posted 3 years ago #

    Hi,

    When HeadJS Loader is activated I get following errors:

    jQuery is not defined
    jQuery(document).ready( function($) {
    window.attachEvent is not a function
    window.attachEvent('onload',pngfix);

    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. thomasdk81
    Member
    Posted 3 years ago #

    ohh sorry for hijacking this topic.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic