Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there @desrosj

    I tried deactivating and reactivating my plugins but, it did not fix the problem. I’m still getting

    Warning: array_intersect_key(): Expected parameter 1 to be an array, string given in /home/customer/www/esculenteats.com/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1411.
    
    Thats the line:
    
    

    if ( isset( $callback[‘args’] ) ) {
    $endpoint_data[‘args’] = array();

    foreach ( $callback[‘args’] as $key => $opts ) {
    $arg_data = array_intersect_key( $opts, $allowed_schema_keywords );
    $arg_data[‘required’] = ! empty( $opts[‘required’] );

    $endpoint_data[‘args’][ $key ] = $arg_data;
    }
    }`

    Please HELP!

    Hi there @dd32.

    I tried deactivating and reactivating my plugins but, it did not fix the problem. I’m still getting

    Warning: array_intersect_key(): Expected parameter 1 to be an array, string given in /home/customer/www/esculenteats.com/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1411.
    
    Thats the line:
    
    

    if ( isset( $callback[‘args’] ) ) {
    $endpoint_data[‘args’] = array();

    foreach ( $callback[‘args’] as $key => $opts ) {
    $arg_data = array_intersect_key( $opts, $allowed_schema_keywords );
    $arg_data[‘required’] = ! empty( $opts[‘required’] );

    $endpoint_data[‘args’][ $key ] = $arg_data;
    }
    }`

    Please HELP!

    Hi @davide1991,

    Did you get this resolved? I am currently dealing with the same issue and have no idea on how to fix it.

Viewing 3 replies - 1 through 3 (of 3 total)