Skip Navigation

[Resuelto] Fatal Error trying to use WP-cli

This support ticket is created hace 2 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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Este tema contiene 5 respuestas, tiene 2 mensajes.

Última actualización por Minesh hace 2 años, 11 meses.

Asistido por: Minesh.

Autor
Mensajes
#2241929

I am trying to:
Use WP-cli, if I have the Toolset Views plugin activated I get a Fatal error in the console and I can't use WP-cli.

[root@sd-1522309-l /home/ricciard/public_html] # wp plugin list
PHP Fatal error: Uncaught Error: Class 'WPV_Api_Handler_Is_views_lite' not found in /home/ricciard/public_html/wp-content/plugins/wp-views/application/controllers/api.php:207
Stack trace:
#0 /home/ricciard/public_html/wp-includes/class-wp-hook.php(303): WPV_Api->__call('callback_is_vie...', Array)
#1 /home/ricciard/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters(false, Array)
#2 /home/ricciard/public_html/wp-content/plugins/wp-views/inc/wpv-plugin.class.php(963): apply_filters('wpv_is_views_li...', false)
#3 /home/ricciard/public_html/wp-includes/class-wp-hook.php(303): WP_Views_plugin->wpv_register_assets('')
#4 /home/ricciard/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
#5 /home/ricciard/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#6 /home/ricciard/public_html/wp-settings.php(578): do_action('init')
#7 enlace oculto): require('/home/ricciard/...')
#8 enlace oculto): WP_CLI in /home/ricciard/public_html/wp-content/plugins/wp-views/application/controllers/api.php on line 207
Fatal error: Uncaught Error: Class 'WPV_Api_Handler_Is_views_lite' not found in /home/ricciard/public_html/wp-content/plugins/wp-views/application/controllers/api.php:207
Stack trace:
#0 /home/ricciard/public_html/wp-includes/class-wp-hook.php(303): WPV_Api->__call('callback_is_vie...', Array)
#1 /home/ricciard/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters(false, Array)
#2 /home/ricciard/public_html/wp-content/plugins/wp-views/inc/wpv-plugin.class.php(963): apply_filters('wpv_is_views_li...', false)
#3 /home/ricciard/public_html/wp-includes/class-wp-hook.php(303): WP_Views_plugin->wpv_register_assets('')
#4 /home/ricciard/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
#5 /home/ricciard/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#6 /home/ricciard/public_html/wp-settings.php(578): do_action('init')
#7 enlace oculto): require('/home/ricciard/...')
#8 enlace oculto): WP_CLI in /home/ricciard/public_html/wp-content/plugins/wp-views/application/controllers/api.php on line 207
Error: Ha habido un error crítico en esta web.Aprende más sobre el diagnóstico de WordPress. Ha habido un error crítico en esta web.
[root@sd-1522309-l /home/ricciard/public_html]

#2243163

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please make sure that all Toolset requirements especially "mbstring" is enabled on your server?
- https://toolset.com/toolset-requirements/

#2243513

They are:
enlace oculto

#2244159

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Can you please tell me what PHP version you are using while you run the WP CLI commands?

Does it uses the same version and with that PHP version is all server requirements are setup?
- https://toolset.com/toolset-requirements/

#2244267

I checked, it's not, it's PHP7.3 no clue how to enable mbstring or eval() there.

#2244357

Minesh
Supporter

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

You will require to edit php.ini file for the php version you are using and make sure the server requirement is configured accordingly.

More info:
=> enlace oculto