Title: Database Error and PHP Error
Last modified: April 28, 2017

---

# Database Error and PHP Error

 *  Resolved [fsthomas](https://wordpress.org/support/users/fsthomas/)
 * (@fsthomas)
 * [9 years ago](https://wordpress.org/support/topic/database-error-and-php-error/)
 * Our plug-in stopped working after a recent update.
 * To simplify matters while debugging I have removed all but one location in Anchorage,
   Alaska.
 * When using a short code (‘[locatoraid]’, ‘[locatoraid layout=”map”]’, or ‘[locatoraid
   layout=”map” where-state=”AK”]’) the search form renders on our Locations page,
   but nothing else.
 * When searching against the known location the page redirects to a generic white
   page with an H1 stating “A Database Error Occurred” and “Database Error”.
 * The request in question ([http://[REDACTED]/?hcs=locatoraid&hca=search:search/_SEARCH_/product/_PRODUCT_/lat/_LAT_/lng/_LNG_/limit/100/state/AK](http://[REDACTED]/?hcs=locatoraid&hca=search:search/_SEARCH_/product/_PRODUCT_/lat/_LAT_/lng/_LNG_/limit/100/state/AK))
   results in a 500 error.
 * Looking at the ERROR_LOG, after each unsuccessful search a new line is generated.
   For example:
 * “[28-Apr-2017 14:29:44 UTC] PHP Fatal error: Call to a member function result_array()
   on a non-object in [REDACTED]/plugins/locatoraid/happ2/hsystem/parts/orm/storable.
   php on line 324”
 * Both WordPress and the plug-in are the most recent versions. I have a valid and
   functioning Google Maps API key attached as well. I am able to add new locations
   without issue.
 * I have already tried uninstalling and re-installing the plug-in. I was disappointed
   to see that previous data carries over when re-installing.
    -  This topic was modified 9 years ago by [fsthomas](https://wordpress.org/support/users/fsthomas/).

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [hitcode](https://wordpress.org/support/users/hitcode/)
 * (@hitcode)
 * [9 years ago](https://wordpress.org/support/topic/database-error-and-php-error/#post-9083696)
 * Hello,
    I’m sorry for the issue, thank you very much for your detailed feedback.
   We would love to troubleshoot the issue, but we would need a temporary FTP access
   to the wp-content/plugins/locatoraid directory. If it’s acceptable for you, please
   let me know and send the info through our contact form [http://www.locatoraid.com/contact/](http://www.locatoraid.com/contact/)
 *  [hitcode](https://wordpress.org/support/users/hitcode/)
 * (@hitcode)
 * [9 years ago](https://wordpress.org/support/topic/database-error-and-php-error/#post-9086862)
 * resolved, turns out to be an conflict with a bit non-standard theme.
 *  [wendy.dwyer](https://wordpress.org/support/users/wendydwyer/)
 * (@wendydwyer)
 * [9 years ago](https://wordpress.org/support/topic/database-error-and-php-error/#post-9101544)
 * Hi, I’m having the same issue. My website is [https://banksouthern.com/locations](https://banksouthern.com/locations).
   My theme is Divi.
 *  [hitcode](https://wordpress.org/support/users/hitcode/)
 * (@hitcode)
 * [9 years ago](https://wordpress.org/support/topic/database-error-and-php-error/#post-9108507)
 * Hi,
    it seems to work for me at banksouthern.com, has anything changed since?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Database Error and PHP Error’ is closed to new replies.

 * ![](https://ps.w.org/locatoraid/assets/icon-128x128.png?rev=1779257)
 * [Locatoraid Store Locator](https://wordpress.org/plugins/locatoraid/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/locatoraid/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/locatoraid/)
 * [Active Topics](https://wordpress.org/support/plugin/locatoraid/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/locatoraid/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/locatoraid/reviews/)

 * 4 replies
 * 3 participants
 * Last reply from: [hitcode](https://wordpress.org/support/users/hitcode/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/database-error-and-php-error/#post-9108507)
 * Status: resolved