After Jetpack update on 27/4/2013 to 2.2.4 got a warning..!

  • Author
    Posts
  • #1246625

    Having updated Jetpack twice within 2 hours on 27/4/2013 to 2.2.4 I got this very akwerd warning on my site in every post and page.
    The warning is:
    Warning: Missing argument 3 for Jetpack_Custom_CSS::editor_max_image_size() in /wp-content/plugins/jetpack/modules/custom-css/custom-css.php on line 1147

    Could anyone tell me what to do please?

    Best regards Silvie.
    European Bridal Fashion Blog
    http://www.silviesbridal.com

    The blog I need help with is silviesbridal.com.

    #1246739

    supportbot
    Member

    The blog you specified at silviesbridal.com does not appear to be hosted at WordPress.com.

    This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.

    If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

    #1246740

    timethief
    Member

    I suggest looking for an answer to your question here first > http://jetpack.me/support/ If you do not find one then the Jetpack forum is at WordPress.org http://wordpress.org/support/plugin/jetpack If you don’t have a username account at WordPress.org, click http://wordpress.org/support/ and register one on the top right hand corner of the page that opens, so you can post there.

    #1246818

    adim2013
    Member

    It seems to get solved by replacing line 1147 in /wp-content/plugins/jetpack/modules/custom-css/custom-css.php like this:
    instead of
    static function editor_max_image_size( $dims, $size, $context ) {
    it should be:
    static function editor_max_image_size( $dims, $size, $context='' ) {
    so that argument 3 is not missing, just blank.

    #1246830

    Hello Admin2013,

    Thanks a miljon, problem solved but how did this happen? I have never had any problems.

    Best regards,
    Silvie
    http://www.silviesbridal.com

    #1246831

    timethief
    Member

    This is the WordPress.com support forum where the information above is of no use to free hosted WordPress.com bloggers. May I suggest you post that into the WordPress.ORG Jetpack support forums please? It will be of use to WordPress.org bloggers here > http://wordpress.org/support/plugin/jetpack

    #1246842

    ajizusama
    Member

    thanks Admin2013, you saved me ^^

    #1246863

    Thank you..admin2013.. :)

    #1246880

    Adim2013 – you are my hero!!!

    Saved me here – had exactly the same problem as other focus. The 1147 line correction is perfect!!

    Cheers,

    #1246885

    richardmtl
    Staff

    Hi all!

    This issue has been fixed and will be included in the next release, thanks for bringing it to our attention. Also, please remember that under most circumstances, editing the plugin files isn’t a good idea as your changes will be overwritten in the next update. However, in this case, of course doing the change is fine to temporarily fix the error. :)

    #1246886

    timethief
    Member

    @richardmtl
    Thank you so much. Will you please close this thread?

    #1246887

    richardmtl
    Staff

    Thanks timethief, done!

The topic ‘After Jetpack update on 27/4/2013 to 2.2.4 got a warning..!’ is closed to new replies.