Post by ukdenny » Sun Jul 26, 2020 3:59 am

For some reason I can no longer upload files in the download section in version 2.3.02 I get the following error, could anyone put me right please. (the file is only 256M)
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
OK
<br />
<b>Fatal error</b>: Allowed memory size of 67108864 bytes exhausted (tried to allocate 269306099 bytes) in <b>/home/mydreams/public_html/onlinesitehub.com/bandbytes/admin/controller/catalog/download.php</b> on line <b>479</b><br />

New member

Posts

Joined
Sun May 17, 2020 9:42 pm

Post by by mona » Sun Jul 26, 2020 4:50 am

As the error states, you have exceeded your memory.

a. Do you use huge images?
It is not a good idea. You should always use small and compressed images
use images of the correct 'ish' size like 500 x 500 and something like tinypng.com to compress them if you have nothing else.
You want images bytes not MB .. you should be able to get images around 100kb

b. You check with your server host what you are allowed and change your php.ini

Ideally you want to do a. and if necessary b.

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


Spinning Social : Links : Menus : Payments : Socials : Ads : Screen Backgrounds : Galleries : Headers : Banners : Promos


Active Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by ukdenny » Sun Jul 26, 2020 5:51 am

The uploads are video's that are .zip the one I an trying to upload is 256M
I have access to my php.ini but am unsure of configuration
Attached screenshot of php.ini

Attachments

php.iniScreenshot.png

php.iniScreenshot.png (133.12 KiB) Viewed 355 times


New member

Posts

Joined
Sun May 17, 2020 9:42 pm

Post by by mona » Sun Jul 26, 2020 4:57 pm

check with your host what you are allowed

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


Spinning Social : Links : Menus : Payments : Socials : Ads : Screen Backgrounds : Galleries : Headers : Banners : Promos


Active Member

Posts

Joined
Mon Jun 10, 2019 9:31 am
Who is online

Users browsing this forum: No registered users and 3 guests