• Resolved voidtrance

    (@voidtrance)


    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 https://voidtrance.net/
    A page that has comments enabled is at https://www.voidtrance.net/?page_id=15

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter voidtrance

    (@voidtrance)

    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’)) {

    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‘)) {

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Arras theme not showing comment form on pages’ is closed to new replies.