Hello, I'm receiving the below message when I open the Combu web app. I've set the database up as demonstrated in the video and configured my local web server as instructed in the documentation( http://skaredcreations.com/api/combu/page_server.html) . I'm sure it's probably something I'm doing wrong but I can't figure it out. Hope you can help.
Regards,
Andrew.
IsLogged()) { $usersOnlineTicks = time() - ONLINE_SECONDS; // Get some stats to display $admins = DataClass::CountRecords(CB_AdminAccount::TABLE_NAME); $users = DataClass::CountRecords(CB_Account::TABLE_NAME); $users_online = DataClass::CountRecords(CB_Session::TABLE_NAME, sprintf("LastActionDate >= '%s' GROUP BY IdAccount", date("Y-m-d H:i:s", $usersOnlineTicks))); $leaderboards = DataClass::CountRecords(CB_LeaderBoard::TABLE_NAME); $scores = DataClass::CountRecords(CB_LeaderBoard_User::TABLE_NAME); $achievements = DataClass::CountRecords(CB_Achievement::TABLE_NAME); $news = DataClass::CountRecords(CB_News::TABLE_NAME); $newsletters = DataClass::CountRecords(CB_Newsletter::TABLE_NAME); } else { // Create a default account if the Admin Account table is empty if (CB_AdminAccount::CountRecords(CB_AdminAccount::TABLE_NAME) == 0) { $AdminLogged = new CB_AdminAccount(); $AdminLogged->Username = "admin"; $AdminLogged->Password = md5("admin"); if ($AdminLogged->Save()) { CB_AdminAccount::SetSession($AdminLogged); Utils::RedirectTo(); } else $error = "Error creating the default admin account (" . htmlentities (mysql_error(), ENT_QUOTES) . ")"; } // Login action requested if (!$error && isset($_REQUEST["action"]) && $_REQUEST["action"] == "login") { $username = (!isset($_REQUEST["Username"]) ? NULL : trim(stripslashes($_REQUEST["Username"]))); $password = (!isset($_REQUEST["Password"]) ? NULL : trim(stripslashes($_REQUEST["Password"]))); if ($username && $password) { $account = NULL; if (CB_AdminAccount::CheckLogin($username, $password, $account)) { CB_AdminAccount::SetSession($account); Utils::RedirectTo(); } else { $error = "Username and/or Password invalid"; } } } } ?> IsLogged()) { ?>
This has been explained many times, you missed the point 2 of the section "Local machine":
Edit the file php.ini (if you're using XAMPP then it's usually located in the folder xamppfiles/etc) and assign the value On to the variable short_open_tag (the line should look like: short_open_tag=On)
FRANCESCO CROCETTI @ SKARED CREATIONS
I'd had actually set that but turned out to be for the wrong web server. Didn't realise there was an old one installed. Sorry about that.
Many Thanks
lol ok no problem 😉
FRANCESCO CROCETTI @ SKARED CREATIONS