Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

"Call to a member function id() on null" when uploading files to dashboard #40

Open
janherman opened this issue Jan 10, 2020 · 1 comment
Assignees

Comments

@janherman
Copy link

janherman commented Jan 10, 2020

After installing AutoID plugin I get an error message when uploading files to dashboard (and working with those files).

Steps to reproduce:

  1. Install Kirby Plainkit with Composer
  2. Install Kirby AutoID plugin with Composer
  3. Add files section to site.yml blueprint
  4. Try to upload a file to the files section - the error message "Call to a member function id() on null" appears. When you close the message, the file is uploaded eventually.

Screenshot_2020-01-13 Site Title

The error message appears when I:

  • upload something in files section
  • upload something in textarea (through the "paperclip" button)
  • try to rename the file in the panel

This only happens while working in dashboard (site.yml blueprint).

I tried different versions of AutoID plugin. As far as I can tell, this behavior started with version 2.1.0.

@janherman janherman changed the title "Call to a member function id() on null" when uploading files to site "Call to a member function id() on null" when uploading files to dashboard Jan 13, 2020
@janherman janherman reopened this Jan 13, 2020
@bnomei bnomei self-assigned this Feb 3, 2020
@bnomei
Copy link
Owner

bnomei commented Feb 3, 2020

sorry for getting back to you so late. i added support for the site object just now... at least tested for structures... i still need to check about the files.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants