Hi,

I am receiving an error on the autocomplete javascript. Here is the error code:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2)
Timestamp: Fri, 21 Oct 2011 03:47:06 UTC


Message: Expected identifier, string or number
Line: 27
Char: 3
Code: 0
URI: ./sites/all/modules/search_autocomplete/js/jquery.autocomplete.js?s

Is there something that is causing the problem? Thank you in advance.

David

Comments

dom.’s picture

Hi!

Is it a one time problem or do you keep having it? I tried to reproduce but I could not. Do you use any particular module in relation with Search that might interfere, or a jquery update module that might change the jquery version of your D7? Do you use any Drupal profile that I could install to reproduce your environment? Did it happen after you copy-pasted something in you searchbar? Or is the language of your site anything with non-latin characters (like chinese or arabic) that could not be interpreted correctly?

For now, I don't have a clue what happened as I can't reproduce it. Anymore help on the context?

dmendo11’s picture

Hi Miro,

Thank you for answering. I am currently using Drupal 6 and I am also using jquery but it hasn't been updated. I am using a module called Ubercart Limited Time Offer, that one is not working fully, but I am not sure how this module causes this issue.

The javascript error comes directly from the main site, I was using Safari on Mac and that is how it reported. I dont see the error on a PC either with Chrome, Firefox or IE.

I guess it is not an issue, but just wanted to know why this error occurred. Was this error referring to anything in particular in those lines of the javascript file?

Thanks,

David

dom.’s picture

Hi!

Do you still have the issue with newer versions?

hejazee’s picture

Title: Jajascript Error » Javascript Error

Updated the title! :)

dom.’s picture

Status: Active » Fixed
sludwig’s picture

Hi,

the error is in line 26 of the jquery.autocomplete.ks max: eval(obj + '.max_sug'),

The last comma on line 26 before the } in line 27 has to be removed, to get it to work.

The Internet Explorer 7 shows the same error. Only with this comma removed, the Script works fine.

dom.’s picture

Hi!
Thanks for the report. I will update it soon in the next release.
Miro

dom.’s picture

Status: Fixed » Patch (to be ported)
dom.’s picture

Status: Patch (to be ported) » Closed (fixed)

This was fixed with version 7.x-2.x