0

i had a website that was working fine on localhost without any errors but after i uploaded it on the domain the slider stoped working and i got this errors

 Uncaught SyntaxError: Unexpected token ILLEGAL /js/jquery-ui.min.js:5
   Uncaught TypeError: undefined is not a function custom.js:33
   (anonymous function) custom.js:33 c jquery-latest.min.js:1069
   p.fireWith jquery-latest.min.js:1113 x.extend.ready
   jquery-latest.min.js:129 q jquery-latest.min.js:38

when i removed the custom.js page the error are removed but i need it so i could make the slider work but i

i found that the (anonymous function) can be solved by adding ; after the function but i still give me the same error

  • Are all of your .js files actually loading? – s_ha_dum May 6 '14 at 22:34
  • Maybe you should check the inline java script, and php generated code in your slider. Maybe it's depends on php version on server (Some people use <?= tag and this is available php >5.4). Sometimes php can generate to much whitespaces so it can be problem. – user51316 May 6 '14 at 23:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.