Advertisement:

Author Topic: Locations stats 0 % Complete  (Read 3313 times)

hichamuser

  • Newbie
  • *
  • Posts: 31
Locations stats 0 % Complete
« on: December 05, 2016, 07:51:14 pm »
hello everyone !
why my Locations stats calculate stay in 0% ?
where this bug coming please
php config ?

Aficionado

  • Guest
Re: Locations stats 0 % Complete
« Reply #1 on: December 05, 2016, 08:20:07 pm »
How many locations do you have (countries) ?

What is your hosting plan PHP physical memory allowance ?

Enable osclass debug to a log to see any errors.

https://doc.osclass.org/Debug_PHP_errors

hichamuser

  • Newbie
  • *
  • Posts: 31
Re: Locations stats 0 % Complete
« Reply #2 on: December 05, 2016, 08:55:56 pm »
thank you bro
2 countries
PHP physical memory  up to 512 MB
debug.log actived
« Last Edit: December 05, 2016, 09:07:42 pm by hichamuser »

Aficionado

  • Guest
Re: Locations stats 0 % Complete
« Reply #3 on: December 05, 2016, 09:14:05 pm »
oK, 512 you have but are they available (activated) ?

If 512 are ok and 2 countries are also nothing big (i have 27), so you have some other problem. If debug.log is also clear, then it is not normal.

What kind of plan for hosting is that ? Shared ? VPS ? Linux i guess (because some use Windows .....) ...


hichamuser

  • Newbie
  • *
  • Posts: 31
Re: Locations stats 0 % Complete
« Reply #4 on: December 05, 2016, 09:33:19 pm »
can i write directly to you ? you have facebook bro
yes it's actived
 shared hosting bro

Aficionado

  • Guest
Re: Locations stats 0 % Complete
« Reply #5 on: December 05, 2016, 09:50:13 pm »
If it is shared i highly doubt you have 512 available.

Sorry, all i can help is here, so others can read and profit from possible solutions in the future.

Use this:

https://market.osclass.org/plugins/miscellaneous/php-info_82

and let us know of the memory available and other stuff (remove your domain if you want).

hichamuser

  • Newbie
  • *
  • Posts: 31
Re: Locations stats 0 % Complete
« Reply #6 on: December 05, 2016, 09:59:42 pm »
i find this error in my debug.log
[05-Dec-2016 18:35:15 UTC] PHP Warning:  session_start(): Cannot send session cache limiter - headers already sent in /srv/disk9/2251493/www/Domain.com/oc-includes/osclass/core/Session.php on line 47

about my hosting plan look at my php.ini
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off

report_memleaks = On
track_errors = Off

;error_prepend_string = ""

variables_order = "EGPCS"
;register_globals = On
register_argc_argv = On

post_max_size = 20M
memory_limit = 512M
gpc_order = "GPC"


magic_quotes_runtime = Off   
magic_quotes_sybase = Off
;auto_prepend_file = /var/www/index.php

;auto_append_file =

default_mimetype = "text/html"

doc_root =
user_dir =
enable_dl = On

Aficionado

  • Guest
Re: Locations stats 0 % Complete
« Reply #7 on: December 05, 2016, 10:11:00 pm »
Yeah, well it is probably a hosting problem. Try this:

Quote
Hi,

Looks like general /tmp temporary folder couldn't be used to store sessions, try inserting this line in your config.php (just before ?>):


session_save_path ( ABS_PATH . 'oc-content/uploads/' );


Aficionado

  • Guest
Re: Locations stats 0 % Complete
« Reply #8 on: December 05, 2016, 10:12:15 pm »
Also not sure the above is a solution to your %0 problem but probably is for the debug (major) error.

hichamuser

  • Newbie
  • *
  • Posts: 31
Re: Locations stats 0 % Complete
« Reply #9 on: December 05, 2016, 10:30:13 pm »
no result bro , i added code to my config.php
 bro look at my website http://www.3rbi.com/index.php?page=item&action=item_add
 try to select ( county , region , city ) the cities stay the same
can you help me bro to solve this bug
PS : when i installed the script v 3.6.1 and theme on another webhosting  all works perfectly
« Last Edit: December 05, 2016, 10:47:07 pm by hichamuser »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Locations stats 0 % Complete
« Reply #10 on: December 05, 2016, 10:59:51 pm »
Hi,

When you select a region there's an Ajax call to get the cities:

Quote
[{"pk_i_id":"425338","fk_i_region_id":"782046","s_name":"Acampo","fk_c_country_code":"us","b_active"
:"1","s_slug":"acampo"},{"pk_i_id":"425929","fk_i_region_id":"782046","s_name":"Acton","fk_c_country_code"
:"us","b_active":"1","s_slug":"acton"},{"pk_i_id":"426147","fk_i_region_id":"782046","s_name":"Adelanto"
,"fk_c_country_code":"us","b_active":"1","s_slug":"adelanto"},{"pk_i_id":"425655","fk_i_region_id":"782046"
,"s_name":"Adin","fk_c_country_code":"us","b_active":"1","s_slug":"adin"} etc

But your server is returning this response:

Quote
<br />
<b>Deprecated</b>:  Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in
 a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use
 the php://input stream instead. in <b>Unknown</b> on line <b>0</b><br />

[{"pk_i_id":"425338","fk_i_region_id":"782046","s_name":"Acampo","fk_c_country_code":"us","b_active"
:"1","s_slug":"acampo"},{"pk_i_id":"425929","fk_i_region_id":"782046","s_name":"Acton","fk_c_country_code"
:"us","b_active":"1","s_slug":"acton"},{"pk_i_id":"426147","fk_i_region_id":"782046","s_name":"Adelanto"
,"fk_c_country_code":"us","b_active":"1","s_slug":"adelanto"},{"pk_i_id":"425655","fk_i_region_id":"782046"
,"s_name":"Adin","fk_c_country_code":"us","b_active":"1","s_slug":"adin"}

So seems that you'd need the change that value in php.ini, always_populate_raw_post_data = -1

Regards

hichamuser

  • Newbie
  • *
  • Posts: 31
Re: Locations stats 0 % Complete
« Reply #11 on: December 05, 2016, 11:13:53 pm »
so i change always_populate_raw_post_data =
to
always_populate_raw_post_data = -1 ?

hichamuser

  • Newbie
  • *
  • Posts: 31
Re: Locations stats 0 % Complete
« Reply #12 on: December 05, 2016, 11:40:56 pm »
thank youuuu bro you're the best

Aficionado

  • Guest
Re: Locations stats 0 % Complete
« Reply #13 on: December 06, 2016, 12:25:17 am »
@teseo What is depreciated ? I don't get it ? Is something of Osclass ? Is the guy running an old PHP (5.3 ?) ?

« Last Edit: December 06, 2016, 12:27:09 am by Aficionado »

Aficionado

  • Guest
Re: Locations stats 0 % Complete
« Reply #14 on: December 06, 2016, 12:32:26 am »

PS : when i installed the script v 3.6.1 and theme on another webhosting  all works perfectly

Well, goddady is nothing to write home about ....