You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a new image / updating an image, fires a POST to a missing url and then errors in javascript. Same repo to replicate here : https://github.com/swytch/bugs.
This doesn't inhibit saving the block.
However using the nested block in the same repo, and adding an image inside will stop the image from saving. Uncaught SyntaxError: Unexpected token '<', " - which looks like it's returning the HTML for the editform instead of JSON. I think these are related, so I'm sticking both issues in here.
The text was updated successfully, but these errors were encountered:
We are experiencing probably the same issue. Maybe we can shed some light on how to reproduce this.
First some context / findings:
we are using Elemental 5.2.3 and SS 5.2.12
we are using Elemental in BlogPosts, so the ElementalArea is loaded not in Pages but Blog (admin/news/)
if we edit the same page in the pages section, the are no js-errors and the page can be saved without problems
so instead of /admin/news/SilverStripe-Blog-Model-BlogPost/EditForm/field/SilverStripe-Blog-Model-BlogPost/item/659/edit/
use the same ID in a different pages-section: /admin/pages/edit/show/659/
using inlineEditable solves the problem also
Reproduction steps
set the DNADesign\Elemental\Extensions\ElementalPageExtension on the BlogPost pagetype
create an Element with a text and image
in the CMS, create a new blogpost and add the text-image element
add an image and some text, save the page
observe the console error Uncaught SyntaxError: Unexpected token '<', "
the expected JSON is indeed no json, but the HTML of the form.
this is caused by the URL returning HTML instead of JSON /admin/news/SilverStripe-Blog-Model-BlogPost/EditForm/field/SilverStripe-Blog-Model-BlogPost/item/659/ItemEditForm/
Maybe the screencast makes it a little better to understand. The first part is editing in the Blog-section, the second part in the Pages-section (yet it is the same blogpost / page):
Adding a new image / updating an image, fires a POST to a missing url and then errors in javascript. Same repo to replicate here : https://github.com/swytch/bugs.
This doesn't inhibit saving the block.
However using the nested block in the same repo, and adding an image inside will stop the image from saving. Uncaught SyntaxError: Unexpected token '<', " - which looks like it's returning the HTML for the editform instead of JSON. I think these are related, so I'm sticking both issues in here.
The text was updated successfully, but these errors were encountered: