Hi all, need some help from you, i upload the php scripts to the server and when i click on my link: http://www.cozyfeel.com/tracker/install/install.php, it gives me this error of Error: file /install/tree.chk is missing. Hope to get some solutions oon.. The script are: <?php // $Id: install.php 236 2007-09-17 08:21:46Z adgar $ error_reporting(0); if (0 == intval(ini_get('safe_mode'))) set_time_limit(0); ini_set('memory_limit', '16M'); session_start(); ob_start(); $flagfile = '../config/instflag'; $finalstep = 4; $configfile = '../config/config.php'; if (!file_exists($flagfile)) { if ((isset($_GET['step']))) $_SESSION['step']=$_GET['step']; elseif (!isset($_SESSION['step'])) $_SESSION['step'] = 1; } else { $_SESSION['step'] = 4; } if (1 == $_SESSION['step']) { $tree = unserialize(file_get_contents('tree.chk')); if (false === $tree) { echo "<strong>Error:</strong> file /install/tree.chk is missing"; exit(); } $is_iis = (boolean) preg_match("/IIS/i", $_SERVER['SERVER_SOFTWARE']); $corrupt_files = array(); foreach ($tree as $file => $size) { if (!($is_iis && false !== strstr($file, '.htaccess'))) { if (!file_exists('..' . $file)) $corrupt_files[] = $file; } } if (0 != count($corrupt_files)) { echo "<br>AffiliatePro distribution is incomplete, following files were not found:</strong><br>"; echo implode("<br>", $corrupt_files); echo "<br>Please make sure all files from distribution on your server."; exit(); } unset($tree, $is_iss, $corrupt_files); } if (file_exists($configfile)) { require_once('../affiliate/cfg.php'); } else { $include_path=array( './', realpath('../config'), realpath('../lib'), realpath('../include') ); ini_set('include_path', implode(PATH_SEPARATOR, $include_path)); } require_once('xtemplate.class.php'); $filename='templates/main.html'; $xtpl=new XTemplate($filename); /* BEGIN: step_menu*/ $stepmenu[]=array('number'=>'1', 'description'=>'Create Database', 'link'=>'install.php?step=1'); $stepmenu[]=array('number'=>'2', 'description'=>'Primary Admin Setup', 'link'=>'install.php?step=2'); $stepmenu[]=array('number'=>'3', 'description'=>'Site Setup', 'link'=>'install.php?step=3'); for ($i=0; $i<count($stepmenu); $i++) { $xtpl->assign('curentstep',($_SESSION['step']==($i+1))?'<img src="images/li.png" border="0">':' '); $xtpl->assign('stepnumber', $stepmenu[$i]['number']); $xtpl->assign('stepdescription', ($_SESSION['step']==($i+1))?'<strong>'.$stepmenu[$i]['description'].'</strong>':$stepmenu[$i]['description']); // $xtpl->assign('steplink', $stepmenu[$i]['link']); $xtpl->parse('main.step_menu.loop'); } $xtpl->parse('main.step_menu.'); if ($_SESSION['step']!=$finalstep) $xtpl->parse('main.step_menu'); /* END: step_menu*/ /* BEGIN: current_template*/ $filename='step' . $_SESSION['step']; $xtpl->assign_file('CURRENTTEMPLATE','templates/' . $filename . '.html'); require_once('php/' . $filename . '.php'); /* END: current_template*/ $xtpl->parse('main.template'); /* BEGIN: buttonts_panel*/ //prev button if (!in_array($_SESSION['step'], array(1, 2, $finalstep))) { $xtpl->assign('ONCLICK1', "onClick=\"window.location.href='install.php?step=".($_SESSION['step']-1)."';\""); } else { $xtpl->assign('DISABLE1', 'disabled="disabled"'); } //next button if (!in_array($_SESSION['step'], array($finalstep-1, $finalstep))) { $xtpl->assign('ONCLICK2', "onClick=\"javascript:document.getElementById('dataform').submit();\""); } else { $xtpl->assign('DISABLE2', 'disabled="disabled"'); } //finish button if (in_array($_SESSION['step'], array($finalstep-1))) { $xtpl->assign('ONCLICK3', "onClick=\"javascript:document.getElementById('dataform').submit();\""); } else { $xtpl->assign('DISABLE3', 'disabled="disabled"'); } if ($_SESSION['step'] != ($finalstep)) { $xtpl->parse('main.buttonts_panel'); } /* END: buttonts_panel*/ $xtpl->parse('main'); $xtpl->out('main'); ?> PHP: thanks
Hello alsonkimichi, From the given error it looks like the file "tree.chk" in missing, check that file tree.chk is in your install folder. If the file is present and still you are getting error then reupload the file again in binary format. Gonzo
Hey,alsonkimichi,do you have any demo site of Affiliates Pro v3 php error ?i also want to use this software