Skip Navigation

[Resolved] Cannot edit or update a custom post form. Code is not showing in content editing

This support ticket is created 6 years, 1 month ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 3 replies, has 2 voices.

Last updated by jeffreyR-2 6 years, 1 month ago.

Assisted by: Nigel.

Author
Posts
#1196987
Screen Shot 2019-02-06 at 4.24.42 PM.png
Screen Shot 2019-02-06 at 4.21.22 PM.png
Screen Shot 2019-02-06 at 4.20.13 PM.png
Screen Shot 2019-02-06 at 4.15.19 PM.png

I am trying to: Edit a form.

Link to a page where the issue can be seen:

I expected to see:

Instead, I got: See screens below. Any interface button i.e. Fields and Views I click on it says Post form saved successfully. Notice code coloring is not appearing on other ToolSet editor screens.

#1197319

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

Sorry for the slow response, it has been a busy day in the queue.

From your screenshots I would expect to see JavaScript errors in your browser console, could you please check and report what you find.

It is also probable that there is a conflict with another plugin or your theme.

Could you please try disabling the non-Toolset plugins and switching theme to twentynineteen then trying again? If the issue disappears then it should be possible to determine the source of any conflict by a process of elimination.

Let me know how that goes so I can see how to proceed.

#1197857
Screen Shot 2019-02-07 at 6.42.34 AM.png

H Nigel,

Did you get my reply e-mails from me yesterday regarding the JavaScript console errors I shared with you? I am sharing with you again here.

Thank you,

Mark Hahs

[Error] TypeError: CodeMirror.overlayMode is not a function. (In 'CodeMirror.overlayMode(CodeMirror.getMode(config, parserConfig.backdrop || "text/html"), shortcodesOverlay)', 'CodeMirror.overlayMode' is undefined)
codemirror_shortcodes_overlay (codemirror_shortcodes.js:202)
getMode (codemirror.js:5503)
loadMode (codemirror.js:239)
attachDoc (codemirror.js:7733)
CodeMirror (codemirror.js:110)
CodeMirror (codemirror.js:62)
fromTextArea (codemirror.js:5937)
toggleCodeMirror (icl_editor_addon_plugin.js:1117)
codemirror (icl_editor_addon_plugin.js:1160)
initCodemirror (editor.prototype.js:154)
initMainEditor (editor.prototype.js:237)
initIclEditor (editor.prototype.js:50)
init (editor.prototype.js:499)
PostFormsEditor (main.js:26)
(anonymous function) (main.js:32)
i (jquery.js:2:27455)
fireWith (jquery.js:2:28215)
ready (jquery.js:2:30018)
K (jquery.js:2:30374)

Also getting errors if I click in the text area where the HTML source should be appearing.

For example:

[Error] TypeError: undefined is not an object (evaluating 'doc.mode.startState')
getStateBefore (codemirror.js:2486)
getLineStyles (codemirror.js:6860)
buildLineContent (codemirror.js:6922)
updateExternalMeasurement (codemirror.js:2564)
prepareMeasureForLine (codemirror.js:2600)
coordsCharInner (codemirror.js:2896)
coordsChar (codemirror.js:2883)
posFromMouse (codemirror.js:3540)
onMouseDown (codemirror.js:3568)

#1198040

My issue is resolved now. Thank you!

There was a conflict with this plugin:
hidden link

We deactivated all of the plugins and then through process of elimination determined there was a conflict with this newly updated plugin that we use Accordions.