[Résolu] Unable to add fields to CRED form, JavaScript error in console
Ce fil est résolu. Voici une description du problème et la solution proposée.
Problem:
When editing a CRED form it is not possible to insert fields, the following error appears in the JS console:
/wp-admin/admin-ajax.php?action=cred_ajax_Forms&_do_=getPostFields
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
In the PHP logs the error responsible was:
PHP Fatal error: Call to undefined function mb_convert_case()
Solution:
The standard mb_string PHP module needs to be activated on the server, consult host provider if required.
This support ticket is created Il y a 6 années et 11 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.
Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.
I had a cred form but after altering my some post fields from the post type my cred form doesnt display on the front end anymore and when i edit the form it is unable to get post fields.
this is the error in the console when editing:
(url)/wp-admin/admin-ajax.php?action=cred_ajax_Forms&_do_=getPostFields
Failed to load resource: the server responded with a status of 500 (Internal Server Error)
That will create a debug.log file in your wp-content directory which you can examine in any text editor. Try visiting the same page where you observe the problem and then inspect the log.
Could you then paste the error you see in the log here?
I did that but when i visit the cred post form edit page the same error shows on the chrome console but no debug.log file appears in the wp-content directory
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
OK, could you try disabling all non-Toolset plugins and then try editing your CRED form again?
Also try switching theme to twentyseventeen if that doesn't help.
There may be a conflict with some 3rd-party code which these steps will confirm. If disabling plugins fixes the problem you can isolate the cause by re-enabling them one-by-one and re-testing.
If none of that helps then I may need to get a copy of your site for testing, but I'll wait to hear back from you first.
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
Let me set this up to get details from you.
I will mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site, even though I don't intend to make any changes other than to temporarily add a backup plugin to take a snapshot of the site.
Can you also confirm the url of where I can see the problem.
Something weird happened, i tried to uninstall and install it again but i couldnt upload the plugin. I just saw that you were able to install the plugin but are you able to add post fields? On my computer i am still unable to add post fields and the form still does not show