Skip Navigation

[Resuelto] Unable to open repeatable field group

This support ticket is created hace 6 años. 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 5 respuestas, tiene 2 mensajes.

Última actualización por marcB-6 hace 6 años.

Asistido por: Nigel.

Autor
Mensajes
#1143009

Hi support!
I'm trying to open a post (service modules) that contains a repeatable field group.
The post is opening, but i keep seeing the 'loading..' animation.
I updated TS plugins and disabled all other plugins.
In console i see 1 error: Failed to load resource: the server responded with a status of 500 (Internal Server Error) that is about this file: /wp-admin/admin-ajax.php:1
Can you help me solving this?
Thanks!

#1143080

Nigel
Supporter

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

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

Hi Marc

If your browser console reports the ajax update returns a 500 error, that means there would have been a PHP error on the server.

Can you check your PHP logs to see what it was?

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 editing the post again and then inspect the log.

Let me know what you find.

Could I also ask you an unrelated question?

We have just begun trialling offering chat support. When you created this thread you should have seen the option to chat immediately with support or to submit the thread as normal, and it seems like you chose to submit as normal.

Do you have any comments?

#1144943

Hi Nigel,
I turned on the debug log but it does not show anything. Can you give me another direction?

Now about the unrelated question. I saw the chat button 1 second to late, that was the only reason i did not click it. Normally i would prefer chat and based on my previous support questions i would say that 80% can be solved via chat. So, it is a very welcome addition to your already outstanding support.

Thanks,
Marc

#1145138

Nigel
Supporter

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

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

Hi Marc

I'm not sure why you couldn't see anything in the logs, I found the following fatal error:

PHP Fatal error:  Uncaught Error: Call to a member function instantiate() on null in /Users/nigelanderson/OnTheGo/Sites/c-marc/wp-content/plugins/types/application/controllers/ajax/handler/repeatable_group.php:543
Stack trace:
#0 /Users/nigelanderson/OnTheGo/Sites/c-marc/wp-content/plugins/types/application/controllers/ajax/handler/repeatable_group.php(488): Types_Ajax_Handler_Repeatable_Group->format_rfg_field_for_response('detail-page-id', 145, Object(Types_Field_Group_Repeatable))
#1 /Users/nigelanderson/OnTheGo/Sites/c-marc/wp-content/plugins/types/application/controllers/ajax/handler/repeatable_group.php(450): Types_Ajax_Handler_Repeatable_Group->get_rfg_item(Object(WP_Post), Object(WP_Post), Object(Types_Field_Group_Repeatable))
#2 /Users/nigelanderson/OnTheGo/Sites/c-marc/wp-content/plugins/types/application/controllers/ajax/handler/repeatable_group.php(144): Types_Ajax_Handler_Repeatable_Group->get_rfg_items(Object(WP_Post), Object(Types_Field_Group_Repeatable))
#3 /Users/nigelanderson/OnTheGo/Sites/c-marc/wp-content/p in /Users/nigelanderson/OnTheGo/Sites/c-marc/wp-content/plugins/types/application/controllers/ajax/handler/repeatable_group.php on line 543

(I'm pasting it here in case anyone searches for the same.)

This occurs even when switching to twentyseventeen and disabling all plugins except Types.

I've escalated this as my colleagues will need to investigate further.

I'll keep you posted.

#1145657

Nigel
Supporter

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

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

Hi Marc

Seemingly something went wrong at some point so there is something stored incorrectly in the database.

You can resolve the problem by

- going to Toolset > Custom Fields and editing the Service module fields group
- in the single service module repeatable group add a new field with the slug detail-page-id (anything, e.g. a single line field)
- save the field group
- edit it again and delete the field with the slug detail-page-id you just added
- save the field group

Now you should be able to edit Service module posts without issue.

#1146523

Yes, that did the trick. Thanks again!