Support » Plugin: Stella plugin » Warning: Missing argument 2 for Post_Localizer

  • Resolved jumpinsteph

    (@jumpinsteph)


    Hi !
    I’ve just installed stella plugin, and when I publish a post, here is what I’ve got as a warning :

    Warning: Missing argument 2 for Post_Localizer::localize_title() in /home/usr/patriciaschwarz/public_html/wp-content/plugins/stella-free/classes/class-post-localizer.php on line 186

    What do I need to do ?
    Thank you

    http://wordpress.org/extend/plugins/stella-free/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Found no other solution than to disable warnings 🙁
    Need to debug later …

    Here is the answer that the support gave me :

    As a quick solution try to change function “localize title” in stella-free/classes/class-post-localizer.php to this:

    ` function localize_title( $title, $id = ”){
    if( ” == $id) return ”;
    if ( STELLA_CURRENT_LANG != STELLA_DEFAULT_LANG ){
    $title_new = get_post_meta( $id, ‘_title-‘ . STELLA_CURRENT_LANG, true );
    if ( ” != $title_new || ! $this->use_default_lang_values )
    return $title_new;
    }
    return $title;
    }`

    and it seems to work

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Warning: Missing argument 2 for Post_Localizer’ is closed to new replies.