Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PgAdmin for Windows in the latest version (4.28) doesn't start anymore, hangs in the loading screen and shows JavaScript errors in the browser console

PgAdmin in the latest version (4.28) doesn't start anymore, hangs in the loading screen and shows JavaScript errors in the browser console. What can I do?

like image 774
FranzHuber23 Avatar asked Nov 18 '20 10:11

FranzHuber23


People also ask

How do I run pgAdmin in my browser?

To open pgAdmin, select pgAdmin4 from the EDB Postgres menu. The client opens in your default browser. To connect to the Advanced Server database server, expand the Servers node of the Browser tree control, and right click on the EDB Postgres Advanced Server node. When the context menu opens, select Connect Server .

How do I change my default browser on pgAdmin?

With the latest version of pgAdmin4, developers have added copy URL option on right click on tray icon, Download the latest version then right click on pgAdmin4 tray icon which will give you option to Copy URL, once you click that option then open your desired browser and paste the URL and hit Enter.

How do I exit pgAdmin 4 Windows 10?

I already know how to do it in the GUI: you find the elephant icon in the Notification area, right-click it, and click "Shut down server".


1 Answers

The solution is simple although I don't really know why it occurs from that version on:

  1. Open the registry editor (Search for regedit.exe)
  2. Run it as administrator
  3. Navigate to Computer\HKEY_CLASSES_ROOT\.js
  4. Adjust Content Type from text/plain to text/javascript
  5. Restart pgAdmin and it should work again.
  6. Maybe, you will have to clean your browser cache or restart your computer as well (Thanks to the Kassym and Bruce).

As already I said, I have no idea why or how this happens, maybe someone from the team can add this as a comment here and I will update my answer.

like image 105
FranzHuber23 Avatar answered Oct 16 '22 22:10

FranzHuber23