Forums / Cotonti / Extensions / Ajaxchat for error

fedai
#1 2009-05-08 02:45
Hi guys,

Ajaxchat system integrated to seditio

Neocrome.ru forum topic:
http://www.neocrome.ru/forums.php?m=posts&q=2800
Ajaxchat system website:
https://blueimp.net/ajax/

Download ajaxchat integrated to seditio:
http://slil.ru/27514551

Mywebsite install error:
Notice: Undefined index: system_dir in /home/xxx/public_html/system/functions.php on line 4564

Warning: require_once() [function.require-once]: Unable to access /xtemplate.class.php in /home/xxx/public_html/system/functions.php on line 4564

Warning: require_once(/xtemplate.class.php) [function.require-once]: failed to open stream: No such file or directory in /home/xxx/public_html/system/functions.php on line 4564

Fatal error: require_once() [function.require]: Failed opening required '/xtemplate.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/xxx/public_html/system/functions.php on line 4564


chat/lib/custom.php:
require('../system/functions.php');
require('../system/templates.php');
require('../datas/config.php');

Cotonti for system/templates.php Not Found
"peace in the homeland, peace in the world" K.ATATÜRK

personal blog:
http://www.sametbal.net
aiwass
#2 2009-05-08 03:30
Try if xtemplate.class.php instead of templates.php since there is no such thing in Cotonti.
Take all that money that we spend on weapons and defences each year and instead spend it feeding and clothing and educating the poor of the world, which it would many times over, not one human being excluded, and we could explore space, together, both inner and outer, forever, in peace. - Bill Hicks

https://evlear.com
fedai
#3 2009-05-08 05:03
I try but it didn't
"peace in the homeland, peace in the world" K.ATATÜRK

personal blog:
http://www.sametbal.net
Kilandor
#4 2009-05-08 05:22
The only version we had where we orginaly combined the file was in 0.0.1, 0.0.2/0.0.3/0.0.4 all have this file

Notice: Undefined index: system_dir in /home/xxx/public_html/system/functions.php on line 4564

Indicates your problem, this is a minor notice, and not a techincal error its saying $cfg['system_dir'] is not defined. Please compare your config file, with that of the config-sample.php

It would appear your missing these configs.
fedai
#5 2009-05-08 19:58
problem:
<?php
/*
 * @package AJAX_Chat
 * @author Sebastian Tschan
 * @copyright (c) Sebastian Tschan
 * @license GNU Affero General Public License
 * @link https://blueimp.net/ajax/
 */


define('SED_CODE', TRUE);

require('../system/functions.php');
require('../system/xtemplate.class.php');
require('../datas/config.php');

// START - common.php

/* ======== First... ======== */

set_magic_quotes_runtime(0);
define('MQGPC', get_magic_quotes_gpc());
error_reporting(E_ALL ^ E_NOTICE);

/* ======== Connect to the SQL DB======== */

require('../system/database.'.$cfg['sqldb'].'.php');
sed_sql_connect($cfg['mysqlhost'], $cfg['mysqluser'], $cfg['mysqlpassword'], $cfg['mysqldb']);
unset($cfg['mysqlhost'], $cfg['mysqluser'], $cfg['mysqlpassword']);

/* ======== Check the banlist ======== */

$userip = explode('.', $usr['ip']);
$ipmasks = "('".$userip[0].".".$userip[1].".".$userip[2].".".$userip[3]."','".$userip[0].".".$userip[1].".".$userip[2].".*','".$userip[0].".".$userip[1].".*.*','".$userip[0].".*.*.*')";

$sql = sed_sql_query("SELECT banlist_id, banlist_ip, banlist_reason, banlist_expire FROM $db_banlist WHERE banlist_ip IN ".$ipmasks, 'Common/banlist/check');

If (sed_sql_numrows($sql)>0)
	{
	$row=sed_sql_fetcharray($sql);
	if ($sys['now']>$row['banlist_expire'] && $row['banlist_expire']>0)
		{
		$sql = sed_sql_query("DELETE FROM $db_banlist WHERE banlist_id='".$row['banlist_id']."' LIMIT 1");
		}
	else
		{
		$disp = "Your IP is banned.<br />Reason: ".$row['banlist_reason']."<br />Until: ";
		$disp .= ($row['banlist_expire']>0) ? @date($cfg['dateformat'], $row['banlist_expire'])." GMT" : "Never expire.";
		sed_diefatal($disp);
		}
	}

/* ======== Groups ======== */

if (!$sed_groups )
	{
	$sql = sed_sql_query("SELECT * FROM $db_groups WHERE grp_disabled=0 ORDER BY grp_level DESC");

	if (sed_sql_numrows($sql)>0)
		{
		while ($row = sed_sql_fetcharray($sql))
			{
			$sed_groups[$row['grp_id']] = array (
				'id' => $row['grp_id'],
				'alias' => $row['grp_alias'],
				'level' => $row['grp_level'],
   				'disabled' => $row['grp_disabled'],
   				'hidden' => $row['grp_hidden'],
				'state' => $row['grp_state'],
				'title' => sed_cc($row['grp_title']),
				'desc' => sed_cc($row['grp_desc']),
				'icon' => $row['grp_icon'],
				'pfs_maxfile' => $row['grp_pfs_maxfile'],
				'pfs_maxtotal' => $row['grp_pfs_maxtotal'],
				'ownerid' => $row['grp_ownerid']
					);
			}
		}
	else
		{ sed_diefatal('No groups found.'); }

	sed_cache_store('sed_groups',$sed_groups,3600);
	}

/* ======== User/Guest ======== */

if ($cfg['authmode']==2 || $cfg['authmode']==3)
	{ session_start(); }

if (isset($_SESSION['rsedition']) && ($cfg['authmode']==2 || $cfg['authmode']==3))
	{
	$rsedition = $_SESSION['rsedition'];
	$rseditiop = $_SESSION['rseditiop'];
	$rseditios = $_SESSION['rseditios'];
	}
elseif (isset($_COOKIE['SEDITIO']) && ($cfg['authmode']==1 || $cfg['authmode']==3))
	{
	$u = base64_decode($_COOKIE['SEDITIO']);
	$u = explode(':_:',$u);
	$rsedition = sed_import($u[0],'D','INT');
	$rseditiop = sed_import($u[1],'D','PSW');
	$rseditios = sed_import($u[2],'D','ALP');
	}

if ($rsedition>0 && $cfg['authmode']>0)
	{

	$sql = sed_sql_query("SELECT * FROM $db_users WHERE user_id='$rsedition' AND user_password='$rseditiop'");

	if ($row = sed_sql_fetcharray($sql))
		{
		if ($row['user_maingrp']>3)
			{
			$usr['id'] = $row['user_id'];
			$usr['name'] = $row['user_name'];
			$usr['lang'] = ($cfg['forcedefaultlang']) ? $cfg['defaultlang'] : $row['user_lang'];
			$usr['maingrp'] = $row['user_maingrp'];
			$usr['level'] = $sed_groups[$usr['maingrp']]['level'];
			}
		}
	}


/* ======== Language ======== */
$usr['lang'] = (empty($_COOKIE['deflang'])) ? $cfg['defaultlang'] : $_COOKIE['deflang'];


// END - common.php

?>
"peace in the homeland, peace in the world" K.ATATÜRK

personal blog:
http://www.sametbal.net
Kilandor
#6 2009-05-08 20:13
Your loading Config.php last, it needs to be loaded before functions.php
Spuner
#7 2009-07-09 23:52
have an error:
Warning: require_once(./system/xtemplate.class.php) [function.require-once]: failed to open stream: No such file or directory in S:\home\revolution-pk.ru\www\system\functions.php on line 4769
Fatal error: require_once() [function.require]: Failed opening required './system/xtemplate.class.php' (include_path='.;/usr/local/php5/PEAR') in S:\home\revolution-pk.ru\www\system\functions.php on line 4769
when I go to http://revolution-pk.ru/chat/
What it's just need to do to have correct work of this plugin?