WordPress.org

Forums

Jetpack by WordPress.com
[resolved] Upgrade brings missing aurgument error (27 posts)

  1. PinkCakePlate
    Member
    Posted 2 years ago #

    Below is the error I now have before every post. I upgraded yesterday and even in researching and editing my media file size it has not cleared the issue.
    Warning: Missing argument 3 for Jetpack_Custom_CSS::editor_max_image_size() in /home/content/73/6194873/html/wp-content/plugins/jetpack/modules/custom-css/custom-css.php on line 1147

    I am not educated enough to comfortably edit code but with a clear process I might be able to. And unfortunately I do not know how to do a "roll back" to an earlier version.

    My URL is http://www.pinkcakeplate.com
    Thank you for your help. I love this plug in and hate to not be able to use it.

    http://wordpress.org/extend/plugins/jetpack/

  2. The Wimpy Vegetarian
    Member
    Posted 2 years ago #

    I have the exact same problem when I upload a photo. And I can't post my post url to facebook for social media. I'm having to deactivate jetpack, but would love to be able to use it. I don't know how to do a roll back either to an earlier version. My url is http://thewimpyvegetarian.com.

  3. livinglegendsau
    Member
    Posted 2 years ago #

    Same problem here. It's causing my image slider to mess up.

  4. livinglegendsau
    Member
    Posted 2 years ago #

    Okay, so I've been able to fix this by changing line 1132 from:
    static function revision_post_link( $post_link, $post_id, $context ) {
    to
    static function revision_post_link( $post_link, $post_id, $context='' ) {

    in the file /wp-content/plugins/jetpack/modules/custom-css/custom-css.php

  5. PinkCakePlate
    Member
    Posted 2 years ago #

    Thank you I am gonna give it a try wish me luck!

  6. The Wimpy Vegetarian
    Member
    Posted 2 years ago #

    I don't have any idea where to even find these lines, which makes me a little nervous. I may have to stop using jetpack if it involves me having to do coding !

  7. PinkCakePlate
    Member
    Posted 2 years ago #

    I couldnt find it so I had to deactivate the plug in for now. I cant have the errors showing on my blog! :-(

  8. livinglegendsau
    Member
    Posted 2 years ago #

    The problem is happening with the Custom CSS module of Jetpack. If you can't modify the code, then you only need to turn the Custom CSS module off, not all of Jetpack.

  9. PinkCakePlate
    Member
    Posted 2 years ago #

    It wasn't enabled to begin with.

  10. sprclldr
    Member
    Posted 2 years ago #

    We're seeing this error only if you are a logged-in user.

  11. The Wimpy Vegetarian
    Member
    Posted 2 years ago #

    I don't understand what you mean??

  12. sprclldr
    Member
    Posted 2 years ago #

    To clarify, this Missing argument error doesn't appear to casual site visitors. If you are logged into the site (probably as the site's admin), and look at the homepage, you will see the errors.

    Wimpy Veg, the OP's problem has to do with errors appearing on the live site, not with errors related to post updating or admin-area errors. These may indeed be related, but you may find better assistance opening that as a separate thread.

  13. nayajean
    Member
    Posted 2 years ago #

    I understand that this error code is only showing up if we are logged into the back end of our site.
    The question still remains ... how do we fix the error?

    I am not inclined to jump into my CSS and alter the area unless someone can tell me specifically how to changes it. My CSS isn't numbered in lines when I go to my Jetpack CSS and there are a ton of functions on the right hand side. I'm not sure which one to even change.

    For now I have Jetpack disabled.

    Has anyone found a solution to this?

  14. The Wimpy Vegetarian
    Member
    Posted 2 years ago #

    If I disable jetpack, how does that affect my subscriptions? I have a ton of people subsribed to my blog through jetpack's subscription services. I'm with nayajean, i'm not inclined to jump into my CSS unless the directions are specific on what to do.

  15. livinglegendsau
    Member
    Posted 2 years ago #

    The 'fix' is not about 'jumping into your CSS'. It's about actually changing a PHP source code file on your server using a text editor that will number the lines of code.

  16. The Wimpy Vegetarian
    Member
    Posted 2 years ago #

    Where do I find the PHP source code file??? And where is a text editor??

  17. studioplush
    Member
    Posted 2 years ago #

    I tried this from livinglegendsau, and it didn't work. Actually that line of code was 1121 for me, not 1132.

    static function revision_post_link( $post_link, $post_id, $context ) {
    to
    static function revision_post_link( $post_link, $post_id, $context='' ) {

    SOOO....I just DEACTIVATED the plugin jetpak. and that was the only solution, I've found.

  18. shenbagambtech
    Member
    Posted 2 years ago #

    Hi All,

    I too had the same issue.

    So I just changed this line to

    static function editor_max_image_size( $dims, $size, $context) {
    to
    static function editor_max_image_size( $dims, $size, $context='' ) {

    Line number 1147

    Its working fine with my end

  19. missbackpacker
    Member
    Posted 2 years ago #

    Hi shenbagambtech,

    Your solution works like a charm.

    Thanks!

  20. The Wimpy Vegetarian
    Member
    Posted 2 years ago #

    shenbagambtech, or someone out there, can you be more specific? Where do I find this line? I need a very specific direction on this. I've already spent way too much time trying to find it. BTW, are there no Jetpack humans who can help? We all have to figure it out on our own?

  21. nayajean
    Member
    Posted 2 years ago #

    OMG Wimpy Vegetarian ... I know we aren't stupid but everyone in this forum seems to think we are??

    Can anyone help ... in lamens terms?

    PHP, CSS ... regardless. It's still code we have to change and it seems like some people have lines in their editors {I do not} and others don't. There are a ton of php functions for Jetpack in the back end of my wordpress.
    I don't even know where to begin to change this.

    SOMEONE SPEAK NON-TECH TALK? Anyone?

  22. PinkCakePlate
    Member
    Posted 2 years ago #

    I know I can edit some code but I do not have numbered lines either. I really hate that we are getting no help from the admins at all.

  23. Bill Dennen
    Member
    Posted 2 years ago #

    it's in /wp-content/plugins/jetpack/modules/custom-css/custom-css.php !

    Edit this file and look for the line:

    static function editor_max_image_size( $dims, $size, $context ) {

    and change it to

    static function editor_max_image_size( $dims, $size, $context='' ) {

    This should be considered a temporary fix, though. Upgrades to Jetpack will over-write this file. Hopefully upgrades to Jetpack will also fix this bug! :)

  24. PinkCakePlate
    Member
    Posted 2 years ago #

    Bill Dennen THANK YOU!!! I was able to go in and edit the code and it looks good!! I am sad that I now have a few days with no site stats :-(

  25. nayajean
    Member
    Posted 2 years ago #

    Jetpack had a WordPress update which I completed this morning ... looks like it fixed the error.

  26. The Wimpy Vegetarian
    Member
    Posted 2 years ago #

    Thank GOD Jetpack did the update. It totally fixed it. I appreciate Bill Dennen's above explanation, but I kept asking where do I actually find it?

    When I plugged his /wp-conent/etc thing in, I kept getting this :

    Fatal error: Call to undefined function add_action() in /home/wimpyveg/public_html/wp-content/plugins/jetpack/modules/custom-css/custom-css.php on line 1445

    so unfortunately without knowing exactly, and I do mean exactly, where to go, I had no way of fixing it myself. I needed to know which button to hit on the dashboard, and then what link or button to push after that. Hats off to those of you who were able to figure it out. But what I needed was the fix from Jetpack. Thanks soooo much for that!!!

  27. Bill Dennen
    Member
    Posted 2 years ago #

    thanks nayajean!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Jetpack by WordPress.com
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.