3.0.1-rc.1 panel runs out of memory with file blueprints

Think I may have found a bug with the file blueprints, causing PHP to run out of memory.

I have a files section in my page blueprint that is limited to audio files. I have a files blueprint (called audio.yml) containing this…

title: Audio

accept: audio/mpeg, application/octet-stream, audio/mp3

  - width: 1/2
        type: fields
            label: Title
            type: text
            label: Artist
            type: text
            label: Album
            type: text
            label: Genre
            type: text
            label: Year
            type: text
            label: Composer
            type: text
            label: Duration
            type: text
            label: Track
            type: text
            label: Cover
            type: files

When i pick an image for the cover field, the image picker pops up, i select one just fine but when i try to save the meta in the panel by clicking save on the orange bar, it hangs and tells me this:

Exception: Whoops\Exception\ErrorException
Allowed memory size of 2147483648 bytes exhausted (tried to allocate 1048576 bytes)

I thought It may have been something to do with the plugin i’m working on but i’ve completely removed the plugin from the site and the issue persists.

Im using Kirby 3.0.1-rc.1

I get a different message, but can reproduce an error, could you please create an issue on GitHub?

The form could not be saved
Exception: Error
Maximum function nesting level of ‘256’ reached, aborting!

Sure. i just set up a clean copy of the starter kit and replicated it there too, but i got the memory issue again not the error you got. Environment differences perhaps. I’m running on php 7.1

Issue created…

I changed the title slightly. I think that this has been here before 3.0.1. We will try to fix it for 3.0.2

1 Like

This bug seems to still appear when using a files field in a User blueprint. I’ve created a bug report on github: https://github.com/getkirby/kirby/issues/1556