Skip Navigation

[Resuelto] Unable to add fields to CRED form, JavaScript error in console

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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.

Relevant Documentation:
http://php.net/manual/en/function.mb-convert-case.php

This support ticket is created hace 6 años, 11 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Etiquetado: ,

Este tema contiene 11 respuestas, tiene 2 mensajes.

Última actualización por eun-kenL hace 6 años, 11 meses.

Asistido por: Nigel.

Autor
Mensajes
#598355

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)

any help is appreciated,
thanks.

#598416

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Hi there

It would be helpful to see what the server error is.

If you haven't already, turn on the debug log by editing your wp-config.php file and change the line with WP_DEBUG like so:

define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);

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?

#598430

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

#598514

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: 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.

#598582

Disabling the plugins doesnt work as well, how owuld i give you a copy of the site

#598585

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: 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.

#598844

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Hi there

I just visited your site and saw the issue with the Layout and the CRED cell.

But you didn't have the CRED plugin installed.

I just installed CRED and now you can edit the form in the CRED cell without errors.

#598877

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

#598906

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

Hi there

I found the debug.log file in your wp-content folder and it shows the following error:

PHP Fatal error:  Call to undefined function mb_convert_case() 

mb_convert_case is a standard PHP function (enlace oculto) but your server set-up excludes it for some reason.

You'll need to contact your host and ask them to activate the mb_string module on your server.

#598969

Okay! Ill look into that and let you know if it works. Thanks

#599292

Nigel
Supporter

Idiomas: Inglés (English ) Español (Español )

Zona horaria: Europe/London (GMT+00:00)

OK, keep me posted.

#599458

Hi nigel! its working again, thanks for your help!