Forums

[resolved] Arras theme not showing comment form on pages (3 posts)

  1. voidtrance
    Member
    Posted 2 years ago #

    Hi, I am using the Arras theme (1.3.6) and I am having an issue with it not displaying the comment form on my pages. It is displaying that comments are closed, even though, I have made sure that the "Allow comments" setting for the pages is set.
    Comments do work for posts, just not for pages.

    What I have been able to see is that the $post->comments_status variable is empty, which is why the code logic assumes that comments are closed.

    Interestingly enough, if I switch to a different theme, everything is fine.

    Any idea what could be wrong here?
    My site's address is http://voidtrance.net/
    A page that has comments enabled is at http://www.voidtrance.net/?page_id=15

  2. voidtrance
    Member
    Posted 2 years ago #

    The solution was to change line 138 in library/filters.php from:

    if (current_user_can('edit_posts')) {

    to:

    if (current_user_can('edit_posts')) {

  3. tnorberg
    Member
    Posted 2 years ago #

    The solution was to change line 138 in library/filters.php from:

    if (current_user_can('edit_posts')) {

    to:

    if (current_user_can('edit_posts')) {

    this is wrong...
    Should be this:

    The solution was to change line 138 in library/filters.php from:

    if (current_user_can('edit_post')) {

    to:

    if (current_user_can('edit_posts')) {

Topic Closed

This topic has been closed to new replies.

About this Topic