mcguffin / the-paste

Paste Images in WordPress from many applications and upload them to the media library.
https://wordpress.org/plugins/the-paste/
GNU General Public License v3.0
40 stars 11 forks source link

File size exceeds NaN byte #60

Open JoeryVandenBosch opened 11 months ago

JoeryVandenBosch commented 11 months ago

The paste function seems to be broken for me after the update to 2.1.0. the pasted image disappears in a slit second and i get the error message File size exceeds NaN byte. Any tips on how to resolve this? Thank you

mcguffin commented 11 months ago

hard to say... could be an invalid file object. Possibly something CORS related. Which Browser? Where do you copy from? Where do you paste into – Classic editor or Media library?

JoeryVandenBosch commented 11 months ago

Hi, i've tried in Chrome v119, in Egde v119, i'm copying from snagit of the snipping tool and it's in the classic editor. the screenshot files also don't show in the media library anymore.

mcguffin commented 11 months ago

the screenshot files also don't show in the media library anymore.

You saying previously pasted screenshots are gone from the media library, right? Does drag-drop-upload work?

JoeryVandenBosch commented 11 months ago

Before when i took a screenshot and pasted it in the blog post, the screenshot file was also uploaded to the media library, this is no longer the case. All previous screenshots are still in the library. Drag and drop still works.

mcguffin commented 11 months ago

Okay, I'll need to examine what's on your clipboard.

Please:

  1. Install the attached plugin – this version has a debug mode, which is not (yet) available in the wporg version: the-paste.zip
  2. Execute thepaste.options.editor.debugMode=true in the JS-console
  3. Paste
  4. Filter the console output by [the paste] and post a screenshot. Should more or less look like this: grafik
JoeryVandenBosch commented 11 months ago

Hi, i get no results when filtering on [the paste] when the debugmode is set to true 2023-11-27_14-14-58 I've restored my full site from a backup and in version 2.0.9 i still can paste screenshots.

mcguffin commented 11 months ago

68 errors in your console. Any of this related to the plugin?

JoeryVandenBosch commented 11 months ago

No nothing related to the plugin

JoeryVandenBosch commented 11 months ago

Hi, i think i've found the reason why the plugin stopped working, In Jetpack, when you enable Videopress the plugin stopped working. If i disable Videopress all is fine again. this for the version 2.0.9 & 2.1.0 of the plugin.

mcguffin commented 11 months ago

Weird... I just set up a fresh blog with jetpack, the videopress plugin (Free Trial – I'm definetly not going to pay for the work I do here!), the paste, classic editor and 2020 theme. No success reproduing the issue so far... Did you try to disable some other plugins too? Switch the Theme? Maybe it's like videopress + something else = ding dong the paste is dead...

JoeryVandenBosch commented 11 months ago

Yes I tried to disable all plugins that where added after I used the paste. Now I use Divi but i can also confirm that it did not worked with Elementor. That was some time ago and i cannot recall that Videopress was enabled at that time. But I tried the paste plugin also at that time.

Sent from Outlook for iOShttps://aka.ms/o0ukef


From: Jörn Lund @.> Sent: Monday, November 27, 2023 6:09:28 PM To: mcguffin/the-paste @.> Cc: Joery Van den Bosch @.>; Author @.> Subject: Re: [mcguffin/the-paste] File size exceeds NaN byte (Issue #60)

Weird... I just set up a fresh blog with jetpack, the videopress plugin (Free Trial – I'm definetly not going to pay for the work I do here!), the paste, classic editor and 2020 theme. No success reproduing the issue so far... Did you try to disable some other plugins too? Switch the Theme? Maybe it's like videopress + something else = ding dong the paste is dead...

— Reply to this email directly, view it on GitHubhttps://github.com/mcguffin/the-paste/issues/60#issuecomment-1828269943, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJHERR7YJY52EQH5GT5QCKLYGTCMRAVCNFSM6AAAAAA73W6FWSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRYGI3DSOJUGM. You are receiving this because you authored the thread.Message ID: @.***>