• 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

Fatal error

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

Post a reply
7 posts • Page 1 of 1

Postby darkshado » Mon Mar 06, 2006 9:42 am

Hi every one i got this fatal error when i type that on the web navigator! http://moustic93.free.fr/phpfreechat-0.8/index.php


Fatal error: The xajax uncompressed Javascript file could not be found in the ./xajax_js folder. Error in /var/www/sdc/c/0/moustic93/phpfreechat-0.8/lib/xajax_0.2_stable/xajax.inc.php on line 557

plz can some one help me thx!
darkshado
New member
 
Posts: 4
Joined: Mon Mar 06, 2006 8:10 am
Top

Postby phpfreechat » Mon Mar 06, 2006 10:10 am

Yes,
your server configuration is strange, phpfreechat is not able to calculate automaticaly the urls.
I suggest to look at this working demo which uses hardcoded urls into parameters : http://moustic93.free.fr/phpfreechat-0. ... d_urls.php

Hope that helps,
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby darkshado » Mon Mar 06, 2006 11:12 am

Thx!
Stéphane i have to put this source code on index.php?
darkshado
New member
 
Posts: 4
Joined: Mon Mar 06, 2006 8:10 am
Top

Postby phpfreechat » Mon Mar 06, 2006 11:40 am

Yes, or at any place you want, maybe you whould like to create a customized chat.php script ?

But be carrefull, if you change the scripte, the harcoded path must be changed!
I speak about these parameters:
Code: Select all
$params["data_public_url"]   = "../data/public";
$params["client_script_url"] = "./demo21_with_hardcoded_urls.php";
$params["server_script_url"] = "./demo21_with_hardcoded_urls.php";
$params["themeurl"]          = "../themes";

regards,
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby darkshado » Mon Mar 06, 2006 12:37 pm

i mine sorry but i m a newbie for the php language

copy and paste that in index.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
$params["data_public_url"]   = "../data/public";
$params["client_script_url"] = "./demo21_with_hardcoded_urls.php";
$params["server_script_url"] = "./demo21_with_hardcoded_urls.php";
$params["themeurl"]          = "../themes";
$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>
darkshado
New member
 
Posts: 4
Joined: Mon Mar 06, 2006 8:10 am
Top

Postby phpfreechat » Mon Mar 06, 2006 1:37 pm

I said : "But be carrefull, if you change the script, the harcoded path must be changed!"
So yes, but adjust the paths.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby darkshado » Mon Mar 06, 2006 1:42 pm

ok thx! sorry for the trooble!
darkshado
New member
 
Posts: 4
Joined: Mon Mar 06, 2006 8:10 am
Top


Post a reply
7 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 12 guests

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