• Resolved jg77merten

    (@jg77merten)


    I’ve got a Fatal error. (full description is below)
    public function save_font( $request )
    $rio_vizual_font = $params[‘blocks_font’][‘font’];
    after this string $rio_vizual_font is null



    NOTICE: PHP message: PHP Fatal error: Uncaught TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in /var/www/html/wp-content/plugins/riovizual/includes/process-styles/class-rio-viz-style-processor.php:158

    Stack trace: 37967eedec574d9497ef013ed6149f2d wp March 07, 2024 at 15:17 (UTC+1:00) #0 /var/www/html/wp-content/plugins/riovizual/includes/process-styles/class-rio-viz-style-processor.php(158): array_keys(NULL) 37967eedec574d9497ef013ed6149f2d wp March 07, 2024 at 15:17 (UTC+1:00) #1 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1193): Rio_Viz_Style_Processor->save_font(Object(WP_REST_Request)) 37967eedec574d9497ef013ed6149f2d wp March 07, 2024 at 15:17 (UTC+1:00) #2 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(1041): WP_REST_Server->respond_to_request(Object(WP_REST_Request), ‘/rio-vizual/v2/…’, Array, NULL) 37967eedec574d9497ef013ed6149f2d wp March 07, 2024 at 15:17 (UTC+1:00) #3 /var/www/html/wp-includes/rest-api/class-wp-rest-server.php(431): WP_REST_Server->dispatch(Object(WP_REST_Request)) 37967eedec574d9497ef013ed6149f2d wp March 07, 2024 at 15:17 (UTC+1:00) #4 /var/www/html/wp-includes/rest-api.php(424): WP_REST_Server->serve_request(‘/rio-vizual/v2/…’) 37967eedec574d9497ef013ed6149f2d wp March 07, 2024 at 15:17 (UTC+1:00) #5 /var/www/html/wp-includes/class-wp-hook.php(324): rest_api_loaded(Object(WP)) 37967eedec574d9497ef013ed6149f2d wp March 07, 2024 at 15:17 (UTC+1:00) #6 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) 37967eedec574d9497ef013ed6149f2d wp March 07, 2024 at 15:17 (UTC+1:00) #7 /var/www/html/wp-includes/plugin.php(565): WP_Hook->do_action(Array) 37967eedec574d9497ef013ed6149f2d wp March 07, 2024 at 15:17 (UTC+1:00) #8 /var/www/html/wp-includes/class-wp.php(418): do_action_ref_array(‘parse_request’, Array) 37967eedec574d9497ef013ed6149f2d wp March 07, 2024 at 15:17 (UTC+1:00) #9 /var/www/html/wp-includes/class-wp.php(813): WP->parse_request(”) 37967eedec574d9497ef013ed6149f2d wp March 07, 2024 at 15:17 (UTC+1:00) #10 /var/www/html/wp-includes/functions.php(1336): WP->main(”) 37967eedec574d9497ef013ed6149f2d wp March 07, 2024 at 15:17 (UTC+1:00) #11 /var/www/html/wp-blog-header.php(16): wp() 37967eedec574d9497ef013ed6149f2d wp March 07, 2024 at 15:17 (UTC+1:00) #12 /var/www/html/index.php(17): require(‘/var/www/html/w…’) 37967eedec574d9497ef013ed6149f2d wp March 07, 2024 at 15:17 (UTC+1:00) #13 {main} 37967eedec574d9497ef013ed6149f2d wp March 07, 2024 at 15:17 (UTC+1:00) thrown in /var/www/html/wp-content/plugins/riovizual/includes/process-styles/class-rio-viz-style-processor.php on line 158

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jg77merten

    (@jg77merten)

    I’ve forgot to add

    error is on line 158
    $keys = array_keys( $rio_vizual_font );
    we can not use array_keys function with null

    Thread Starter jg77merten

    (@jg77merten)

    The main problem that the function save_font calls even if there is no riovizual table block on the page. In this case, we got a problem with
    ?$rio_vizual_font = null

    Plugin Support Manjurul Islam

    (@manjurulislam)

    Hi @jg77merten,

    Thank you for reaching out to RioVizual.

    We are glad to inform you that our developer team has already fixed the issue and released a new version. Please update the plugin to the latest version.

    Thanks and have a wonderful day!

    Kind Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Fatal error: Uncaught TypeError: array_keys():’ is closed to new replies.