WordPress.org

Ready to get started?Download WordPress

Forums

WP Deferred Javascripts
[resolved] Messages après la MAJ 1.4 (19 posts)

  1. Eric 05
    Member
    Posted 1 year ago #

    Bonjour, j'utilise votre plugin sur mon blog et l'affichage est bien boosté. Je viens de faire la MAJ vers la 1.4 et j'obtiens ces messages en haut de ma page de connexion :

    Warning: Invalid argument supplied for foreach() in /.../wp-content/plugins/wp-deferred-javascripts/wp-deferred-javascripts.php on line 27

    Warning: Creating default object from empty value in /.../wp-content/plugins/wp-deferred-javascripts/wp-deferred-javascripts.php on line 34

    c'est grave docteur?

    http://wordpress.org/extend/plugins/wp-deferred-javascripts/

  2. Daniel Roch
    Member
    Plugin Author

    Posted 1 year ago #

    Nous venons tout juste de faire la mise à jour du plugin vers la version 1.5. Avez-vous toujours ce bug ?

  3. Eric 05
    Member
    Posted 1 year ago #

    Oui, avec la v1.5

  4. Eric 05
    Member
    Posted 1 year ago #

    mais maintenant c'est lignes 28 et 35

  5. Eric 05
    Member
    Posted 1 year ago #

    Et avec le plugin, mon blog "masonry" ne charge plus les nouveaux articles. Pb du plugin ou du thème?

    Le site :
    http://www.portrait.ericburlet.com/

  6. Willy Bahuaud
    Member
    Plugin Author

    Posted 1 year ago #

    Je pense que cela vient de la façon dont sont enqueués les javascripts sur ton thème.
    Nous pourrions adapter notre plugin (car le bug est présent sur d'autres sites) mais pour ça il nous faudrait connaitre le nom de ton thème et la liste des plugins installés (pour voir de quel façon les scripts sont chargés ici).

  7. Willy Bahuaud
    Member
    Plugin Author

    Posted 1 year ago #

    Sinon tu peux aussi, pour nous aider à détecter le problème, te rendre dans le code du plugin et éditer la ligne 38 :
    add_action( 'wp_print_scripts', 'you_shall_not_pass', 9 );

    • essaye de mettre 1 au lieu de 9 et test...
    • essaye de mettre 99 sinon

    Et si tu peux nous dire en suite si l'une ou l'autre méthode fonctionne ?

    Merci :-)

  8. esmi
    Forum Moderator
    Posted 1 year ago #

    These are English language forums, so please use English. Alternatively, use a WP support forum in your language.

  9. Willy Bahuaud
    Member
    Plugin Author

    Posted 1 year ago #

    Okkkk....

    Well the new release 1.5.1 solved the minor bug "alerts on login and register pages". But we don't know why your blog fail loading new posts.

    Can you try to set priority 1 or 999 on add_action( 'wp_print_scripts', 'you_shall_not_pass', 9 ); ?

    Thanks you a lot :-)

  10. Eric 05
    Member
    Posted 1 year ago #

    OK, OK...

    For Willy, it works with 99

  11. Willy Bahuaud
    Member
    Plugin Author

    Posted 1 year ago #

    Yeahh,I thought so !!!

    I'm commiting the plugin ! :-P

  12. Eric 05
    Member
    Posted 1 year ago #

    Great!

  13. Eric 05
    Member
    Posted 1 year ago #

    and... what a good english!

  14. Eric 05
    Member
    Posted 1 year ago #

    OK, it works out of the box with 1.5.2 update. You guys are responsive!

  15. Eric 05
    Member
    Posted 1 year ago #

    Well, and on this website with helm theme it breaks the homepage slider.

    http://www.ericburlet.org

  16. Willy Bahuaud
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, it is because the plugin Flex Slider doesn't use the right way to enqueue scripts.

    We can't solve it :-/

    But you can notify flex slider's authors.

  17. Eric 05
    Member
    Posted 1 year ago #

    OK

  18. Eric 05
    Member
    Posted 1 year ago #

    Actually, I have at least two sites with flexslider on wich your plugin cannot run. What a pity!

    So where do we find flex slider's author? And maybe you can talk with them, from developper to developper :)?

  19. Willy Bahuaud
    Member
    Plugin Author

    Posted 1 year ago #

    Yes,
    if you find him, I can explain him what is going wrong in his code, and give him a better way to integrate it. :-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.