Fehler in der Kommentar-Funktion: "Bitte gib einen Kommentar ein"

  • Hallo liebe Wordpressler,

    als "Anfänger mit Fortschritte" benutze ich das Theme "Finale" lokal auf meinem FTP-Server zum Ausprobieren und Gestalten. In der Regel sind bei den Wordpress-Themes von Haus aus Grundfunktionen angelegt, die man mit Plugins aufhübschen kann.

    Die grundlegende Kommentar-Funktion funktioniert aber nicht. Wenn ich zum Testen selber einen Kommentar schreiben möchte, kommt folgende Fehlermeldung, nachdem ich auf "Senden" geklickt habe: "Bitte gib einen Kommentar ein".

    So sieht die comment.php in Finale aus:

    <?php
    /* Comment Form */
    $args = array(
    'id_form' => 'comment-form-container',
    'id_submit' => 'submit-btn',
    'title_reply' => __( '','textdomain_finale' ),
    'title_reply_to' => __( 'Leave a Reply to %s','textdomain_finale' ),
    'cancel_reply_link' => __( 'Cancel Reply','textdomain_finale' ),
    'label_submit' => __( 'SENDEN','textdomain_finale' ),

    'comment_field' => '
    <div class="column_360 last">
    <textarea name="message" rows="11" cols="20" class="message rounded" placeholder="Nachricht"></textarea>
    </div>
    <div class="clear"></div>',

    'must_log_in' => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( ) ) ) ) . '</p>',

    'logged_in_as' => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( ) ) ) ) . '</p>',

    'comment_notes_before' => '<p class="comment-notes"></p>',

    'comment_notes_after' => '<p class="form-allowed-tags"></p>',

    'fields' => apply_filters( 'comment_form_default_fields', array(

    'author' => '<div class="column_300">
    <input type="text" name="author" class="name rounded" placeholder="Enter Name" ' . $aria_req . ' />',

    'email' => '<input type="text" name="email" class="email rounded" placeholder="Enter Email" ' . $aria_req . ' />',

    'url' => '<input type="text" name="url" class="subject rounded" placeholder="Enter Website URL" />
    </div>'


    &nbsp;)
    &nbsp;)
    &nbsp;)
    ?>


    <!-- Start Comments -->
    <div class="post_comment m_right_40">
    <h2 class="m_top_40">Kommentare</h2>


    <ol class="Kommentarliste">
    <?php wp_list_comments('type=comment&callback=theme_comment'); ?>
    </ol><br />


    </div>
    <!--end post_comment-->


    <div class="add_post_comment">
    <h2 class="m_top_25">Kommentar hinzufügen</h2>
    <div class="post_comment_form m_top_20 m_bottom_170">

    <?php comment_form( $args ); ?>

    </div><!--end post_comment_form-->
    </div><!--end post-->


    Ist die php.-Datei noch "nackt", fehlt da was? Oder brauche ich ein Plugin, damit die Kommentar-Funktion zum Leben erweckt werden kann?

    Vielen Dank für Eure Unterstützung! :-)

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!