Функция _load_textdomain_just_in_time была вызвана неправильно [закрыто]Php

Кемеровские программисты php общаются здесь
Ответить
Anonymous
 Функция _load_textdomain_just_in_time была вызвана неправильно [закрыто]

Сообщение Anonymous »

Я получаю ошибку: < /p>

function _load_textdomain_just_in_time была вызвана неправильно.
Перевод нагрузку для домена Themename была запущена слишком рано. Переводы должны быть загружены на действие init или
позже. Пожалуйста, смотрите отладку в WordPress для получения дополнительной информации. (Это сообщение
было добавлено в версии 6.7.0.) В
/home/ahtx685ppwd3/public_html/wp-includes/functions.php On Line 6121.

, но я могу решить это? Все еще не разрешен.public function __construct() {
$this->creote_get_function();
add_action('init', [$this, 'i18n']);
add_action('wp_enqueue_scripts', [$this,'creote_enqueue_scripts']);
$this->creote_add_functions_extra();
add_filter( 'init', array( $this, 'enable_elementor_posttype_supports' ));
add_action('admin_enqueue_scripts', array($this,'creote_cat_meta_postbox_css'));
$this->update_theme_plugin();
$this->section_variable = '453453453534534534'; //
$post_types = array(
'service',
'project',
'post',
'header',
'footer',
);
foreach ($post_types as $post_type) {
add_filter('manage_' . $post_type . '_posts_columns', [ $this, 'creote_id_custom_columns']);
add_action('manage_' . $post_type . '_posts_custom_column', [ $this, 'creote_id_custom_column_data'], 10, 2);
}
}
< /code>

public function i18n() {

load_theme_textdomain( 'creote-addons', get_template_directory() . '/lang' );
}
< /code>

public function creote_add_functions_extra(){
require_once CREOTE_ADDONS_DIR . 'inc/ajax-view-product.php';
if(!class_exists('Redux')) {
require_once CREOTE_ADDONS_DIR . 'redux-framework/redux-framework.php';
}
if (!function_exists('is_plugin_active')) {
include_once(ABSPATH . 'wp-admin/includes/plugin.php');
}
// Make theme available for translation.
load_theme_textdomain( 'creote', get_template_directory() . '/lang' );
require_once CREOTE_ADDONS_DIR . 'inc/plugins/plugins.php';
require_once CREOTE_ADDONS_DIR . 'inc/widgets/widgets.php';
require_once CREOTE_ADDONS_DIR . 'inc/functions/function.php';
require_once CREOTE_ADDONS_DIR . '/update.php';
//require_once CREOTE_ADDONS_DIR . 'inc/theme-panel/theme-panel.php';
add_action('elementor/editor/before_enqueue_scripts', function() {
wp_enqueue_style('creote-widgets-icon', get_template_directory_uri() . '/assets/css/icomoon.css', array() , '1.0.0', 'all');
wp_enqueue_style('creote-widgets-css', CREOTE_ADDONS_URL . '/assets/css/elementor-creote.css', array() , '1.0.0', 'all');
wp_enqueue_style('creote-widgets-icon-two', 'https://cdnjs.cloudflare.com/ajax/libs/ ... wesome.css', false);
});
// Elementor
require_once CREOTE_ADDONS_DIR . 'inc/elementor-code.php';
// vc composer not in folder
if(is_plugin_active('js_composer/js_composer.php')){
require_once CREOTE_ADDONS_DIR . 'inc/shortcode.php';
}
require_once CREOTE_ADDONS_DIR . 'inc/Performance/Performance.php';
}


Подробнее здесь: https://stackoverflow.com/questions/796 ... ncorrectly
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Php»