Cannot post to forum

Created on 20 January 2025, 5 months ago

Problem/Motivation

When I navigate to /Forums I see them listed, with the message "You are not allowed to post new content in the forum." I have granted generous permissions, no change. I googled this message and see some activity from many years ago. I can post using the Content menu as admin. I can add a comment. None of that content appears on the forum page. Count is 0. Just the error "You are not allowed ..." Thanks in advance for your help.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States woh

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @woh
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    Can you confirm you have the `taxonomy_forums` field on the forum content type?
    Can you confirm the user has access to the 'create forum content' permission from the node module.

    If both of those cases are true, it is possible your field map is corrupt.

  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10
  • πŸ‡ΊπŸ‡ΈUnited States woh

    Gary here. woh is my company, Winds of Hawi. Maybe I should fix that. I do not see a forum content type. I have a "Forum topic" content type: "A forum topic starts a new discussion thread within a forum." That appears to be different than replaying to post. But, I can't even start a new thread. I do not see a taxonomy_forums field. On the Manage Fields page, Forums row, I see machine name "field_forums" and under Field type, Entity reference Reference type: Taxonomy term Vocabulary: Forums.

    In the permissions page, Forums section, I only have "Administer forums" and only assigned to Administrator.

    I hope this helps.

  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    In the permissions page under Node what do you see?
    Can you screenshot the manage fields page for your forum topic content type?

    Thanks

  • πŸ‡ΊπŸ‡ΈUnited States woh

    From the Node section
    Forum topic: Create new content
    Forum topic: Delete any content
    Forum topic: Delete own content
    Forum topic: Delete revisions
    Forum topic: Edit any content
    Forum topic: Edit own content
    Forum topic: Revert revisions
    Forum topic: View revisions
    For troubleshooting I checked all boxes except Anonymous user.
    I can't see a way to insert a screenshot but this is my forum topic manage fields page
    Label / Machine name / Fields type
    Body / body / Test (formatted, long, with summary)
    Comments / comment_forum / Comments
    Forums / field_forums / Entity references, reference type: Taxonomy term, Vocabulary: Forums
    On the Taxonomy page I have two entries, Forums and Tags. Clicking on List terms for the Forum row I see the only forum I still have, status is published. From there I go to Manage permissions an see a list of six rows. I set them same as above, all enabled except for Anonymous user.

  • πŸ‡ΊπŸ‡ΈUnited States woh

    Possibly related??? Especially #4 below.
    On the Status report page, Status Details, I have four errors.
    1. Some modules have database schema updates to install. You should run the database update script immediately.
    2. Mismatched entity and/or field definitions
    The following changes were detected in the entity type and field definitions.
    URL alias
    The URL alias entity type needs to be updated.
    (I have no idea how to fix that.)
    3. The following theme is installed, but it is incompatible with Drupal 11.1.1:
    Bartik
    (Nothing I tried has worked. This is connected to error #1.)
    4. Transaction isolation level
    READ-COMMITTED
    For this to work correctly, all tables must have a primary key. The following table(s) do not have a primary key: drup_forum_index. See the setting MySQL transaction isolation level page for more information.
    (I have read through the instructions but my skill level is not high enough to understand.)
    Appreciate all the help.

  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    4 is not related to the issue you're seeing here - but it does indicate you haven't run database updates (which is what 1 is saying). Can you run `drush updb` or visit update.php to run those updates. One should add an index to the reported forum table and that should resolve 1 and 4.

    For 3, if you're not using bartik you can uninstall it from admin/appearance.

    Did you migrate your site from Drupal 7? When forum module is installed it adds a term reference field named 'taxonomy_forums' - you don't seem to have that field.

  • πŸ‡ΊπŸ‡ΈUnited States woh

    Yes I migrated from Drupal 7. Can I uninstall, fetch a new copy, and install? I mean is that worth doing?

    I'm not sure what you mean by by visit update.php. I opened it with the editor, added va blank line and saved. But why would that trigger a reindex? I recall a touch command in Unix that did magic things like that. I am hosted on GoDaddy and don't seem to have drush. I do have composer, thankfully. As for Bartik, the entry in appearance has no delete option. The other themes do. I tried to follow the linked instructions but keep renning into instructions I don't understand.

  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    Sorry, when I say 'visit update.php' I mean visit `/update.php` in your browser and run the updates. If these won't run check https://www.drupal.org/docs/updating-drupal/troubleshooting-database-upd... β†’ for help

    You can't delete a theme without uninstalling it, you might need to uninstall it first from /admin/appearance/uninstall

    Do you have existing forums/replies? If so I don't think reinstalling is an option.

    But you can recreate adding the field, but that will require a few manual steps. I'm happy to help with that but it might be best to ping me on slack and we can jump in a call - see drupal.org/slack for details on how to join

  • πŸ‡ΊπŸ‡ΈUnited States woh

    Thank you so much for spending time on this.

    When I visit update.php I see a page I end up on when tracking down the error reports. The page seems stuck on item #1, the incompatible theme Bartik. Maybe Drupal does not want me to run updates as long as the bad theme is in the system?

    I found the bartik.info.yml file. What if a change this line
    core_version_requirement: ^9 || ^10
    change 10 to 11. Then maybe i'll get the Uninstall option?

    I want to take you up on your offer to work together. Timezone will be the challenge. I am in Hawaii, HST, GMT-10. Try to get to bed by 8:30 because I get up at 4:30.

    I want to try the database documentation link you sent but might not get to it until the weekend.

    Thanks again,

    Gary

  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    no worries mate, I'm GMT+10, so we almost line up - albeit a day out. @dww is also in your part of the woods and it seems like we've been able to overlap a fair bit TZ wise in the past.

Production build 0.71.5 2024