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

Content with an image included does not get saved to the draft post #80

Closed
designsimply opened this issue Jun 8, 2017 · 1 comment
Closed
Labels

Comments

@designsimply
Copy link

Steps to reproduce:

  1. Install https://chrome.google.com/webstore/detail/wordpresscom-for-google-d/baibkfjlahbcogbckhjljjenalhamjbp on Chrome.
  2. Start a new Google Doc.
  3. When prompted for permission to run, click the "Continue" button.
  4. Choose a WordPress.com account.
  5. Click the "Allow" button to allow WordPress.com for Google Docs permission.
  6. Add a line of text and an image.
  7. Go to Add-ons > WordPress.com for Google Docs > Open.
  8. Click the "Add a WordPress Site" button in the sidebar on the right.
  9. Make sure you are signed in as the correct user and click the "Approve" button.
  10. Add a tag and select a category in the sidebar.
  11. Click the "Save" button in the sidebar on the right.
  12. Note the very large error message that appears.
  13. Check the post on the WordPress.com site to see if any content was saved in a draft there.

Result: the category and tag were saved but the line of text and image from the content were not saved and the following error appeared in Google Docs after clicking the Save button:

{"message":"Cannot call method "split" of null.","name":"TypeError","fileName":"Code (WordPress.com for Google Docs)","lineNumber":3388,"stack":"\tat Code (WordPress.com for Google Docs):3388 (hasImageFileExtension)\n\tat Code (WordPress.com for Google Docs):3409 (uploadImage)\n\tat Code (WordPress.com for Google Docs):305 (upload)\n\tat Code (WordPress.com for Google Docs):4095\n\tat Code (WordPress.com for Google Docs):3890 (renderInlineImage)\n\tat Code (WordPress.com for Google Docs):3543 (renderElement)\n\tat Code (WordPress.com for Google Docs):3525 (renderContainer)\n\tat Code (WordPress.com for Google Docs):3656 (renderParagraph)\n\tat Code (WordPress.com for Google Docs):3539 (renderElement)\n\tat Code (WordPress.com for Google Docs):3525 (renderContainer)\n\tat Code (WordPress.com for Google Docs):310 (postToWordPress)\n"}

screen shot 2017-06-07 at wed jun 7 7 07 41 pm
Seen at https://docs.google.com/document/d/1lIw2253r6VSosUAEClDlh-WjwkkSx38zLQASpdPE0DE/edit using Chrome 58.0.3029.110 on Mac OS X 10.12.5.

screen shot 2017-06-07 at wed jun 7 7 12 04 pm
Seen at https://wordpress.com/post/design5279.wordpress.com/11119 using Chrome 58.0.3029.110 on Mac OS X 10.12.5 logged in as design5279.

/hat tip @bissy for the original report at https://github.com/Automattic/wp-desktop/issues/304, thank you!

@akshansh1998
Copy link

I Got Same Issue and I am Damn Sure it is Because of Images in the Document...

@Automattic Team Please fix this Problem..

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

No branches or pull requests

2 participants