just go to the settings and click the button to switch the directory to what the IPB recognizes as the default.
1. did you get this error when you installed the IPB recently as soon as you logged in ACP. if so try a different IPB 3.4.X from Downloads.
2. did you restore a old DB or any old version of a IPB forums (like a old IPB forums home directory).