Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File size exceeds NaN byte #60

Open
JoeryVandenBosch opened this issue Nov 27, 2023 · 11 comments
Open

File size exceeds NaN byte #60

JoeryVandenBosch opened this issue Nov 27, 2023 · 11 comments

Comments

@JoeryVandenBosch
Copy link

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

mcguffin commented Nov 27, 2023

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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

@JoeryVandenBosch
Copy link
Author

No nothing related to the plugin

@JoeryVandenBosch
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

JoeryVandenBosch commented Nov 27, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants