1
Hey how are you all going? I thought I would enquire about this bug I have just found upgrading labs.coop to XOOPS 2.5.8 ~ do you test this on an Ubuntu environment or WAMP cause it upgraded
http://helpingkidsfoundation.org/ without any worries but when I put it on
http://labs.coop I get the following error:
Quote:
A problem has occurred on our server!
Page is currently unavailable
We are working on a fix
Please come back soon ...
Error : Error: Class 'Xmf\IPAddress' not found
Notabilty I know trabis has been working on a new Xmf wrapping handler this is obviously it but for some reason It is throwing this error, if you need a copy of the filebase and database let me know, also seeming there will have to be now a XOOPS 2.5.9 can I request for load balancing the following changes to the MySQL Database for the final before we cross over to the next database handling platform in XOOPS 2.6..
// changes for SQL Transaction for Single End Session Writting ~ Load balancing
// class/database/mysqldatabase.php
class XoopsMySQLDatabase extends XoopsDatabase
{
/**
* Database connection
*
* @var mysqli
*/
public $conn;
/**
* fired with the class destructs
*
*/
public function __destruct()
{
$this->queryF('COMMIT');
}
/**
* connect to the database
*
* @param bool $selectdb select the database now?
* @return bool successful?
*/
public function connect($selectdb = true)
{
static $db_charset_set;
if (!extension_loaded('mysqli')) {
trigger_error('notrace:mysqli extension not loaded', E_USER_ERROR);
return false;
}
$this->allowWebChanges = ($_SERVER['REQUEST_METHOD'] !== 'GET');
if ($selectdb) {
$dbname = constant('XOOPS_DB_NAME');
} else {
$dbname = '';
}
if (XOOPS_DB_PCONNECT == 1) {
$this->conn = new mysqli('p:' . XOOPS_DB_HOST, XOOPS_DB_USER, XOOPS_DB_PASS, $dbname);
} else {
$this->conn = new mysqli(XOOPS_DB_HOST, XOOPS_DB_USER, XOOPS_DB_PASS, $dbname);
}
if (!$this->conn) {
$this->logger->addQuery('', $this->error(), $this->errno());
return false;
}
if (!isset($db_charset_set) && defined('XOOPS_DB_CHARSET') && XOOPS_DB_CHARSET) {
$this->queryF("SET NAMES '" . XOOPS_DB_CHARSET . "'");
}
$db_charset_set = 1;
$this->queryF('SET SQL_BIG_SELECTS = 1');
// Start SQL Transaction
$this->queryF('START TRANSACTION');
return true;
}
//.......
}
Notice the changes is only introducing a __destruct as well as 1 line added to the connect with is calling the Opening to an SQL Transaction and is commited when the class to the database destructs...
Download a Font ~ http://fonts.labs.coop