Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Search doesn’t work at the moment #21

Closed
jancborchardt opened this issue Aug 25, 2014 · 18 comments
Closed

Search doesn’t work at the moment #21

jancborchardt opened this issue Aug 25, 2014 · 18 comments

Comments

@jancborchardt
Copy link
Contributor

When searching for »Berlin«, I get:

GET apps/maps/search?search=Berlin&bbox=[…] 500 (Internal Server Error)
    mapSearch.getSearchResults script.js line 337
    (anonymous function) script.js line 272

@brantje

@brantje
Copy link
Contributor

brantje commented Aug 25, 2014

What is in the owncloud.log?

@jancborchardt
Copy link
Contributor Author

A whole bunch of stuff, but mostly probably a table is missing?


"app":"index","message":"DatabaseException: An exception occurred while executing 'SELECT * from \"oc_maps_adress_cache\" where adres_hash=?':\n\nSQLSTATE[HY000]: General error: 1 no such table: oc_maps_adress_cache","level":4,"time":"2014-08-25T22:02:33+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin&bbox=[…]"}
"app":"index","message":"Exception: #1 \/home\/jan\/owncloud\/lib\/private\/appframework\/db\/db.php(43): OCP\\DB::prepare('SELECT * from `...', NULL, NULL)","level":4,"time":"2014-08-25T22:02:33+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin&bbox=[…]"}
"app":"index","message":"Exception: #2 \/home\/jan\/owncloud\/apps\/maps\/db\/cachemanager.php(39): OC\\AppFramework\\Db\\Db->prepareQuery('SELECT * from `...')","level":4,"time":"2014-08-25T22:02:33+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin&bbox=[…]"}
"app":"index","message":"Exception: #3 \/home\/jan\/owncloud\/apps\/maps\/controller\/pagecontroller.php(179): OCA\\Maps\\Db\\CacheManager->check('cbf6aebb7c36953...')","level":4,"time":"2014-08-25T22:02:33+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin&bbox=[…]"}
"app":"index","message":"Exception: #4 \/home\/jan\/owncloud\/apps\/maps\/controller\/pagecontroller.php(159): OCA\\Maps\\Controller\\PageController->checkGeoCache('cbf6aebb7c36953...')","level":4,"time":"2014-08-25T22:02:33+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin&bbox=[…]"}
"app":"index","message":"Exception: #5 \/home\/jan\/owncloud\/apps\/maps\/controller\/pagecontroller.php(95): OCA\\Maps\\Controller\\PageController->doAdresslookup('\/ Canada,Berlin')","level":4,"time":"2014-08-25T22:02:33+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin&bbox=[…]"}
"app":"index","message":"Exception: #6 [internal function]: OCA\\Maps\\Controller\\PageController->search()","level":4,"time":"2014-08-25T22:02:33+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin&bbox=[…]"}
"app":"index","message":"Exception: #7 \/home\/jan\/owncloud\/lib\/private\/appframework\/http\/dispatcher.php(155): call_user_func_array(Array, Array)","level":4,"time":"2014-08-25T22:02:33+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin&bbox=[…]"}
"app":"index","message":"Exception: #8 \/home\/jan\/owncloud\/lib\/private\/appframework\/http\/dispatcher.php(84): OC\\AppFramework\\Http\\Dispatcher->executeController(Object(OCA\\Maps\\Controller\\PageController), 'search')","level":4,"time":"2014-08-25T22:02:33+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin&bbox=[…]"}
"app":"index","message":"Exception: #9 \/home\/jan\/owncloud\/lib\/private\/appframework\/app.php(57): OC\\AppFramework\\Http\\Dispatcher->dispatch(Object(OCA\\Maps\\Controller\\PageController), 'search')","level":4,"time":"2014-08-25T22:02:33+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin&bbox=[…]"}
"app":"index","message":"Exception: #10 \/home\/jan\/owncloud\/lib\/private\/appframework\/routing\/routeactionhandler.php(44): OC\\AppFramework\\App::main('PageController', 'search', Object(OC\\AppFramework\\DependencyInjection\\DIContainer), Array)","level":4,"time":"2014-08-25T22:02:33+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin&bbox=[…]"}
"app":"index","message":"Exception: #11 [internal function]: OC\\AppFramework\\routing\\RouteActionHandler->__invoke(Array)","level":4,"time":"2014-08-25T22:02:33+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin&bbox=[…]"}
"app":"index","message":"Exception: #12 \/home\/jan\/owncloud\/lib\/private\/route\/router.php(227): call_user_func(Object(OC\\AppFramework\\routing\\RouteActionHandler), Array)","level":4,"time":"2014-08-25T22:02:33+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin&bbox=[…]"}
"app":"index","message":"Exception: #13 \/home\/jan\/owncloud\/lib\/base.php(721): OC\\Route\\Router->match('\/apps\/maps\/sear...')","level":4,"time":"2014-08-25T22:02:33+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin&bbox=[…]"}
"app":"index","message":"Exception: #14 \/home\/jan\/owncloud\/index.php(28): OC::handleRequest()","level":4,"time":"2014-08-25T22:02:33+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin&bbox=[…]"}
"app":"index","message":"Exception: #15 {main}","level":4,"time":"2014-08-25T22:02:33+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin&bbox=[…]"}

