Something went wrong on Customised Element Block ?

KK
KK
Vote:
 

Hi guys,

I was wondering that in what situation, would the Editor give this error when clicking publish?

Trying to add an existing customized ElementBlock element to an existing Form container. It thrown this error with the red icon next to the Publish button and stopped the publishing.

The CustomizedElementBlock had been tested in another machine without errors.

In this env, after pulling the latest code and ran the project, I can see the new elementBlock under the Forms Elements as an extendedElement and also I can drag it and drop into the existed form container. But just at the time right after dropping it, the Red icon with the erro msg shown up.

Something went wrong.

  • Content of type 'TheCustomizedElementBlock' is not allowed in 'Form elements'

Not sure what's the problem. 

#283731
Jul 15, 2022 7:51
Vote:
 

sounds like the allowed types for the FormEmement content type hasn't been updated to allow it. Try restarting the app or if that doesn't work go in the admin area in the content types manager and on the [Forms] Form container click revert to default in case the model has come out of sync. Hopefully that will fix 

#283747
Jul 15, 2022 9:15
KK
Vote:
 

Thanks Scott. Checked out the Admin page, reverted to default the container and found an old customized element with a warining icon saying the code is not available. Then after removed the element from the container, the published website looks fine now. But still could not remove that element from content type page, it thrown an error with "Pages of this type exist "(I did remove the element from its container and there is no other place using the element). Not sure why. But anyway the major problem has been resolved. :) 

#283855
Jul 18, 2022 2:42
Vote:
 

Is the element you removed still in the Trash/Recycle Bin?

#283877
Jul 18, 2022 16:54
KK
Vote:
 

@Daniel I would like to check out the content of Recycle Bin. Really do not know how to do it.. :) 

I can see it is under Root --> Recycle Bin on Admin Access Rights Page. But how to display the removed items? Could you advice?

#283914
Jul 19, 2022 2:58
Vote:
 

In the bottom right of the page tree widget, click the gear icon and then "View Trash":

Once in there, if you hover over an element you should have an option to Delete or Restore:

See also: https://support.optimizely.com/hc/en-us/articles/4413192322701-Deleting-and-restoring-content

#283917
Jul 19, 2022 3:03
KK - Jul 20, 2022 11:07
Thanks Daniel. Learned. :D
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.