chris.paschen
Chris Paschen
On a number of entries where we have some files uploaded to Amazon we are getting the following error message:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 76823192 bytes) in /home/.../public_html/components/com_fabrik/libs/amazons3/S3.php on line 1274
Although I thought that it might have something to do with the file size of the file uploaded to AmazonS3, there are other entries with larger file sizes that are working properly.
This just started happening on entries that were working fine until sometime in the past week. (no data has been changed in the fabrik items and the files haven't changed on S3).
Also, if I comment out line 1274, making that section of the s3.php file into this:
(i.e. commenting out "$this->response->body .=$data;")
Then things 'seem' to work properly. We can access the item and the images and video that is stored on S3 is working fine.
S3 integration is way out of my coding experience, so I'm not at all sure what is going on here.
Just wondering if anyone else has seen anything like this.
NOTE: I'd share the link to the page; however, these are restricted access (pay only) files, so I can't share the links :-(
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 76823192 bytes) in /home/.../public_html/components/com_fabrik/libs/amazons3/S3.php on line 1274
Although I thought that it might have something to do with the file size of the file uploaded to AmazonS3, there are other entries with larger file sizes that are working properly.
This just started happening on entries that were working fine until sometime in the past week. (no data has been changed in the fabrik items and the files haven't changed on S3).
Also, if I comment out line 1274, making that section of the s3.php file into this:
/**
* CURL write callback
*
* @param resource &$curl CURL resource
* @param string &$data Data
* @return integer
*/
private function __responseWriteCallback(&$curl, &$data) {
if ($this->response->code == 200 && $this->fp !== false)
return fwrite($this->fp, $data);
else
// $this->response->body .= $data;
return strlen($data);
}
* CURL write callback
*
* @param resource &$curl CURL resource
* @param string &$data Data
* @return integer
*/
private function __responseWriteCallback(&$curl, &$data) {
if ($this->response->code == 200 && $this->fp !== false)
return fwrite($this->fp, $data);
else
// $this->response->body .= $data;
return strlen($data);
}
(i.e. commenting out "$this->response->body .=$data;")
Then things 'seem' to work properly. We can access the item and the images and video that is stored on S3 is working fine.
S3 integration is way out of my coding experience, so I'm not at all sure what is going on here.
Just wondering if anyone else has seen anything like this.
NOTE: I'd share the link to the page; however, these are restricted access (pay only) files, so I can't share the links :-(