[Howto] Geo Location Base Update

alt=
@nomoo
8 years ago
12 posts
Hello. I've tried to update GeoBase and it seems a bit confusing to me:
1. I have to update
in php.ini:
upload_max_filesize = 100M
post_max_size = 100M
memory_limit = 100M
in nginx.conf
client_max_body_size 100m;

After that i can upload a file up to 25MB ( settings divided by 4 ). But now the file cannot be saved on server side.

2. in modules/jrCore/contrib/meter/server.php :
i had to tune up this code not to check size limit during Geo Base update:
elseif (isset($size) && $size > $this->sizeLimit) {
return array('error' => 'File is too large. size(' . $size . ') size_limit(' . $this->sizeLimit . ')');
}

Maybe I should read more docs.. Anyway. Here is a howto for geobase update.
updated by @nomoo: 03/08/17 04:15:57PM
brian
@brian
8 years ago
10,144 posts
nomoo:
2. in modules/jrCore/contrib/meter/server.php :
i had to tune up this code not to check size limit during Geo Base update:
elseif (isset($size) && $size > $this->sizeLimit) {
return array('error' => 'File is too large. size(' . $size . ') size_limit(' . $this->sizeLimit . ')');
}
Maybe I should read more docs.. Anyway. Here is a howto for geobase update.

Yeah you don't have to change anything in there - that value is controlled in the Core -> Quota Config -> Max Upload Size - set it for all your quotas to the highest and it should be good.

As the admin though I don't think you should be running into that limit in the ACP - I will check that out.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags