Viewing 5 replies - 1 through 5 (of 5 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Because your editor saves Windows line endings whereas your server needs linux line endings?
    Are you sure the line endings have anything to do with the error?

    Thread Starter lauxly

    (@lauxly)

    Ok, it seems the error is that there a wrong URL aadress and it’s missing “/” from the line.
    The question is, what file to i have to change to fix it? 🙂

    link

    Thanks in advance

    Daniel Kanchev

    (@danielkanchev)

    SiteGround Representative

    You probably need to change the files where you include the JS script. If you’re using relative links/paths then make sure the path is correct. You may use the WordPress “get_home_url” function to get the domain name of the site and then just append the path to the JS script:

    http://codex.wordpress.org/Function_Reference/get_home_url

    Thread Starter lauxly

    (@lauxly)

    Okey, so i got rid of the error my removing add-on that i noticed was causing it.
    After that the menu which was the issue in a first place started working partly.
    But still i cant click on “select an image”, because it wont bromt me with the wordpress image selection option.

    And im faced with a new error 🙁

    Failed to load resource: net::ERR_CONNECTION_REFUSED
    Failed to load resource: net::ERR_CONNECTION_TIMED_OUT

    link

    thanks for the help so far thou

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    So create a new thread to discuss that different issue: https://wordpress.org/support/forum/how-to-and-troubleshooting#postform

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Why is my .js javascript messed up?’ is closed to new replies.