Can't figure out the home path
If you're having difficulty uploading images, creating a backup, viewing the custom template box or if you get a strange error on your main site, the site's home path might be incorrect. You might also just not see any include content on your pages - they will just be blank. If this happens, the most likely culprit is the SB_HOME_PATH constant (or $Home_Path in versions under 2.7) in the stconfig.php page. The fix is to correct this variable.
Version 2.62 or Higher
-
Log in to the storeadmin area with your master key.
-
On the initial home screen, look for the 'Config Path Variable'. This will tell you what the system thinks the home path should be.
-
Copy the path that is displayed, then enter that value into the config.php file in your /sbconf/ folder, without the trailing slash.
For example, if the path reads
/home/mysite/public_html/
In your config.php file, use:
define("SB_HOME_PATH", "/home/mysite/public_html"); - Save and reload the config file.
Version 2.55
The easiest way to get the correct path is to:
-
Open the stconfig.php page.
-
Change the first line from:
to:
and save the file.
-
Go to your web site. You should see a message that looks something like:
Parse error: syntax error, unexpected T_VARIABLE in /home/joeschmo/public_html/stconfig.php on line 3
The home path is most likely the part up until the stconfig.php page - so in the above case, it would be
"/home/joeschmo/public_html"
Alternately, you can also create a page called 'checkpath.php' and in that page, type:
Then save the page and load it to your web site. Go to that page in your browser, and it should show you the correct path.
-
When you have determined your path, be sure to change the stconfig.php file back to the way it was before.
Hints:
-
On Windows servers, a path might look like:
D:servernamesitenamepath
If that path doesn't work, change the back slashes to forward slashes:
D:/servername/sitename/path
-
Use only the path up to the /secure/ directory. For instance, if an error shows a path as:
/home/candyland/public_html/shoponline/secure/dbconfig.php
Try the path:
/home/candyland/public_html/shoponline
NOTE: None of these methods is foolproof. While one of the above will work 99% of the time, the occasional server may have a different root path than is shown using the above methods. If none of the above works for you, your best bet is to contact your web host and ask them for the correct file path to the public directory of your site, which is the only 100% guaranteed method of finding the web host.