Skip Navigation

[Résolu] user forms admin is broken at latest version

This support ticket is created Il y a 6 années et 2 mois. 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)

Ce sujet contient 4 réponses, a 3 voix.

Dernière mise à jour par Gerard Il y a 6 années et 2 mois.

Assisté par: Nigel.

Auteur
Publications
#1105342

TypeError: $ is not a function[Learn More] editor.prototype.js:178:5
Toolset.CRED.EditorPagePrototype.prototype.initExtraEditors
/wp-content/plugins/cred-frontend-editor/public/js/editor.prototype.js:178:5
Toolset.CRED.EditorPagePrototype.prototype.initIclEditor
/wp-content/plugins/cred-frontend-editor/public/js/editor.prototype.js:49:5
Toolset.CRED.EditorPagePrototype.prototype.init
/wp-content/plugins/cred-frontend-editor/public/js/editor.prototype.js:360:5
Toolset.CRED.UserFormsEditor

there is the code:

/**
* Init other Codemirror editors in the page, like:
* - the message to display after submitting the form.
* - the notifications body editor.
*
* @since 2.1
*/
Toolset.CRED.EditorPagePrototype.prototype.initExtraEditors = function() {

var currentInstance = this;

this.initCodemirror( this.editorActionMessageSelector );
this.editorExtra.actionMessage = WPV_Toolset.CodeMirror_instance[ this.editorActionMessageSelector ];

$( '.js-cred-notification-body' ).each( function() {
var $notificationBodyEditor = $( this ),
notificationBodyId = $notificationBodyEditor.attr( 'id' );

currentInstance.initCodemirror( notificationBodyId );
});
};

#1105434

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

The code looks like it expects jQuery to be loaded but for some reason it is not available.

This seems like a probably conflict with some other code, either from a plugin or theme, or custom code added to the site.

The first step to isolate any such conflict is to disable non-Toolset plugins or to switch to a standard theme such as twentyseventeen and see if the problem disappears. If so it is a simple process of elimination to see which plugin, for example, conflicts.

Please try the above and let me know what you find.

#1105461

Guys, there is no $ as jQuery at WordPress... You should either use jQuery, or pass $ as parameter (as you do in other scripts)

#1105470

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+00:00)

It depends how it's instantiated, and you are the only client reporting this issue, so it is a problem specific to your site rather than a problem with the use of jQuery by the Forms plugin generally.

To be able to identify the issue I'll need you to check for conflicts, as described above.

#1108867

Just want to say, I have the same issue..

<added later> For me it's a conflict with the Give plugin's "Stripe gateway" add-on. I'm pulling away now, sorry for butting in.