No Code Attached Yet
avatar mipri25
mipri25
18 Oct 2021

Steps to reproduce the issue

With Joomla! 4.0.3 and a PHP configuration including
memory_limit=-1
try to upload an image using the Media Manager (Content -> Media in the Backend).

Expected result

Since according to the PHP dokumentation "memory_limit=-1" means "there is no limit", the upload should work.

Actual result

Upload is rejected with error "This file is too large to upload."

System information (as much as possible)

Joomla! 4.0.3 Stable [ Furaha ] 12-September-2021 10:39 GMT
PHP-Version 7.4.24
Apache Webserver

avatar mipri25 mipri25 - open - 18 Oct 2021
avatar joomla-cms-bot joomla-cms-bot - change - 18 Oct 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Oct 2021
avatar brianteeman
brianteeman - comment - 18 Oct 2021

But what are the important settings
post_max_size
upload_max_filesize

avatar mipri25
mipri25 - comment - 18 Oct 2021

They are both set to 64M, and the error occurs even when uploading tiny files of about 10k.

I also could workaround the problem by adding
ini_set('memory_limit','256M');
to administrator/index.php

avatar brianteeman
brianteeman - comment - 19 Oct 2021

There is a bug when memory limit is set to -1. Working on a fix

avatar brianteeman
brianteeman - comment - 19 Oct 2021

Please test #35854

avatar alikon alikon - change - 19 Oct 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-10-19 12:17:12
Closed_By alikon
avatar alikon alikon - close - 19 Oct 2021
avatar alikon
alikon - comment - 19 Oct 2021

closing as we have a pr #35854

avatar richard67 richard67 - change - 13 Nov 2021
Status Closed New
Closed_Date 2021-10-19 12:17:12
Closed_By alikon
avatar richard67 richard67 - reopen - 13 Nov 2021
avatar richard67
richard67 - comment - 13 Nov 2021

Re-opening as the PR has been closed.

avatar richard67
richard67 - comment - 13 Nov 2021

Closing as having a new pull request. Please test #36023 . Thanks in advance.

avatar richard67 richard67 - change - 13 Nov 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-11-13 22:35:15
Closed_By richard67
avatar richard67 richard67 - close - 13 Nov 2021

Add a Comment

Login with GitHub to post a comment