[Xerte] updating to 1.5

Tianna Tagami ttagami at asu.edu
Mon Sep 7 20:11:02 BST 2009


I downloaded the 1.5 update and replaced my old xertetoolkits folder
in the xamp folder with the new one, but couldn't access it. I got a signin
page instead of my regular home page showing my projects. So, I uninstalled
everything, including XAMPP and reinstalled. Now I get the right page when I
go to http://localhost/xertetoolkits/setup/, but when I click set up for
XAMPP people, I get this error message:


Sorry, the attempt to connect to the host has failed. MySQL reports the
following error -

Sorry, the attempt to create the database to the database has failed. MySQL
reports the following error -

Sorry, the attempt to specify which database we need to work on (the MySQL
keyword - USE) has failed. MySQL reports the following error -

Sorry, The query has failed. MySQL reports the following error -

Sorry, The query has failed. MySQL reports the following error -

Toolkits has been installed.
Please go to http://localhost/xertetoolkits/

Please see the Xerte site at http://www.nottingham.ac.uk/xerte and please
consider joining the mailing list.


It says toolkits has been installed, but when I go to
http://localhost/xertetoolkits/, I just get all this gobbelty gook:

site_session_name); session_start(); } include
$xerte_toolkits_site->php_library_path . "login_library.php"; include
$xerte_toolkits_site->php_library_path . "display_library.php"; /** * Check
to see if anything has been posted to distinguish between log in attempts */
if((!isset($_POST["login"]))&&(!isset($_POST["password"]))){ $buffer =
login_page_format_top(file_get_contents($xerte_toolkits_site->root_file_path
. $xerte_toolkits_site->website_code_path . "login_top")); $buffer .=
$form_string; $buffer .=
login_page_format_bottom(file_get_contents($xerte_toolkits_site->root_file_path
. $xerte_toolkits_site->website_code_path . "login_bottom")); echo $buffer;
} /* * Some data has bee posted, interpret as attempt to login */ if
($_SERVER['REQUEST_METHOD'] == 'POST') { /** * Username and password left
empty */ if(($_POST["login"]=="")&&($_POST["password"]=="")){ $buffer =
login_page_format_top(file_get_contents($xerte_toolkits_site->root_file_path
. $xerte_toolkits_site->website_code_path . "login_top")); $buffer .= "
Please enter your username and password

"; $buffer .=
login_page_format_bottom(file_get_contents($xerte_toolkits_site->root_file_path
. $xerte_toolkits_site->website_code_path . "login_bottom")); echo $buffer;
/* * Username left empty */ }else if($_POST["login"]==""){ $buffer =
login_page_format_top(file_get_contents($xerte_toolkits_site->root_file_path
. $xerte_toolkits_site->website_code_path . "login_top")); $buffer .= "
Please enter your username

"; $buffer .=
login_page_format_bottom(file_get_contents($xerte_toolkits_site->root_file_path
. $xerte_toolkits_site->website_code_path . "login_bottom")); echo $buffer;
/* * Password left empty */ }else if($_POST["password"]==""){ $buffer =
login_page_format_top(file_get_contents($xerte_toolkits_site->root_file_path
. $xerte_toolkits_site->website_code_path . "login_top")); $buffer .= "
Please enter your password

"; $buffer .=
login_page_format_bottom(file_get_contents($xerte_toolkits_site->root_file_path
. $xerte_toolkits_site->website_code_path . "login_bottom")); echo $buffer;
/* * Password and username provided, so try to authenticate */ }else
if(($_POST["login"]!="")&&($_POST["password"]!="")){ /* * See if the
submitted values are valid logins */
if(valid_login($_POST["login"],$_POST["password"])){ /* * Give the session
its own session id */ $_SESSION['toolkits_sessionid'] = $session_id; /* *
Get some user details back from LDAP */ $entry =
get_user_details($_POST["login"],$_POST["password"]);
$_SESSION['toolkits_firstname'] = $entry[0][givenname][0];
$_SESSION['toolkits_surname'] = $entry[0][sn][0]; include
$xerte_toolkits_site->php_library_path . "database_library.php"; include
$xerte_toolkits_site->php_library_path . "user_library.php";
$mysql_id=database_connect("index.php database connect success","index.php
database connect fail"); $_SESSION['toolkits_logon_username'] =
$_POST["login"]; /* * Check to see if this is a users' first time on the
site */ if(check_if_first_time($_SESSION['toolkits_logon_username'])){ /* *
create the user a new id */ $_SESSION['toolkits_logon_id'] =
create_user_id(); /* * create a virtual root folder for this user */
create_a_virtual_root_folder(); }else{ /* * User exists so update the user
settings */ $_SESSION['toolkits_logon_id'] = get_user_id();
update_user_logon_time(); } recycle_bin(); /* * Output the main page,
including the user's and blank templates */ echo
file_get_contents($xerte_toolkits_site->website_code_path .
"management_headers"); echo "


What did I do wrong?

Thanks!
Tianna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20090907/39ce1a86/attachment.html


More information about the Xerte mailing list