Topic: FA2.4.2 error getting exchange rate from Google
If you set $dflt_xr_provider = 2 to get exchange from Google system will show following errors:
Undefined variable: site_ip in file: C:\xampp\htdocs\fa242\gl\includes\db\gl_db_rates.inc at line 178
C:\xampp\htdocs\fa242\gl\includes\db\gl_db_rates.inc:125: get_extern_rate('EUR','GOOGLE','10/25/2017')
C:\xampp\htdocs\fa242\gl\manage\exchange_rates.php:139: retrieve_exrate('EUR','10/25/2017')
C:\xampp\htdocs\fa242\gl\manage\exchange_rates.php:218: display_rate_edit()
number_format() expects parameter 1 to be double, string given in file: C:\xampp\htdocs\fa242\includes\current_user.inc at line 316
C:\xampp\htdocs\fa242\includes\current_user.inc:316: number_format('','INF','.',',')
C:\xampp\htdocs\fa242\includes\current_user.inc:391: number_format2('','max')
C:\xampp\htdocs\fa242\gl\manage\exchange_rates.php:139: maxprec_format('')
C:\xampp\htdocs\fa242\gl\manage\exchange_rates.php:218: display_rate_edit()
Fixes:
Line 178 of gl_db_rates.inc should be changed to if(isset($site_ip) $site = $site_ip;
Line 152 should be $site = "finance.google.com";