• 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

[FIX] HUMMM a little prob: FATEL ERROR

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

Post a reply
7 posts • Page 1 of 1

Postby arwizard68 » Sat Feb 11, 2006 7:52 pm

the following error occured the first time i ran the script.... and i still have not been able to get past it.

Fatal error: The xajax uncompressed Javascript file could not be found in the ../ome/[mydomain information]/html/chat/data/public//xajax_js folder. Error in /home/[mydomain information]/html/chat/lib/xajax_0.2_stable/xajax.inc.php on line 557


NOTICE the .../ome/ <-- in the first half of the error... never seen an error log like that. it should be --> /home/

NOTE of checks i did:
1) all dir are set to 777
2) fresh new xajax installed
3) searched the code for the problem <-- now that was a insteresting experiance.
4) using basic demo in the demo directory to run all test. (for consistancy)

I am lost as to why it would be doing this.

any ideas would be greatful.
arwizard68
New member
 
Posts: 5
Joined: Sat Feb 11, 2006 7:42 pm
Top

Postby phpfreechat » Sat Feb 11, 2006 8:04 pm

To help the debug :
- Which phpfreechat, php and apache version do you have ?
- Do you have a php cgi installation ?
- Could you post the result of this little script ?
Code: Select all
<?php  echo "<pre>"; print_r($_SERVER); echo "</pre>"; ?>
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby arwizard68 » Sat Feb 11, 2006 8:09 pm

Array
(
[SCRIPT_NAME] => /chat/xxx.php
[PATH_TRANSLATED] => /home/[my domaininfo]/html/chat/xxx.php
[SCRIPT_FILENAME] => /cgi-bin/php
[DOCUMENT_ROOT] => /home/[my domaininfo]/html
[HTTP_ACCEPT] => text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
[HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
[HTTP_ACCEPT_ENCODING] => gzip,deflate
[HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
[HTTP_CONNECTION] => keep-alive
[HTTP_COOKIE] => PHPSESSID=4b8a7dc1742db037ccbe0e241deef2c2
[HTTP_HOST] => www.arlocal.com
[HTTP_KEEP_ALIVE] => 300
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20051012 Netscape/8.0.4
[REMOTE_ADDR] => [my domaininfo]
[REMOTE_PORT] => 1789
[SCRIPT_URI] => http://www.arlocal.com/chat/xxx.php
[SCRIPT_URL] => /chat/xxx.xxx
[SERVER_ADMIN] => support@supportwebsite.com
[SERVER_NAME] => www.arlocal.com
[SERVER_PORT] => 80
[SERVER_SOFTWARE] => Apache
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /chat/xxx.php
[PATH_INFO] => /chat/xxx.php
[PATH] => /bin:/usr/bin:/usr/local/bin
[PHP_SELF] => /chat/xxx.php
[argv] => Array
(
)

[argc] => 0
)
Last edited by arwizard68 on Sat Feb 11, 2006 8:35 pm, edited 1 time in total.
arwizard68
New member
 
Posts: 5
Joined: Sat Feb 11, 2006 7:42 pm
Top

Postby arwizard68 » Sat Feb 11, 2006 8:14 pm

as for the versions ... phpfreechat-0.6
and for apache --- i would need to look that up i am on godaddy so i know that it is the most recent ver.
arwizard68
New member
 
Posts: 5
Joined: Sat Feb 11, 2006 7:42 pm
Top

Postby phpfreechat » Sat Feb 11, 2006 8:22 pm

It seems you have a CGI PHP installation because of this : "[SCRIPT_FILENAME] => /cgi-bin/php"

There is a bug in phpfreechattools.class.php file.
Two solutions :
1. wait for 0.7 release
2. modify the code :
- search for this function:
Code: Select all
function GetScriptFilename()
  {
    $sf = $_SERVER["SCRIPT_FILENAME"]; // for 'normal' configurations
    if (!file_exists($sf))
      $sf = $_SERVER["PATH_TRANSLATED"]; // for cgi configurations
    if (!file_exists($sf))
    {
      echo "<pre>";
      echo "<span style='color:red'>Error: GetScriptFilename function returns a wrong path. Please contact the pfc team (contact@phpfreechat.net) and copy/paste this array to help debugging.</span>n";
      print_r($_SERVER);
      echo "</pre>";
      exit;
    }
    return $sf;
  }

- replace it by :
Code: Select all
function GetScriptFilename()
  {
    return $_SERVER["PATH_TRANSLATED"];
  }

Hope that help.

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

Postby arwizard68 » Sat Feb 11, 2006 8:32 pm

AHHHHHH ---- your a genius.

easy fix...... it is up and working like a charm....
now just to tweak it and play with it ....


thanks so much for the fast help on this
arwizard68
New member
 
Posts: 5
Joined: Sat Feb 11, 2006 7:42 pm
Top

Postby phpfreechat » Sat Feb 11, 2006 8:52 pm

You're welcomed :D
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
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 15 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