Fix: Javascript Error Occurred In The Main Process

If you’re experiencing issues with your interactive sầu functionality this may be due lớn JavaScript errors or conflicts. For example, your flyout menus may be broken, your metaboxes don’t drag, or your add media buttons aren’t working. In order khổng lồ formulate your tư vấn request it helps the team to know what the JavaScript error is.

Bạn đang xem: Fix: javascript error occurred in the main process

This guide will show you how khổng lồ diagnose JavaScript issues in different browsers.

Step 1: Try Another Browser # Step 1: Try Another Browser

To make sure that this is a JavaScript error, & not a browser error, first of all try opening your site in another browser.

if the site is not having the same issue in the new browser you know that the error is browser specificif the site is having the same error it is not an error that is specific lớn one browser

Make note of any browsers you are experiencing the error in. You can use this information when you are making a support request.

Top ↑

Step 2: Enable SCRIPT_DEBUG # Step 2: Enable SCRIPT_DEBUG

You need to lớn turn on script debugging. Open wp-config.php và add the following line before “That’s all, stop editing! Happy blogging”.

define("SCRIPT_DEBUG", true);Chechồng lớn see if you are still having an issue.

Issue is fixed – turn off script debugging and report the issue on the support diễn đàn, telling the volunteers that you turned on script debugging & it solved the problem.Issue persists – proceed to Step 3.

Top ↑

Step 3: Diagnosis # Step 3: Diagnosis

Now that you know which browsers you are experiencing issues in you can start to lớn diagnose the issue.

Chrome # Chrome

1. xuất hiện the DevTools

Press Command+Option+J (Mac) or Control+Shift+J (Windows, Linux, Chrome OS) lớn jump straight inkhổng lồ the Console panel of Chrome DevTools.

Xem thêm: array param function php

Or, navigate khổng lồ More Tools > Developer Tools from Chrome menu, & click Console tab.

2. Identify the Error

The error console will open. If you don’t see any errors try reloading the page. The error may be generated when the page loads.

The console will provide you with the error type, the location of the error & the line number

*

Top ↑

Edge # Edge

Refer above sầu Chrome section.

Top ↑

Internet Explorer # Internet Explorer

Bear in mind, IE behaves vastly differently from other browsers when it comes lớn JS errors, & reports on them in disparate ways. The first thing khổng lồ kiểm tra when facing a problem in IE is if the problem only exists in IE. Also note that the debugging tools built into lớn some IE versions are limited, & may not be available.

1. xuất hiện the Console

Go khổng lồ the screen where you are experiencing the error. In Internet Explorer, navigate lớn Settings > F12 Developer Tools. Or click F12

Clichồng on the Console tab.

*

The image above sầu shows the error khổng lồ be in jquery.js on line 2.

Top ↑

Safari # Safari

1. Enable Developer Tools

Navigate lớn Safari > Preferences > Advanced and check the box that says Show Develop menu in menu bar

*

The image above shows the error lớn be in jquery.js on line 2.

Note: If you cannot see the error cliông chồng the bachồng button within the console.

*

The image above sầu shows the error to be in jquery.js on line 2, however rethành viên lớn copy the whole staông xã information! Just saying what line is less helpful that showing context.

Top ↑

Step 4: Reporting # Step 4: Reporting

Now that you have sầu diagnosed your error, you should make your tư vấn diễn đàn request. Go khổng lồ the troubleshooting diễn đàn.

If your problem is with a specific theme or plugin, you can access their dedicated tư vấn diễn đàn by visiting https://obatambeienwasirherbal.com/support/plugin/PLUGINNAME or https://obatambeienwasirherbal.com/support/theme/THEMENAME

Please include the below information:

the browsers that you are experiencing the problem inwhether SCRIPT_DEBUG fixed the error or notthe JavaScript errorthe location of the error – both the file name & the line numberthe context of the error – including the whole error staông xã will help developers