Saltar navegación

[Resuelto] Cannot create content template for Woocommerce product page

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

Problem: When I try to edit a Content Template in the block editor I see a PHP notice and a PHP fatal error:

Notice: register_rest_route was called incorrectly. The REST API route definition for toolset-dynamic-sources/dynamic-sources is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /path/to/site/wp-includes/functions.php on line 5313
 
Fatal error: Uncaught Error: Call to undefined method WPV_Settings::has_ct_assigned_to_cpt_archive() in /path/to/site/wp-content/plugins/types/vendor/toolset/toolset-common/user-editors/editor/screen/gutenberg/backend.php:753 Stack trace: #0 /path/to/site/wp-content/plugins/types/vendor/toolset/toolset-common/user-editors/editor/screen/gutenberg/backend.php(380): Toolset_User_Editors_Editor_Screen_Gutenberg_Backend->has_cpt_usage() #1 /path/to/site/wp-content/plugins/types/vendor/toolset/toolset-common/user-editors/editor/screen/gutenberg/backend.php(280): Toolset_User_Editors_Editor_Screen_Gutenberg_Backend->add_metaboxes() #2 /path/to/site/wp-includes/class-wp-hook.php(292): Toolset_User_Editors_Editor_Screen_Gutenberg_Backend->register_metaboxes_for_gutenberg_compatibility('') #3 /path/to/site/learn in /path/to/site/wp-content/plugins/types/vendor/toolset/toolset-common/user-editors/editor/screen/gutenberg/backend.php on line 753

Solution: This site had a beta version of Toolset Blocks installed. Update to the latest stable versions of all Toolset plugins to resolve these issues.

This support ticket is created hace 4 años, 1 mes. 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por kelvinL-2 hace 4 años, 1 mes.

Asistido por: Christian Cox.

Autor
Mensajes
#2049073

Dear Sir/Madam,

I got the below error when I create a Content Template, I want to customize the Woocommerce individual product page.


Notice: register_rest_route was called incorrectly. The REST API route definition for toolset-views/views/(?P\d+).* is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /home/wp-includes/functions.php on line 5313

Notice: register_rest_route was called incorrectly. The REST API route definition for toolset-dynamic-sources/dynamic-sources is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.) in /home/wp-includes/functions.php on line 5313

Fatal error: Uncaught Error: Call to undefined method WPV_Settings::has_ct_assigned_to_cpt_archive() in /home/wp-content/plugins/types/vendor/toolset/toolset-common/user-editors/editor/screen/gutenberg/backend.php:753 Stack trace: #0 /home/wp-content/plugins/types/vendor/toolset/toolset-common/user-editors/editor/screen/gutenberg/backend.php(380): Toolset_User_Editors_Editor_Screen_Gutenberg_Backend->has_cpt_usage() #1 /home/wp-content/plugins/types/vendor/toolset/toolset-common/user-editors/editor/screen/gutenberg/backend.php(280): Toolset_User_Editors_Editor_Screen_Gutenberg_Backend->add_metaboxes() #2 /home/wp-includes/class-wp-hook.php(292): Toolset_User_Editors_Editor_Screen_Gutenberg_Backend->register_metaboxes_for_gutenberg_compatibility('') #3 /home/learn in /home/wp-content/plugins/types/vendor/toolset/toolset-common/user-editors/editor/screen/gutenberg/backend.php on line 753

I read some articles that it might be caused by WP_MEMORY_LIMIT, I try to increase it to 1024M but no luck.

#2049661

Hello, your site's debug information indicates that a beta version of Toolset Blocks (1.3-beta1) is installed on the site. I suspect that is the main problem here. You should update to use the latest versions of Toolset Types (current 3.4.9) and Toolset Blocks (currently 1.5.1). If this does not solve the Fatal error problem, I'll be glad to take a closer look.

#2053973

My issue is resolved now. Thank you!