• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

can\'t find solution

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
14 posts • Page 1 of 1

Postby creawebshop » Thu Mar 16, 2006 9:19 am

toujours la meme erreur

Fatal error: The xajax uncompressed Javascript file could not be found in the ome/.sites/132/site12/web/test/data/public/xajax_js folder. Error in /home/.sites/132/site12/web/test/lib/xajax_0.2_stable/xajax.inc.php on line 557

et ca ne marche pas
J'ai regartdé les différents sujet mais je n'arrive pas à trouver de solution
creawebshop
Member
 
Posts: 10
Joined: Tue Mar 14, 2006 9:32 am
Top

Postby phpfreechat » Thu Mar 16, 2006 9:40 am

Could you give me the url of your chat installation ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby creawebshop » Thu Mar 16, 2006 9:51 am

http://www.creawebshop.com/test/index2.php
creawebshop
Member
 
Posts: 10
Joined: Tue Mar 14, 2006 9:32 am
Top

Postby phpfreechat » Thu Mar 16, 2006 10:10 am

Could you try with this script (name it index3.php and place it as a sibling of test/index2.php) :
Code: Select all
<?php

require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["serverid"]       = md5(__FILE__); // calculate a unique id for this chat
$params["title"]          = "A chat with a hardcoded urls";
$params["nick"]           = "guest";  // setup the intitial nickname

// setup urls
$params["data_public_url"]   = "./data/public";
$params["client_script_url"] = "./index3.php";
$params["server_script_url"] = "./index3.php";
$params["themeurl"]          = "./themes";
$params["themeurl_default"]  = "./themes";

// setup paths
$params["container_type"]         = "File";
$params["container_cfg_chat_dir"] = dirname(__FILE__)."/data/private/chat";

$chat = new phpFreeChat( $params );

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>phpFreeChat demo</title>

    <?php $chat->printJavascript(); ?>
    <?php $chat->printStyle(); ?>

  </head>

  <body>
  <?php $chat->printChat(); ?>

<?php
  // print the current file
  echo "<h2>The source code</h2>";
  $filename = __FILE__;
  echo "<p><code>".$filename."</code></p>";
  echo "<pre style="margin: 0 50px 0 50px; padding: 10px; background-color: #DDD;">";
  $content = file_get_contents($filename);
  echo htmlentities($content);
  echo "</pre>";
?>

<?php
  echo "<h2>Debug</h2>";
  echo "<pre>";
  $c =& phpFreeChatConfig::Instance();
  print_r($c);
  print_r($_SERVER);
  echo "</pre>";
?>

  </body>
</html>

keep me informed.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby creawebshop » Thu Mar 16, 2006 11:06 am

The chat is on the window but when it's connect it tell me that :
And do it the same when i want to write message


creawebshop wrote:it give me a php panel erroe with :

[WARNING] touch(); ...........................

[WARNING] readdir();.............................

[WARNING] array_slice();........................

[WARNING] implode();.................................

ect....
creawebshop
Member
 
Posts: 10
Joined: Tue Mar 14, 2006 9:32 am
Top

Postby phpfreechat » Thu Mar 16, 2006 11:08 am

Ok, I see.

Try with this new one (name it index4.php, place it as a sibling of test/index2.php) :
Code: Select all
<?php

require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["serverid"]       = md5(__FILE__); // calculate a unique id for this chat
$params["title"]          = "A chat with a hardcoded urls";
$params["nick"]           = "guest";  // setup the intitial nickname

// setup urls
$params["data_public_url"]   = "./data/public";
$params["client_script_url"] = "./index4.php";
$params["server_script_url"] = "./index4.php";
$params["themeurl"]          = "./themes";
$params["themeurl_default"]  = "./themes";

// setup paths
$params["container_type"]             = "File";
$params["container_cfg_chat_dir"]     = dirname(__FILE__)."/data/private/chat/mychannel";
$params["container_cfg_data_file"]    = $params["container_cfg_chat_dir"]."/messages.data";
$params["container_cfg_index_file"]   = $params["container_cfg_chat_dir"]."/messages.index";
$params["container_cfg_nickname_dir"] = $params["container_cfg_chat_dir"]."/nicknames";

$chat = new phpFreeChat( $params );

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>phpFreeChat demo</title>

    <?php $chat->printJavascript(); ?>
    <?php $chat->printStyle(); ?>

  </head>

  <body>
  <?php $chat->printChat(); ?>

