Version: 3.4.3 Reporter: meslater —
This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report
When PHP memory limit is set to -1 for unlimited. Uploading a JPEG or PNG causes an exhaustive memory panic. It is falsely imposing a memory limit when one doesn’t exist. It is interpreting that PHP setting incorrectly as we were unable to upload a 3k file.
The server has more than 2gig of ram available during the whole process so it could not have exhausted memory. Totally recreate-able in 3.3.2
Happens in file manager also happens in content manager.
\system\ee\legacy\libraries\Image_lib.php
line: 1246 for imagecreatefromjpeg($path); that dies
same area for PNG as well.
No known solution at this point we had to hardcode the PHP memory limit.
In system/ee/legacy/libraries/Upload.php
replace:
if (function_exists('memory_get_usage') && memory_get_usage() && ini_get('memory_limit') != '')
with:
if (function_exists('memory_get_usage') && memory_get_usage() && ini_get('memory_limit') != FALSE)
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```