undefined $ap_url