• Hello,

    I enjoy the plugin a lot, very useful! However encountered a bug with attachments.

    Here are the details:

    Plugin: WP Project Manager by weDevs
    Version: 2.6.15
    WordPress Version: 6.7
    PHP Version: 8.3

    Description:
    A comment with an attachment (PDF or ZIP file) – clicking on the attachment link results in a permission error. The link generated for the attachment points to the WP REST API, which leads to a “You have no permission” error message.

    Steps to Reproduce:

    1. Create a new comment in a project with an attachment (PDF or ZIP file).
    2. After submitting the comment, click on the attached file link.
    3. Observe that the link redirects to a URL structured like:javascripthttps://bla.blah/index.php/wp-json/pm/v2/projects/13/files/163/users/3/download
    4. The result is a page displaying:javascript{"code":"errors","message":["You have no permission."],"data":null}
    5. Editing the comment and while in edit mode clicking the attachment icon works correctly, providing a direct link to the file like https://blah.blah/wp-content/uploads/2024/11/something.pdf

    Expected Behavior:
    The attachment link should directly point to the uploaded file’s location (e.g.,?https://blah.blah/wp-content/uploads/...) instead of generating a link that leads to a permission error.

    Actual Behavior:
    The generated link leads to a REST API endpoint, causing a permission error when users try to download the file.

    Additional Notes:

    • This issue appears to be a bug within the attachment handling of comments.
    • The direct link to the file works correctly when accessed through the edit comment functionality.

    Thank you for your attention to this matter. I look forward to your response regarding a potential fix.

Viewing 1 replies (of 1 total)
  • Plugin Support Md. Tanvir Chowdhury

    (@tanvir101)

    Hi @cambabutonono
    Thank you for bringing this issue to our attention. We’ve received your bug report and appreciate the time you’ve taken to provide the details.
    Our team will be reviewing the information to understand the root cause of the problem.
    In the meantime, we would like you to contact us from this link: https://wedevs.com/contact/

    Your feedback is invaluable in helping us improve, and we’re committed to resolving this as quickly as possible.
    Thank you for your patience and understanding.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.