New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't import items with PHP 5.2 and MySQL 5.1 #314
Comments
Seems similar to #288. Not sure it's really an issue with PHP/MySQL versions. |
This particular issue appears to be coming from the library we're using to parse the data. This appears to be the issue So, if you have "Paris" in the coverage, this attempts to parse 'POINT(aris)' which fails since there aren't two parts to this string. Instead of trying to patch the
|
After looking at the
|
Or, if we're feeling lazy, we could also just try/catch line 26, where geoPHP tries to read the coverage. |
That's not so much laziness as surrendering to someone else's poor implementation... |
Yep, probably easiest to just harden up NL for now. That said, I may try to squirrel away an hour at some point to fix this in geoPHP - it's a really useful piece of code, and I'm actually planning to use it for an unrelated project next month, so I'm happy to contribute back to it. |
When I attempt to import items, I get the following message:
When I remove all information from coverage fields, it appears to have imported my items, like so:
but no records actually show up in the exhibit.
Possibly relevant: I switched from background processing to synchronous processing because I don't have PHP-CLI on my server.
My system info:
The text was updated successfully, but these errors were encountered: