[SOLVED] SelectCustomer.php, version date: 2016-04-25. - Printable Version +- webERP Forum (http://www.weberp.org/forum) +-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1) +--- Forum: Problems / Bugs? (http://www.weberp.org/forum/forumdisplay.php?fid=8) +--- Thread: [SOLVED] SelectCustomer.php, version date: 2016-04-25. (/showthread.php?tid=2754) |
[SOLVED] SelectCustomer.php, version date: 2016-04-25. - Rafael Chacón - 05-15-2016 I need help to troubleshooting SelectCustomer.php, version of the commit [r7495] "Jan Bakke: improvements to google maps api v 3" (date: 2016-04-25). I commented the line 83, from: "$buffer = file_get_contents($request_url) or die("url not loading");" to: "$buffer = file_get_contents($request_url) /*or die("url not loading")*/;" due a general failure to load page. After that,I found no backward compatibility with Google Maps previous version (it stoped to work). I tried o replace, but I got other problems. Someone is troubleshooting SelectCustomer.php or used this version with success ? RE: SelectCustomer.php, version date: 2016-04-25. - TurboPT - 05-15-2016 What was the "...general failure to load the page" ? Does the URL happen to have any spaces or other special characters, by chance ? RE: SelectCustomer.php, version date: 2016-04-25. - Rafael Chacón - 05-15-2016 "general failure to load the page" --> a die (equivalent to exit) at the beginning of the page causes no page is loaded. It has a white-space, but it corrected immediately. Problem is not there. Note: the code inside the php is different from example in https://developers.google.com/maps/documentation/javascript/tutorial#Audience RE: SelectCustomer.php, version date: 2016-04-25. - TurboPT - 05-15-2016 The php docs for file_get_contents claims: php.net Wrote:Note: ...so I'm not clear on the "...corrected immediately" ? Sure, that might not be the root cause, only trying to help. EDIT: DOH! ...I should have checked the code first! The urlencode() function is already used [at line 78] before that call. I'll check some other matters. RE: SelectCustomer.php, version date: 2016-04-25. - Rafael Chacón - 05-16-2016 I recoded and upload new version (https://sourceforge.net/p/web-erp/code/7527/ and https://sourceforge.net/p/web-erp/code/7521/). I agree with you. the code needs a complete overhaul to ensure that the correct URI are used. Thank you. |