WordPress.org

Ready to get started?Download WordPress

Forums

Stella plugin
[resolved] Warning: Missing argument 2 for Post_Localizer (3 posts)

  1. jumpinsteph
    Member
    Posted 1 year ago #

    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/

  2. Nicolaus.Sommer
    Member
    Posted 1 year ago #

    Found no other solution than to disable warnings :-(
    Need to debug later ...

  3. jumpinsteph
    Member
    Posted 1 year ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic