Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Allowed memory size of 134217728 bytes exhausted (tried to allocate 94 bytes) in ..src/LaravelBook/Ardent/Ardent.php #191

Closed
lukrizal opened this issue Apr 8, 2014 · 2 comments

Comments

@lukrizal
Copy link

lukrizal commented Apr 8, 2014

Hi all, I got this error when saving with a file on input. The file is uploaded but I got this in saving process.

Allowed memory size of 134217728 bytes exhausted (tried to allocate 94 bytes) in ...vendor/laravelbook/ardent/src/LaravelBook/Ardent/Ardent.php

The size of the file is just 24kb. And the code is just a typical eloquent fill. The process is the following:

  1. Get the file from the input, moved to storage location and make an insert for its file path in the database.
  2. Update the file id of the target eloquent model.

I'm using "laravelbook/ardent": "v2.4.2"

@freezy-sk
Copy link

recently there were some changes in laravel's master branch which breaks ardent compatibility.
try setting laravel to stable version with this "laravel/framework": "~4.1@stable" and it might help

@jbruni
Copy link

jbruni commented Apr 10, 2014

The change was reverted:

So, no modifications needed to fix the issue anymore. Just composer update to get the latest changes...

igorsantos07 added a commit that referenced this issue Nov 30, 2015
jeremyfrench pushed a commit to fullfatthings/ardent that referenced this issue Dec 23, 2015
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

4 participants