Javascript error VKontakte how to fix it. If the Host file is hidden. What to do to fix Javascript Error and Server Error in VK

There's nothing wrong with that. Now I'll show you how to fix javascript errors in VK.

What does it look like?

Problems can arise at any time. When you try to start an audio recording for listening (see), when sending a message (see), etc. A warning appears in the right-left corner of the screen.

How to fix the error?

One of the options - invalid file hosts. This system file responsible for network routing. There is no need to go into details now. Let's just bring it back to its original form.

It is located in the following folder:

C:\Windows\System32\drivers\etc

We go into it and open our file using notepad.

IN working version the file should not contain extraneous lines. Lines starting with the “#” sign are system comments. There is no need to touch them. If there is anything unnecessary, we delete it.

Save and try to restart Contact. The error should go away.

Sometimes updating java helps. Follow the link and download latest version:

https://www.java.com/ru/download/

And the last piece of advice I wanted to give you. JavaScript-related errors can be caused by an outdated cache in your browser. Clean it up.

Let's do it in Google Chrome. Open the menu. Now tab « Additional tools» , and there is a point “Deleting browsing data”.

On next step indicate the time period, mark the necessary items and press the button "Clear the history".

After that we try to restart the page.

Questions?

In contact with

Good day to everyone who is reading the current publication. Today I will try to help you solve an error that occurs on the VKontakte social network, which looks like this: “JavaScript error upload is not defined».

I will explain what this error is and what you should do to resolve it. In addition, I will offer you several universal solutions not only this problem, but also similar errors. Well, let's find out!

SOS! A terrible red window with an incomprehensible error!

In fact, it's not that big of a deal terrible mistake. It can be solved quite simply.

Unfortunately, in recent years VK upsets its users with many system failures. And therefore, the latter have to dodge and get out of this situation using different ways of finding solutions.

After numerous encounters with similar errors on a well-known social network, I found three universal methods solutions that are guaranteed to help out similar situations. But first, let’s understand with you what is written in this red window.

"JavaScript error: upload is not defined" is an error that occurred when trying to download a resource (video, audio file, etc.). If this phrase is translated into Russian, we get:

There is contact!

So, let's look at the three options I mentioned above to solve the problem.

Garbage should be taken out... or removed

To start . To do this you need to go to "Tools", find menu item "Settings" and then find the button "Clear the history".

To quickly jump to the desired item, simply press the keyboard shortcut Ctrl+Shift+Delete. And after selecting the desired items to delete, click "Clear". Now try to open VK and start downloading the file. If it doesn’t work out, then move on to the next point.

Old is good, but new is better!

