Предупреждение: array_combine() [function.array-объединить]:

Я получаю ошибки при добавлении нового листинга на нашем сайте http://jsgofficespace.co.in/ с помощью использования плагина Estatik.

Я добавил дополнительные поля в ТИПЕ в Свойства, Детали, Удобства и Индийский символ валюты. Но после этого я начал добавлять новое свойство, чем я получаю следующие ошибки

Предупреждение: array_combine() [function.array-объединить]: оба параметра должны иметь как минимум 1 элемент в /home/content/32/3315632/html/jsgofficespae/wp-content/plugins/estatik/classes/class-property.php по линии 570

Предупреждение: невозможно изменить информацию заголовка - заголовки уже отправлены (вывод начался с /home/content/32/3315632/html/jsgofficespae/wp-content/plugins/estatik/classes/class-property.php:570) в /home/content/32/3315632/html/jsgofficespae/wp-includes/option.php в строке 919

Предупреждение: невозможно изменить информацию заголовка - заголовки уже отправлены (вывод начался с /home/content/32/3315632/html/jsgofficespae/wp-content/plugins/estatik/classes/class-property.php:570) в /home/content/32/3315632/html/jsgofficespae/wp-includes/option.php в строке 920

строки 553 до 573 в class-property.php

public static function save( $post_id, $post )
{
    if ( $post->post_type == static::get_post_type_name() ) {
        // Initialize property object.
        $property = new static( $post_id );
        // Get property fields data from the post request.
        $data = filter_input( INPUT_POST, 'property', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY );
        // Save these fields.
        $property->save_fields( $data );

        // Saving custom property data fields (that created manually).
        $keys = filter_input(INPUT_POST, 'es_custom_key', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY);
        $values = filter_input(INPUT_POST, 'es_custom_value', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY);

        $keys = $keys ? $keys : array();
        $values = $values ? $values : array();

        $custom_data = array_combine( $keys, $values );
        $property->save_custom_data( $custom_data );
    }
}

И линия № 917 до 921 в option.php

// The cookie is not set in the current browser or the saved value is newer.
$secure = ( 'https' === parse_url( admin_url(), PHP_URL_SCHEME ) );
setcookie( 'wp-settings-' . $user_id, $settings, time() + YEAR_IN_SECONDS, SITECOOKIEPATH, null, $secure );
setcookie( 'wp-settings-time-' . $user_id, time(), time() + YEAR_IN_SECONDS, SITECOOKIEPATH, null, $secure );
$_COOKIE['wp-settings-' . $user_id] = $settings;

0 ответов

Другие вопросы по тегам