Advertisement:

Author Topic: location not show on installation  (Read 811 times)

creat15

  • Full Member
  • ***
  • Posts: 218
location not show on installation
« on: June 03, 2018, 09:19:12 am »
hello sir

i want to ask about location not show on installation

i use osclass version 3.0.2, i try to new installation but i stuck on choose location (the location can not show)

this my screenshoot :

https://2.bp.blogspot.com/-vizTLA_589s/WxN6zC14c2I/AAAAAAAABx0/Em_PMg7Ih0IoFIMuWR-nZZApIDqnKnNQgCLcBGAs/s1600/Screenshot_6.jpg

i try to add geo ID-Indonesia.sql on databasse but not work to (the location not show)

please help me, how to show the location or skip this question for location.

thanks before

dev101

  • Osclass Hero
  • Hero Member
  • *
  • Posts: 2155
  • osclass.work
Re: location not show on installation
« Reply #1 on: June 03, 2018, 12:32:22 pm »
Unfortunately, because of several factors, it is no longer possible to install old Osclass versions (and locations). I have noticed and mentioned that here: https://github.com/osclass/Osclass/issues/2238 (it is highly unlikely that it will happen again because now we have a skip option).

Geo API is changed, so it no longer works like that, and some other things as well. You may try to manually update installation code from latest versions, but there's a lot you have to change, and almost no one will have much interest in doing that I'm afraid; using old versions is highly discouraged because of vulnerabilities and bugs, except for testing and special cases.

Anyway, to skip location step, open install.js file in \oc-includes\osclass\installer\ and remove this code:

Code: [Select]
    if( $('#skip-location-h').val() == 0 ) {
        if($("#d_country span").length < 1) {
            $("#d_country").css('border', '2px solid red');
            num_error = num_error + 1;
        }
    } else {
        if( !$('#skip-location').attr('checked') ) {
            num_error = num_error + 1;
        }
    }

Repeat installation procedure and you'll be able to click on next step.
You may try later importing location .sql file if you have it and see if that still works, as automated installation and download no longer works.

Regards
dev101

creat15

  • Full Member
  • ***
  • Posts: 218
Re: location not show on installation
« Reply #2 on: June 04, 2018, 08:56:14 am »
Unfortunately, because of several factors, it is no longer possible to install old Osclass versions (and locations). I have noticed and mentioned that here: https://github.com/osclass/Osclass/issues/2238 (it is highly unlikely that it will happen again because now we have a skip option).

Geo API is changed, so it no longer works like that, and some other things as well. You may try to manually update installation code from latest versions, but there's a lot you have to change, and almost no one will have much interest in doing that I'm afraid; using old versions is highly discouraged because of vulnerabilities and bugs, except for testing and special cases.

Anyway, to skip location step, open install.js file in \oc-includes\osclass\installer\ and remove this code:

Code: [Select]
    if( $('#skip-location-h').val() == 0 ) {
        if($("#d_country span").length < 1) {
            $("#d_country").css('border', '2px solid red');
            num_error = num_error + 1;
        }
    } else {
        if( !$('#skip-location').attr('checked') ) {
            num_error = num_error + 1;
        }
    }

Repeat installation procedure and you'll be able to click on next step.
You may try later importing location .sql file if you have it and see if that still works, as automated installation and download no longer works.

Regards
dev101

thanks sir for your reply

i will try again