@jancborchardt jancborchardt added this to the 0.1 – the basics milestone Aug 25, 2014
@brantje
Copy link
Contributor

brantje commented Aug 26, 2014

Fixed

@brantje brantje closed this as completed Aug 26, 2014
@jancborchardt
Copy link
Contributor Author

Now getting this error:

"app":"PHP","message":"Attempt to assign property of non-object at \/home\/jan\/owncloud\/apps\/maps\/controller\/pagecontroller.php#97","level":0,"time":"2014-08-26T22:44:13+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin
"app":"PHP","message":"Attempt to assign property of non-object at \/home\/jan\/owncloud\/apps\/maps\/controller\/pagecontroller.php#177","level":0,"time":"2014-08-26T22:44:13+00:00","method":"GET","url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin

@jancborchardt jancborchardt reopened this Aug 26, 2014
@jancborchardt
Copy link
Contributor Author

And in the browser console is spammed with some logs:

Object { contacts: Array[1], nodes: Array[0], addresses: Array[10] } script.js:353

@brantje
Copy link
Contributor

brantje commented Aug 27, 2014

That is normal. The php error will be fixed =)

@brantje brantje mentioned this issue Jul 3, 2015
2 tasks
@DJaeger
Copy link
Contributor

DJaeger commented Aug 9, 2015

@brantje: Have you fixed this?
If not, would you share your findings, that someone else can fix?

@v1r0x
Copy link
Contributor

v1r0x commented Sep 2, 2015

Is this still present? I don't get any errors.

@jancborchardt
Copy link
Contributor Author

Search still doesn’t really work. No suggestions are shown, the log says:

Object { contacts: Array[17], nodes: Array[0], addresses: Array[10] } script.js:449:4

And in the owncloud.log:

Attempt to assign property of non-object at \/home\/jan\/owncloud\/apps\/maps\/controller\/pagecontroller.php#194"
"url":"\/owncloud\/index.php\/apps\/maps\/search?search=Berlin&bbox=13.449797630310059%2C52.50692273870633%2C13.480696678161621%2C52.52269704703951

@v1r0x
Copy link
Contributor

v1r0x commented Sep 2, 2015

Suggestions never worked for me. Normal search with searching on pressing return/enter worked.
I'm currently trying to integrate the search bar into the map (using a new version of (I think) the one which should show suggestions right now) and add the functionality of #8 to it. Maybe this could solve all search related issues

@jancborchardt
Copy link
Contributor Author

Cool! Yeah, that would probably work.

@v1r0x
Copy link
Contributor

v1r0x commented Sep 4, 2015

the current status is in the testing branch of my fork. If you have the time, you could have a look at it.

@jancborchardt
Copy link
Contributor Author

@v1r0x if you just submit a pull request for that, it’s easier to test, review and then merge. :)

@v1r0x
Copy link
Contributor

v1r0x commented Sep 4, 2015

@jancborchardt will do that after my holiday. The branch was for @Henni , because I have a weird problem (function only called if there is an alert()). I just told you, if you want to have a look at the current progress ;)

@DJaeger
Copy link
Contributor

DJaeger commented Oct 17, 2015

Any news or still at holdidays? ;-)

@v1r0x
Copy link
Contributor

v1r0x commented Oct 17, 2015

No, back from my holiday...sadly :D
I think I should talk to @Henni or someone else who is interested to figure out the problem. I set up a local test environment on my laptop, which should be easier to debug.
Currently I have a side project, associated with OSM/OC Maps, so I don't work 100% on maps itself, but I will definitely finish this soon ;)

@v1r0x
Copy link
Contributor

v1r0x commented Oct 25, 2015

@jancborchardt
Copy link
Contributor Author

This seems to be resolved, and only #38 (zooming in on the best result) remains.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants