Skip to content

Call to undefined method JMCameron\Component\Attachments\Administrator\Model\AttachmentModel::setId() #159

Closed

Description

@Danieldiazi

Hi
I've upgraded from Joomla 3 to Joomla 5, and I've upgraded too this great extension, Attachments, to 4.1.1.

I have an error when in administrator page I go to Attachments and I click on download button (Descargar into the image) any attachment:

Image

And then I see the message: " Call to undefined method JMCameron\Component\Attachments\Administrator\Model\AttachmentModel::setId()"

Image

I upgraded too to Joomla 6 .00 and Attachmets 4.1.6 and the problem persists.

What I've done wrong? Anyone with the same problem?

Activity

  1. parapente commented on Nov 1, 2025

    @parapente
    Collaborator

    @Danieldiazi indeed there seems to be a bug there. I'll have a look at it this weekend. The rest of the extension should work just fine. I have yet to test the extension in Joomla 6 so I cannot guarantee that it will work correctly. It should work just fine for joomla 4 and 5.

  2. Danieldiazi commented on Nov 1, 2025

    @Danieldiazi
    ContributorAuthor

    @parapente I've been using the extension in Joomla versions 4 and 5 for several months, and everything else has worked perfectly. Thank you for such a magnificent job. I've been using Joomla 6 for several days now, and everything seems to be working well except for what I mentioned.

  3. added a commit that references this issue on Nov 1, 2025
    8ccd99e
  4. parapente commented on Nov 1, 2025

    @parapente
    Collaborator

    @Danieldiazi can you please test the one line change I made?

  5. Danieldiazi commented on Nov 1, 2025

    @Danieldiazi
    ContributorAuthor

    @Danieldiazi can you please test the one line change I made?

    Problem solved! It works! Thanks!

    I've modified this file into website: "www/components/com_attachments/src/Helper/AttachmentsHelper.php

    When I click into download button, it creates a new tab into browser and then the file starts to download.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions