ytrstu / vosao

Automatically exported from code.google.com/p/vosao
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Search JavaScript Type Error #311

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The search is affected by following JavaScript error:

message hit.page is undefined
fileName    http://***/search?query=splinder
lineNumber  201
stack   (0,[object Object])@http://***/search?query=splinder:201
([object Array],(function (i, hit) {h += "<div class=\"searchItem\"><div 
class=\"searchTitle\">" + hit.page.title + "</div><a href=\"" + 
hit.page.friendlyURL + "\">" + hit.content + "</a>" + 
"</div>";}))@http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js:30
([object Object],null,false)@http://***/search?query=splinder:200
(-1)@http://***/static/js/jsonrpc.js:1

name    TypeError

Original issue reported on code.google.com by loretopa...@gmail.com on 11 Aug 2010 at 5:29

GoogleCodeExporter commented 8 years ago
Same for me too.

message hit.page is undefined
fileName    http://vosao-dkl.appspot.com/search?query=start%20authoring
lineNumber  203
stack   (0,[object 
Object])@http://vosao-dkl.appspot.com/search?query=start%20authoring:203
([object Array],(function (i, hit) {h += "<div class=\"searchItem\"><div 
class=\"searchTitle\">" + hit.page.title + "</div><a href=\"" + 
hit.page.friendlyURL + "\">" + hit.content + "</a>" + 
"</div>";}))@http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js:30
([object 
Object],null,false)@http://vosao-dkl.appspot.com/search?query=start%20authoring:
202
(-10)@http://vosao-dkl.appspot.com/static/js/jsonrpc.js:1

name    TypeError

Original comment by dklong...@gmail.com on 16 Aug 2010 at 11:08

GoogleCodeExporter commented 8 years ago
Please provide additional detials:

1. Vosao CMS version.
2. Was this version updated or initially installed?
3. Browser & OS info.

Original comment by kinyelo@gmail.com on 17 Aug 2010 at 6:31

GoogleCodeExporter commented 8 years ago
In the /search page of the content tree, 
replace all occurences of hit.page. by hit. 
in the onSearch() function.

Original comment by axelclk@gmail.com on 17 Aug 2010 at 10:29

GoogleCodeExporter commented 8 years ago
http://www.vosao.org/download/release-notes/version-0-6

Updating from 0.5 point 5.

Original comment by kinyelo@gmail.com on 17 Aug 2010 at 10:42

GoogleCodeExporter commented 8 years ago
@kinyelo
Vosao CMS version is 0.6.7
Browser is Firefox 3.6.6 and Safari 5.0 too
OS is Mac OS X 10.5.8

Original comment by loretopa...@gmail.com on 18 Aug 2010 at 12:07

GoogleCodeExporter commented 8 years ago
@axelclk

Thanks,
replacing each occurence of hit.page with hit it works for me!

Original comment by loretopa...@gmail.com on 18 Aug 2010 at 12:13

GoogleCodeExporter commented 8 years ago

Original comment by kinyelo@gmail.com on 21 Aug 2010 at 5:08