I am trying to migrate my website from one place to another. while doing so, i have uploaded all the files to new location, and setup my variables properly, but still i am getting this error msg:
Template Error: set_root: /var/chroot/home/content/33/5956433/html/templates is not a directory.
Halted.
global $SVP;
global $SVP_Main;
global $SUP;
$R=DIN_ALL($_REQUEST);
$t=new Template($SUP."templates");
$t->set_file("MyFileHandle","show_login.htm");
$t->set_var(array("msg"=>$msg,"SVP"=>$SVP,"SVP_Main"=>$SVP_Main,));
$t->parse("MyOutPut","MyFileHandle");
parse_index_c($t->get("MyOutPut"));
The root might be a setting saved in a database table or a config file. If you’re moving it to another host (or another folder) then that root has to be changed as well.
Did you make a backup of the database? Do a search for ‘/var/chroot/home/content/33/5956433/html/’ (or a part of that) in the backup.
Also check if there are any config.php files (they might have another name of course) that contain that string.
One of the elements present in the $_SERVER superglobal should give you the correct value, but I don’t remember which one.
Try putting a print_r($_SERVER); in your code and see what pops up.
Edit: accoring to the first user note on that page, $_SERVER[“DOCUMENT_ROOT”] should contain what you need.