php - Uncaught SyntaxError: Unexpected token on some hosting providers -
when vin number added in admin , button pressed data, in hosting providers i'm getting error , spinning loading wheel of death, while other providers , in localhost info correctly. why not consistent , can make work time? the error on google chrome console is: uncaught syntaxerror: unexpected token and if click on arrow expand error show [object][object]. here code: <?php add_action('wp_ajax_rw_api_data', 'rw_api_data'); function rw_api_data(){ if ( isset($_post["vin"]) && strlen($_post["vin"]) === 17 ){ $api_key = get_option('edmund_api'); $vin = $_post["vin"]; // basic details $url = sprintf( "https://api.edmunds.com/api/vehicle/v2/vins/%s?&fmt=json&api_key=%s" , $vin , $api_key ); $get_response = wp_remote_get($url); if( !is_wp_error( $get_response ) ) : $basic_data = json_decode( $get_response["body"], true); $style_id = i...