Support » Plugin: WooCommerce » Fatal error when trying to edit pages using WOO 5.6 and PHP 8.0.7

  • Resolved diegosn79

    (@diegosn79)


    We are migrating our site to PHP 8.0.7 but when we make the change we cannot edit the pages any more, due to the error shown below.
    If we use PHP 7.4 the error disappears and we can edit the pages normally.
    Any help is welcome.

    [03-Sep-2021 13:28:55 UTC] PHP Fatal error:  Uncaught TypeError: array_intersect_key(): Argument #1 ($array) must be of type array, string given in /home/www/public_html/wp-includes/rest-api/class-wp-rest-server.php:1436
    Stack trace:
    #0 /home/www/public_html/wp-includes/rest-api/class-wp-rest-server.php(1436): array_intersect_key()
    #1 /home/www/public_html/wp-includes/rest-api/class-wp-rest-server.php(1358): WP_REST_Server->get_data_for_route()
    #2 /home/www/public_html/wp-includes/rest-api/class-wp-rest-server.php(1224): WP_REST_Server->get_data_for_routes()
    #3 /home/www/public_html/wp-includes/rest-api/class-wp-rest-server.php(1140): WP_REST_Server->get_index()
    #4 /home/www/public_html/wp-includes/rest-api/class-wp-rest-server.php(987): WP_REST_Server->respond_to_request()
    #5 /home/www/public_html/wp-includes/rest-api.php(495): WP_REST_Server->dispatch()
    #6 /home/www/public_html/wp-includes/rest-api.php(2832): rest_do_request()
    #7 [internal function]: rest_preload_api_request()
    #8 /home/www/public_html/wp-includes/block-editor.php(444): array_reduce()
    #9 /home/www/public_html/wp-admin/edit-form-blocks.php(68): block_editor_rest_api_preload()
    #10 /home/www/public_html/wp-admin/post.php(187): require('/home/u37708059...')
    #11 {main}
      thrown in /home/www/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1436
    
    Versión de WooCommerce:		5.6.0
    Paquete de la REST API de WooCommerce:		 5.6.0 
    Paquete WooCommerce Blocks:		 5.5.1 
    Paquete del programador de acciones:		 3.2.1
    Paquete de WooCommerce Admin:		 2.5.1
    Versión de WordPress:		5.8
    WordPress multisitio:		–
    Límite de memoria de WordPress:		1 GB
    Modo de depuración de WordPress:		
    Cron de WordPress:		
    Idioma:		es_AR
    Caché externa de objetos:		–
    Entorno del servidor
    Información del servidor:		LiteSpeed
    Versión de PHP:		8.0.7
    PHP post max size:		512 MB
    PHP time limit:		300
    PHP max input vars:		5000
    Versión de cURL:		7.71.0, OpenSSL/1.1.1d
    SUHOSIN Instalado:		–
    Versión de MySQL:		5.5.5-10.3.29-MariaDB-cll-lve
    Tamaño máximo de subida:		512 MB
    De forma predeterminada la zona horaria es GMT:		
    Versión de la base de datos de WordPress:		5.6.0
    Tema
    Nombre:		Flatsome Child
    Versión:		3.0
    Padres Nombre Tema:		Flatsome
    Tema Padres Versión:		3.14.2
    Programador de acciones
    Versión:	3.2.1
    Almacén de datos:	ActionScheduler_DBStore
    

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Sol J. a11n

    (@solstudioim)

    Hi @diegosn79

    Sorry for being late replying to you.

    We are migrating our site to PHP 8.0.7 but when we make the change we cannot edit the pages any more, due to the error shown below.
    If we use PHP 7.4 the error disappears and we can edit the pages normally.
    Any help is welcome.

    This kind of problem is usually caused by a conflict with your theme or with another plugin.

    Could you please do conflict testing and if you can still see the issue consistently?
     
    Please complete the following step:

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.`

    Thread Starter diegosn79

    (@diegosn79)

    Hi!
    Following your instructions, I managed to find the error, the “woo save and share carts” plugin generated a conflict, deleting it and reinstalling it solved the problem.
    Thank you very much for your help.
    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.