<?php
  // print the current file
  echo "<h2>The source code</h2>";
  $filename = __FILE__;
  echo "<p><code>".$filename."</code></p>";
  echo "<pre style="margin: 0 50px 0 50px; padding: 10px; background-color: #DDD;">";
  $content = file_get_contents($filename);
  echo htmlentities($content);
  echo "</pre>";
?>

<?php
  echo "<h2>Debug</h2>";
  echo "<pre>";
  $c =& phpFreeChatConfig::Instance();
  print_r($c);
  print_r($_SERVER);
  echo "</pre>";
?>

  </body>
</html>

keep me informed.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby creawebshop » Thu Mar 16, 2006 11:19 am

samething but more error
creawebshop
Member
 
Posts: 10
Joined: Tue Mar 14, 2006 9:32 am
Top

Postby phpfreechat » Thu Mar 16, 2006 11:43 am

Could you manually create these directories and "chmod 777" it :

Code: Select all
test/data/private/chat/
test/data/private/chat/mychannel/
test/data/private/chat/mychannel/nicknames/

keep me informed.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby creawebshop » Thu Mar 16, 2006 11:48 am

thinks it's working
but i must refresh for see the message
Last edited by creawebshop on Thu Mar 16, 2006 11:50 am, edited 1 time in total.
creawebshop
Member
 
Posts: 10
Joined: Tue Mar 14, 2006 9:32 am
Top

Postby phpfreechat » Thu Mar 16, 2006 11:56 am

could you create this file :

Code: Select all
test/version

with this content :
Code: Select all
0.8
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby phpfreechat » Thu Mar 16, 2006 12:00 pm

And replace index4.php with this content (it add the debug flags) :

Code: Select all
<?php

require_once dirname(__FILE__)."/src/phpfreechat.class.php";
$params = array();
$params["serverid"]       = md5(__FILE__); // calculate a unique id for this chat
$params["title"]          = "A chat with a hardcoded urls";
$params["nick"]           = "guest";  // setup the intitial nickname

$params["debug"]          = true;     // activate debug console
$params["debugxajax"]     = true;     // activate xajax debug (js popup)

// setup urls
$params["data_public_url"]   = "./data/public";
$params["client_script_url"] = "./index4.php";
$params["server_script_url"] = "./index4.php";
$params["themeurl"]          = "./themes";
$params["themeurl_default"]  = "./themes";

// setup paths
$params["container_type"]             = "File";
$params["container_cfg_chat_dir"]     = dirname(__FILE__)."/data/private/chat/mychannel";
$params["container_cfg_data_file"]    = $params["container_cfg_chat_dir"]."/messages.data";
$params["container_cfg_index_file"]   = $params["container_cfg_chat_dir"]."/messages.index";
$params["container_cfg_nickname_dir"] = $params["container_cfg_chat_dir"]."/nicknames";

$chat = new phpFreeChat( $params );

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>phpFreeChat demo</title>

    <?php $chat->printJavascript(); ?>
    <?php $chat->printStyle(); ?>

  </head>

  <body>
  <?php $chat->printChat(); ?>

<?php
  // print the current file
  echo "<h2>The source code</h2>";
  $filename = __FILE__;
  echo "<p><code>".$filename."</code></p>";
  echo "<pre style="margin: 0 50px 0 50px; padding: 10px; background-color: #DDD;">";
  $content = file_get_contents($filename);
  echo htmlentities($content);
  echo "</pre>";
?>

<?php
  echo "<h2>Debug</h2>";
  echo "<pre>";
  $c =& phpFreeChatConfig::Instance();
  print_r($c);
  print_r($_SERVER);
  echo "</pre>";
?>

  </body>
</html>

keep me informed.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby creawebshop » Thu Mar 16, 2006 12:05 pm

i made the version file on server
Last edited by creawebshop on Thu Mar 16, 2006 12:23 pm, edited 1 time in total.
creawebshop
Member
 
Posts: 10
Joined: Tue Mar 14, 2006 9:32 am
Top

Postby phpfreechat » Thu Mar 16, 2006 12:36 pm

I think creating the version file just broke the almost working version ...
Now it doesn't seams to work anymore :

Fatal error: The xajax uncompressed javascript file could not be copied to the ./data/public/xajax_js folder. Error in /home/.sites/132/site12/web/test/lib/xajax_0.2_stable/xajax.inc.php on line 562

I don't know what to do ... you have a strange config and I don't understand what is the problem with it :(
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby creawebshop » Thu Mar 16, 2006 12:48 pm

thinks a lot for trying
creawebshop
Member
 
Posts: 10
Joined: Tue Mar 14, 2006 9:32 am
Top


Post a reply
14 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 14 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub