45

I tried Ctrl++, Ctrl+-, then pgAdmin4 v1.1 (on Windows 10 Pro x64) error. Then, I tried re-install, but error still exist:

enter image description here

How to fix this error?

Community
  • 1
  • 1
Vy Do
  • 46,709
  • 59
  • 215
  • 313

10 Answers10

85

RESET Layout :

1.The pgAdmin menu bar displays the following selections: File, Object, Tools, and Help.*

Use the File menu to access the following options:

File -> Reset Layout

OR

  1. Open the browser console and run following :-

pgAdmin.Settings.show()

This should pop up dialog: "Are you sure you want to reset the current layout? ..."

maddy
  • 1,109
  • 1
  • 6
  • 4
34

I had this error too. The menu item "Reset Layout" was not visible. Actually NO menu item was visible, so I dug up the actual method that is triggered by the "Reset Layout".

To fix, do this:

  • Open the browser console
  • Paste this JavaScrips code: pgAdmin.Settings.show()
  • This should pop up dialog: "Are you sure you want to reset the current layout? ..."
Louis
  • 822
  • 9
  • 12
20

Like a web-page, press Ctrl + 0 for reset zoom level.

Vy Do
  • 46,709
  • 59
  • 215
  • 313
12

Neither of the mentioned methods worked for me to reset the pgAdmin layout. Finally, what helped, was to delete the ..\AppData\Roaming\pgAdmin\ directory and install again.

Codigo
  • 366
  • 2
  • 9
  • 2
    This worked for me when my pgAdmin screen was essentially empty and the menu's didn't work, so couldn't use any of the other methods. – Levitybot Oct 15 '21 at 15:36
  • 1
    Thanks, @Codigo for your solution. It's saved my time & life as well. – Kunal Ghosh Jan 04 '22 at 11:54
  • Thank you, this works in version pgAdmin v7 for "Please select an object in the tree view" screen error. – LMigMa49 May 31 '23 at 14:15
  • No need to install, just deleted this file "pgadmin4.db" in ..AppData\Roaming\pgAdmin and it worked. – Ayaz49 Jul 15 '23 at 01:22
4

go to file option and select reset layout. https://www.pgadmin.org/docs/pgadmin4/dev/pgadmin_menu_bar.html

3

For the pgAdmin desktop app, I deleted the .pgadmin (hidden) folder from my Home Directory on my Unix machine. Using the command:

rm -rf ~/.pgadmin

But be aware as it will delete all your saved connections too.

Dürrani
  • 950
  • 12
  • 21
2

Zoom in: Ctrl + Shift + +

Zoom out: Ctrl + -

blueflamer
  • 44
  • 3
2

..\AppData\Roaming\pgAdmin\runtime_config.json

change prop "zoomLevel": 1,

1

I just had this problem where none of the menus worked, so I couldn't use the reset option, but I was able to close pgadmin and open it again which gave me access to the file menu and reset layout.

-1
rm -rf ~/.pgadmin

It's work. to reset layout for mac.

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Mar 21 '23 at 11:13