Pages: [1]
Print
Author Topic: No Locations Found Near XXXXX  (Read 187 times)
clangham
Download
Newbie
*
Posts: 9


« on: November 01, 2011, 04:50:30 PM »

Everything is working correctly, but when I a search on the front end, I get a popup error "No Locations Found Near XXXXX" no matter what is in the DB. The origin marker shows up, but no location marker.

However, after receiving the error on the front end, if I log in and view the records viewed the locations I just searched for show up just fine.

Any reason why I am not getting any results on the front end?  When I compare my test site to the live DEMO site I do get an error on my response that is NOT on the DEMO site.

 ----------------------------------
<h4>A PHP Error was encountered</h4>

<p>Severity: 8192</p>
<p>Message:  Function ereg_replace() is deprecated</p>
<p>Filename: models/locator_model.php</p>
<p>Line Number: 245</p>
-----------------------------------

Regards,
Logged
Support
Administrator
Jr. Member
*****
Posts: 97



« Reply #1 on: November 01, 2011, 05:14:22 PM »

Your webserver must have PHP 5.3 installed, where ereg_replace is deprecated in that version. If you are comfortable with editing the models/locator_model.php script, you can replace the PHP function ereg_replace, line 245, with str_replace.

Line 245 in locator_model.php is the only occurrence of ereg_replace in the program.

Regards
« Last Edit: November 01, 2011, 05:16:37 PM by Support » Logged
Support
Administrator
Jr. Member
*****
Posts: 97



« Reply #2 on: November 01, 2011, 05:22:09 PM »

The LiteRadius download archive has been updated (11/1/2011) to reflect this change.
Logged
clangham
Download
Newbie
*
Posts: 9


« Reply #3 on: November 02, 2011, 09:15:35 AM »

Thank you, that was the issue, the locations are now rendering perfectly on the front-end.

Thanks again!

Logged
Pages: [1]
Print
Jump to: