• This error happens when trying to add, delete new language.

    ( ! ) Warning: Illegal string offset ‘locale’ in C:\xampp\htdocs\iheatone.lt\wp-content\plugins\polylang\include\language.php on line 52
    Call Stack
    # Time Memory Function Location
    1 0.0019 183792 {main}( ) ..\admin.php:0
    2 0.4962 23128808 do_action( ) ..\admin.php:212
    3 0.4962 23129712 call_user_func_array ( ) ..\plugin.php:505
    4 0.4962 23130432 PLL_Settings->languages_page( ) ..\plugin.php:505
    5 0.4980 23162984 PLL_Admin_Model->add_language( ) ..\settings.php:152
    6 0.6666 23187024 PLL_Model->set_term_language( ) ..\admin-model.php:55
    7 0.6666 23187024 PLL_Model->get_language( ) ..\model.php:428
    8 0.6666 23187024 PLL_Model->get_languages_list( ) ..\model.php:233
    9 0.6788 23211232 PLL_Language->__construct( ) ..\model.php:151

    ( ! ) Warning: Illegal string offset ‘rtl’ in C:\xampp\htdocs\iheatone.lt\wp-content\plugins\polylang\include\language.php on line 53
    Call Stack
    # Time Memory Function Location
    1 0.0019 183792 {main}( ) ..\admin.php:0
    2 0.4962 23128808 do_action( ) ..\admin.php:212
    3 0.4962 23129712 call_user_func_array ( ) ..\plugin.php:505
    4 0.4962 23130432 PLL_Settings->languages_page( ) ..\plugin.php:505
    5 0.4980 23162984 PLL_Admin_Model->add_language( ) ..\settings.php:152
    6 0.6666 23187024 PLL_Model->set_term_language( ) ..\admin-model.php:55
    7 0.6666 23187024 PLL_Model->get_language( ) ..\model.php:428
    8 0.6666 23187024 PLL_Model->get_languages_list( ) ..\model.php:233
    9 0.6788 23211232 PLL_Language->__construct( ) ..\model.php:151

    ( ! ) Warning: Illegal string offset ‘locale’ in C:\xampp\htdocs\iheatone.lt\wp-content\plugins\polylang\include\language.php on line 52
    Call Stack
    # Time Memory Function Location
    1 0.0019 183792 {main}( ) ..\admin.php:0
    2 0.4962 23128808 do_action( ) ..\admin.php:212
    3 0.4962 23129712 call_user_func_array ( ) ..\plugin.php:505
    4 0.4962 23130432 PLL_Settings->languages_page( ) ..\plugin.php:505
    5 0.4980 23162984 PLL_Admin_Model->add_language( ) ..\settings.php:152
    6 0.6666 23187024 PLL_Model->set_term_language( ) ..\admin-model.php:55
    7 0.6666 23187024 PLL_Model->get_language( ) ..\model.php:428
    8 0.6666 23187024 PLL_Model->get_languages_list( ) ..\model.php:233
    9 0.7175 23230816 PLL_Language->__construct( ) ..\model.php:151

    ( ! ) Warning: Illegal string offset ‘rtl’ in C:\xampp\htdocs\iheatone.lt\wp-content\plugins\polylang\include\language.php on line 53
    Call Stack
    # Time Memory Function Location
    1 0.0019 183792 {main}( ) ..\admin.php:0
    2 0.4962 23128808 do_action( ) ..\admin.php:212
    3 0.4962 23129712 call_user_func_array ( ) ..\plugin.php:505
    4 0.4962 23130432 PLL_Settings->languages_page( ) ..\plugin.php:505
    5 0.4980 23162984 PLL_Admin_Model->add_language( ) ..\settings.php:152
    6 0.6666 23187024 PLL_Model->set_term_language( ) ..\admin-model.php:55
    7 0.6666 23187024 PLL_Model->get_language( ) ..\model.php:428
    8 0.6666 23187024 PLL_Model->get_languages_list( ) ..\model.php:233
    9 0.7175 23230816 PLL_Language->__construct( ) ..\model.php:151

    ( ! ) Warning: Cannot modify header information – headers already sent by (output started at C:\xampp\htdocs\iheatone.lt\wp-content\plugins\polylang\include\language.php:53) in C:\xampp\htdocs\iheatone.lt\wp-includes\pluggable.php on line 1173
    Call Stack
    # Time Memory Function Location
    1 0.0019 183792 {main}( ) ..\admin.php:0
    2 0.4962 23128808 do_action( ) ..\admin.php:212
    3 0.4962 23129712 call_user_func_array ( ) ..\plugin.php:505
    4 0.4962 23130432 PLL_Settings->languages_page( ) ..\plugin.php:505
    5 0.8074 23301760 PLL_Settings->redirect( ) ..\settings.php:155
    6 0.8438 23280200 wp_redirect( ) ..\settings.php:375
    7 0.8439 23287024 header ( ) ..\pluggable.php:1173

    https://wordpress.org/plugins/polylang/

Viewing 1 replies (of 1 total)
  • Plugin Author Chouby

    (@chouby)

    Hi!

    I fear that your problem comes from you DB. Try repairing the tables (especially wp_terms and wp_term_taxonomy).

Viewing 1 replies (of 1 total)
  • The topic ‘WP 4.0 PHP Warning Error when adding language’ is closed to new replies.