• Resolved fsthomas

    (@fsthomas)


    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) 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.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)

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