Ready to get started?Download WordPress


Use Google Libraries
[resolved] Fix for PHP 5 strict warning (4 posts)

  1. johanee
    Posted 10 months ago #

    With a new PHP 5 the plugin gives the following warning:

    Strict Standards: Redefining already defined constructor for class JCP_UseGoogleLibraries in [...]/wp-content/plugins/use-google-libraries/use-google-libraries.php on line 123

    The solution is to move the PHP 5 constructor before the PHP 4 compatible constructor, see for example trac #20801.


  2. Jason Penney
    Plugin Author

    Posted 10 months ago #

    This is on the tracker at https://github.com/jpenney/use-google-libraries/issues/1 and I've fixed it in the development branch.

    WordPress 3.6 introduced some changes I have yet figure out that triggers some new strict warnings using PHP 5.4+ (see https://github.com/jpenney/use-google-libraries/issues/6 ).

    Hopefully I can fix them all at one. Sorry about the delay.

  3. johanee
    Posted 10 months ago #

    Ok, though as noted you can fix it while keeping PHP 4 compatability by switching the constructors around.

  4. Jason Penney
    Plugin Author

    Posted 10 months ago #

    Oh, wow.

    I apologize for not reading your post carefully enough, I didn't catch that.

    I'd have to double check what the final version of WordPress that supported PHP4 was, because I'm not sure it makes sense to put it back, but I do appreciate you bringing it to my attention.



You must log in to post.

About this Plugin

About this Topic


No tags yet.