Files (songs) are uploaded to the site, while the file (contents) is saved to the database (such were the requirements for the files in the database to be saved). The field where the content is saved is of type "mediumblob". Everything is working fine.
But when you try to download a file that weighs 70MB, you get an error:
"Fatal error: llowed memory size of 268435456 bytes exhausted (tried to allocate 154488859 bytes) in /home/admin/web/mysite.com/public_html/library/Zend/Db/Statement/Pdo.php on line 228"
228 line: return $this->_stmt->execute($params);
That is, when you try to perform a query to the database.
Tried to manipulate the "memory_limit" parameter. Put different values 256M, 512M, 1G, 3072M, but the situation remained the same.
According to the sysadmin who worked with the server and set it up, the server has 16GB of RAM. That is, in fact, it should be enough for him.
How can you more or less determine in detail the cause of the error in order to know what and how to set up to fix it?
Thank.