Your problem could arise because you have an outdated Adobe version Flash Player and Java. For troubleshooting, please follow the links provided for Java updates(https://www.java.com/ru/download/) and then Flash Player (https://get.adobe.com/ru/flashplayer/).

Now repeat previous actions, i.e. Upload the desired media file to VKontakte. If no changes occur, then we move on to the next option.

Let's take the problem seriously!

Now you have to change one configuration file. To do this, open your “Local (system) disk”. In it, go to the “Windows” folder, then to the “System32” system folder, then to the “driver (drivers)” directory and finally “etc”. Inside it you will see a file called "hosts". Open it with Notepad and clear all information. Now paste the text attached below.

I would like to point out an important detail! Since today the majority of computers work with operating system Microsoft Windows 7, 8 and 10, then I have attached the necessary content specifically for them.

The text itself looks like this:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 # Copyright (c) 1993-2006 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a "#" symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handle within DNS itself. # 127.0.0.1 localhost # ::1 localhost

# Copyright (c) 1993-2006 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a "#" symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handle within DNS itself. # 127.0.0.1 localhost # ::1 localhost

An error appeared javascript error mutations are not initialized? In general, there are plenty of errors related to Java in . Moreover, each of them limits functionality and actions.

For example, when you go to check messages, you may get an error such as “javascript error mutations are not initialized.”

Usually something like this pops up in the upper left corner, the inscription is in a rectangular light red field.

The problem is that this same notification prevents you from viewing new messages.

Sometimes the question disappears on its own. Everything resolves itself. But what if the “magic” doesn’t work?

Start with the basics

You can start with the most primitive thing - restart your computer.

This is especially effective if you previously downloaded some kind of update, and for it to work correctly you need a reboot.

And this is still somehow affecting the work. Of course, this doesn't help everyone.

Let's consider other methods.

It could be a cache issue

Your next step will be Java and browser.

Perhaps they have errors that directly affect the operation of the VC.

Press Ctrl + F5 for a few seconds. The page you are on should reload.

If the problem was related to the cache, then everything should be normalized.

And the words “javascript error mutations are not initialized” will no longer scare you.

However, the case may be more advanced. Then try clearing the file on your device.

He's a potential target virus programs. Unfortunately, antiviruses are not able to detect absolutely all viruses, because they are created every day.

So, it is viral activity that can block your access to different sections of the site, including in this case, In contact with.

Bring Host file V operational state. To do this, go to the etc folder at the following address: C:\ Windows\ System32\ drivers\ etc. It will also contain that Host file.

You can edit it using notepad. But first click right side mouse on it to run from .

Otherwise, nothing will work; the OS will not allow you to make any changes.

To edit a file means to add to it additional information, type and site address. Using VKontakte as an example, the file should contain the following:

The Host file may not be on your computer. And this is absolutely not fatal - on the contrary, if something is missing, then viruses cannot attack it.

If the Host file is hidden

True, don’t rejoice too early, check if the file is hidden. Also, the Host may simply be located in a different location. To find out where he is hiding, you will have to look into the registry.

Hold down the Win + R combination or type in the search bar. Go to this directory: HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ Tcpip\ Parameters\.

However this method already more serious. Be careful not to delete others important files in the registry.

This can affect the performance of your computer much more than java error. True, you don’t need to be immediately afraid to even go into the registry itself.

The main thing is to find required file, that's all your task. There is no need to move, delete, etc.

Virus?

And this real option.

So you can turn it on full check computer and go for a snack.

If you urgently need to look at the received message, try logging in via your smartphone or mobile version VC.

You may have damaged some program files at some point, which is why you are now suffering with the error “javascript error mutations are not initialized”.

It is best to download updates or the program itself through the official website (https://java.com/ru/download/) so as not to pick up viruses somewhere.

By the way, it is better to update and . It can also cause similar errors.

Often social network VKontakte presents us with not very pleasant surprises. So, for example, in Lately Complaints about the inability to listen to or view audio and video files have become more frequent. Let's take a look today how to get rid of javascript error VKontakte.

What does a javascript error look like on VKontakte?

So, you go to the site, try to turn on video or audio, but nothing works... In the left corner of the page you notice a message. This means that you have encountered an error JavaScript: initAddMedia. And this is not even an error, but some kind of “Job” of the system.

How to solve the problem with javascript error on VKontakte?

Of course, by scouring the Internet, you can find a lot of solutions on specialized forums, although they will be very confusing and incomprehensible. I just want to exclaim: “Who wrote this anyway?” And very often regular users They just can't figure out the problem.

We suggest you solve the problem with video and audio file players much easier.

Method No. 1

Algorithm for solving the problem:“Start” - “My Computer” - “WINDOWS” ( system folder) - system32 folder - driver folder - etc. folder.

  • In the last folder you will have several files, among which you will see .
  • This file open using Notepad (On hosts file make a click right click mouse you select the item “Open with” - select the program “Notepad” or “Text” WordPad editor»).
  • When the file opens you will see what is written in it. Note that the good file only contains the following entry: 127.0.0.1 localhost.
  • Everything that is located besides this record is nothing more than slag due to which blocking occurs normal operation video and audio files.
  • Completely delete all contents of the file and copy this line: 127.0.0.1 localhost
  • Click "Save"
  • Close the editor window and restart your computer.
  • Now try logging into VKontakte.

Method No. 2

Update Java and Adobe Flash Player. Here are the links.

Method No. 3

Clear your browser cache, this is done in your browser settings. If you don’t know how, there is a lot of information on this subject on the Internet. There are even videos on YouTube. For example, I found a video!

Method number 4

Try restarting your computer!

Your problem is solved, now you can listen to audio recordings and watch videos.

If this article helped you or you liked it, don't forget give your like, this will help other users find it faster. And I can find out what interests you most in order to prepare and write even more interesting and useful articles! Best regards, Vyacheslav.

JavaScript errors on the VK.com website are very common, they happen often and there are many types of them. From time to time, we get asked questions about this error on the forum, and today we decided to make it Full description and provide several solutions to this problem.

This error may appear as in personal messages, and in sections of audio, video recordings, etc. Eliminating it is quite simple and often does not take much time. Rarely, but there are still cases, when it is difficult to determine why exactly the failure occurred, since the reason may also be on the side of the VK.com site itself. Let's find out!

How to fix JavaScript error

If you tried to perform some action, but in response you only received an error message (in the left top corner site), then you need to fix this problem. There are several options for solving this:

  1. Using the Ctrl+F5 key combination, try clearing the Java and browser cache or use. By holding these buttons for 2-3 seconds, you will clear the cache of the page you are on. The problem should go away.
  2. We recommend that you scan your computer for viruses using an installed anti-virus program with updated databases.
  3. If nothing works, we recommend trying again by performing the same action, but from a different browser.

If in the end, after taking the steps described above, the problem has not been resolved, let’s proceed to clearing the Host file on your device.

Not all viruses can be detected antivirus program. In particular, those that are added to your system using the Host. A virus may simply block your access to certain sections of the site (applications, audio files, messages, etc.).

And so, you need to edit this file and save the changes made there. You can read about how to do this in our publication “”. Compiled there full review all actions that need to be performed.

What Causes a JavaScript Error?

Error JavaScript occurs due to problems on the server side of the project you are logged into or because of your browser.

There are many types of these errors. Here are the most common ones:

    1. “JavaScript error: Cannot set property ‘onChange’ of undefined” - come here, it should go away on its own. The problem is with the site itself, not with the users.
    2. “JavaScript error: cannot read property “length” of undefined” 0 problem on the site side. Wait a few minutes/hours and try again.
    3. “JavaScript error: cannot convert “opts.photos” to object” - right-click on the inscription and restart the browser.
    4. “JavaScript error: initAddMedia is not defined” - do everything as for error No. 5 and clear the HOSTS file.
    5. “JavaScript error: ge(“gp_play_large”) is null” - update Flash Player, you can do it by link and install the latest version Java .
    6. “JavaScript error mutations are not initialized” - clear cache memory and cookies in the browser.
    7. “JavaScript error uisearch is not defined” - in the browser settings, allow the use of JS on sites.
    8. “JavaScript error unexpected token” - check the link is correct, a letter or number may be missing.
    9. “JavaScript error adslight is not defined” - do the same as with error No. 6.

If you get any similar error, write about it in the comments and we will definitely help you and tell you what to do to fix it!

The article was updated and supplemented: 03/16/2019.

GD Star Rating
a WordPress rating system

How to remove VKontakte JavaScript error, 4.5 out of 5 based on 12 ratings