News:

Dear forum visitors, if the support forum is not available, please try again a few minutes later. Thanks!

Main Menu
Support-Forum

Fatal memory error keeps occuring

Started by daniel222, 17.08.2016 09:20:27

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

daniel222

Hello everyone!

I'm having trouble with a certain memory error that keeps coming up. My website has a large number of downloadable images (~5000) and also offers some larger files, i.e. zip files of 1 - 5 GB that allow the user to download different collections of the other files.

My initial problem was that the larger files stopped working a while ago.

I started receiving the following error:

Fatal error: Out of memory (allocated 162267136) (tried to allocate 28348 bytes) in .../administrator/components/com_jdownloads/helpers/jdownloadshelper.php on line 992


I tried several things to solve this error. I tried commenting out line 992, I tried several different configurations in the file settings, I modified my php.ini file (as described in the JDownloads FAQs), etc.

The result of this was that the folder structure broke and JDownloads got a bit confused recognising/not recognising new uploads etc.

After a while of trying out different things, JDownloads now accepts the correct folder structure again, but the uploads are not accepted and the memory error on line 992 is popping up again (I un-commented it again).

Any ideas how to solve this would be highly appreciated.
  •  

Arno

#1
Hi,
QuoteMy initial problem was that the larger files stopped working a while ago.
I started receiving the following error:
Fatal error: Out of memory (allocated 162267136) (tried to allocate 28348 bytes) in .../administrator/components/com_jdownloads/helpers/jdownloadshelper.php on line 992

The line 992 has to do with the thumbnail creation for an uploaded image.
In the example above required this process more then 162 MB. So you should try it with 256 MB, 512 MB or more (when possible) in your php.ini. Restart afterwards the server. When this not helped contact your hoster.

But you should never try to change the script self or mark lines as comment! We can only give support for original installed versions.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •  

daniel222

Thanks for your answer! We removed the comment slashes from line 992 again before posting, so we are running the unmodified version.

We have now called our host, 1&1, and asked them to reboot the server. But we still get the exact same error:

Fatal error: Out of memory (allocated 162267136) (tried to allocate 28348 bytes) in /.../administrator/components/com_jdownloads/helpers/jdownloadshelper.php on line 992


My initial thought was that the reboot maybe set the php.ini files to the prior limit of 40M, but still both php.ini files (the one in the root and the one in the administrator folder) are as I have configured them:

file_uploads = true
upload_max_filesize = 7G
post_max_size = 10G
memory_limit = -1
max_execution_time = 32400
max_input_time = 32400
session.gc_maxlifetime = 32400
  •  

Arno

Quotefile_uploads = true
upload_max_filesize = 7G
post_max_size = 10G
memory_limit = -1
max_execution_time = 32400
max_input_time = 32400
session.gc_maxlifetime = 32400

I think that this tried settings are not allowed by 1&1. See pic from the error description on the 1&1 Help Center page below (sorry could not find an english page). Maybe should you contact the 1&1 support directly.

Fact is, that this is not a bug in jDownloads and only a memory problem from your server settings.

[gelöscht durch Administrator]
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!
  •