• Resolved PinkCakePlate

    (@lauracakeplategirlcom)


    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 https://www.pinkcakeplate.com
    Thank you for your help. I love this plug in and hate to not be able to use it.

    https://www.ads-software.com/extend/plugins/jetpack/

Viewing 11 replies - 16 through 26 (of 26 total)
  • 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.

    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

    Hi shenbagambtech,

    Your solution works like a charm.

    Thanks!

    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?

    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?

    Thread Starter PinkCakePlate

    (@lauracakeplategirlcom)

    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.

    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! ??

    Thread Starter PinkCakePlate

    (@lauracakeplategirlcom)

    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 ??

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

    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!!!

    thanks nayajean!

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘Upgrade brings missing aurgument error’ is closed to new replies.