Question

Error con el admin-ajax.php

Posted July 6, 2020 1.8k views
NginxPHPWordPress

Hola amigos ya tengo todo mi Wordpress ejecutándose en Ubuntu 18.04 con Nginx, PHP. El error me muestra al intentar importar algo por ejemplo mi tema y se queda cargando sin ningún efecto y verificando en la consola de chrome sale el error GET (midominio.com) 500 (Internal Server Error).

El error: http://prntscr.com/tckpk7

Espero su ayuda

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
2 answers

Hi there @Lashjg,

It sounds like that you might be hitting a limit in Nginx or PHP.

I would recommend checking your Niginx error logs for more information on the exact error:

tail -100 /var/log/nginx/error.log

Also you could check your PHP error log as well.

Feel free to share the error here so that I could try to advise you further.

Regards,
Bobby

Hola gracias por tu respuesta, ejecuté el comando y me arrojo lo siguiente

2020/07/06 06:49:01 [error] 12340#12340: *10331 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Class 'DOMDocument' not found in /var/www/html/wordpress/wp-content/themes/martfury/inc/mega-menu/class-menu-edit.php:67
Stack trace:
#0 /var/www/html/wordpress/wp-includes/class-wp-walker.php(144): Martfury_Mega_Menu_Walker_Edit->start_el('', Object(WP_Post), 0, Object(stdClass))
#1 /var/www/html/wordpress/wp-includes/class-wp-walker.php(244): Walker->display_element(Object(WP_Post), Array, 0, 0, Array, '')
#2 /var/www/html/wordpress/wp-includes/nav-menu-template.php(584): Walker->walk(Array, 0, Object(stdClass))
#3 /var/www/html/wordpress/wp-admin/includes/ajax-actions.php(1525): walk_nav_menu_tree(Array, 0, Object(stdClass))
#4 /var/www/html/wordpress/wp-includes/class-wp-hook.php(287): wp_ajax_add_menu_item('')
#5 /var/www/html/wordpress/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#6 /var/www/html/wordpress/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#7 /var/www/html/wordpress/wp-admin/admin-ajax.php(175): do_action('w" while reading response header from upstream, client: 181.67.138.65, server: luvi.com.pe, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "www.luvi.com.pe", referrer: "https://www.luvi.com.pe/wp-admin/nav-menus.php?menu=16"
2020/07/06 06:49:38 [error] 12340#12340: *10331 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Class 'DOMDocument' not found in /var/www/html/wordpress/wp-content/themes/martfury/inc/mega-menu/class-menu-edit.php:67
Stack trace:
#0 /var/www/html/wordpress/wp-includes/class-wp-walker.php(144): Martfury_Mega_Menu_Walker_Edit->start_el('', Object(WP_Post), 0, Object(stdClass))
#1 /var/www/html/wordpress/wp-includes/class-wp-walker.php(244): Walker->display_element(Object(WP_Post), Array, 0, 0, Array, '')
#2 /var/www/html/wordpress/wp-includes/nav-menu-template.php(584): Walker->walk(Array, 0, Object(stdClass))
#3 /var/www/html/wordpress/wp-admin/includes/ajax-actions.php(1525): walk_nav_menu_tree(Array, 0, Object(stdClass))
#4 /var/www/html/wordpress/wp-includes/class-wp-hook.php(287): wp_ajax_add_menu_item('')
#5 /var/www/html/wordpress/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#6 /var/www/html/wordpress/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#7 /var/www/html/wordpress/wp-admin/admin-ajax.php(175): do_action('w" while reading response header from upstream, client: 181.67.138.65, server: luvi.com.pe, request: "POST /wp-admin/admin-ajax.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "www.luvi.com.pe", referrer: "https://www.luvi.com.pe/wp-admin/nav-menus.php?menu=16"
2020/07/06 07:35:08 [error] 12340#12340: *10741 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Class 'XMLReader' not found in /var/www/html/wordpress/wp-content/plugins/soo-demo-importer/includes/class-wxr-importer.php:124
Stack trace:
#0 /var/www/html/wordpress/wp-content/plugins/soo-demo-importer/includes/class-wxr-importer.php(332): WXR_Importer->get_reader('/var/www/html/w...')
#1 /var/www/html/wordpress/wp-content/plugins/soo-demo-importer/soo-demo-importer.php(271): WXR_Importer->import('/var/www/html/w...')
#2 /var/www/html/wordpress/wp-content/plugins/soo-demo-importer/soo-demo-importer.php(560): Soo_Demo_Importer->import_content('/var/www/html/w...')
#3 /var/www/html/wordpress/wp-includes/class-wp-hook.php(287): Soo_Demo_Importer->ajax_import('')
#4 /var/www/html/wordpress/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
#5 /var/www/html/wordpress/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#6 /var/www/html/wordpress/wp-admin/admin-ajax.php(175): do_action('wp_ajax_soodi_i...')
#7 {main}
  thrown in /var/www/htm" while reading response header from upstream, client: 181.67.138.65, server: luvi.com.pe, request: "GET /wp-admin/admin-ajax.php?action=soodi_import&type=content&_wpnonce=a0bfbd52ab HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.2-fpm.sock:", host: "www.luvi.com.pe", referrer: "https://www.luvi.com.pe/wp-admin/themes.php?page=import-demo-content&step=2"
edited by MattIPv4