• 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

2 kind of error messages: javascript and unable to access

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

Post a reply
11 posts • Page 1 of 1

Postby grandegae » Tue Apr 25, 2006 3:12 pm

Hi!

i tried to install the chat but i receive 2 differente failure message.
the first one is:
Error: the xajax Javascript file could not be included. Pheraps the URL is incorret.
(but the url shown is correct)

the second one:
Warning: main(): Unable to access /home/www/web502/html/chat/../src/phpfreechat.class.php in /home/www/web502/html/chat/index.php on line 3

Warning: main(/home/www/web502/html/chat/../src/phpfreechat.class.php): failed to open stream: No such file or directory in /home/www/web502/html/chat/index.php on line 3

Fatal error: main(): Failed opening required '/home/www/web502/html/chat/../src/phpfreechat.class.php' (include_path='.') in /home/www/web502/html/chat/index.php on line 3

i think i've done something wrong.
here step by step what i've done:
1) downloaded phpfreechat and uploaded into the directoy "chat" on the server.
2) permission 777 to the dyrectory phpfreechat-x.x/data/public and phpfreechat-x.x/data/private
3) copy/paste of the script of the italian demo into the file index.php

thanks for your help
Last edited by grandegae on Tue Apr 25, 2006 3:14 pm, edited 1 time in total.
grandegae
New member
 
Posts: 7
Joined: Tue Apr 25, 2006 2:40 pm
Top

Postby phpfreechat » Tue Apr 25, 2006 5:40 pm

I think you didn't upload every files ... Could you try the auto-extractible setup ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby grandegae » Tue Apr 25, 2006 9:22 pm

hi!

i tried with the auto-extractible setup but i was not able to extract it in the server. so i tried with the zip file.
but i must correct my previous post. the URL failure message shows a wrong address. it misses the first letter of home. the address begins with ome/...

i can try again with the zip file and than let you know.

thanks
grandegae
New member
 
Posts: 7
Joined: Tue Apr 25, 2006 2:40 pm
Top

Postby grandegae » Wed Apr 26, 2006 12:22 am

hi!

i'm tring to find a solution.
this is the web page: www.gaetanoscalfidi.com/chat

this is the script into index.php

<?php

require_once dirname(__FILE__)."/src/phpfreechat.class.php";

$params["serverid"] = md5(__FILE__); // calculate a unique id for this chat
$params["language"] = "it_IT";
$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>";
?>

</body>
</html>


the path on line 3 is right. now i find out that on my server the safe mode is activated. is this the problem?
if yes, can i deactivate locally or do i have to ask this to my hosting company?
grandegae
New member
 
Posts: 7
Joined: Tue Apr 25, 2006 2:40 pm
Top

Postby grandegae » Wed Apr 26, 2006 12:34 am

if i tip:
www.gaetanoscalfidi.com/chat

i see only the structure of the chat at the bottom ther's "The source code".
After 2 seconds i receive an error message:

Error: the xajax Javascript file could not be included. Perhaps the URL is incorrect.
URL: ome/www/web502/html/chat/data/public/xajax_js/xajas.js
grandegae
New member
 
Posts: 7
Joined: Tue Apr 25, 2006 2:40 pm
Top

Postby phpfreechat » Wed Apr 26, 2006 8:39 am

could you try with the 0.9.3-pre, I think I fixed some problems with javascript inclusion.

http://www.phpfreechat.net/download/php ... pre.tar.gz
http://www.phpfreechat.net/download/php ... .3-pre.zip
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby grandegae » Wed Apr 26, 2006 10:09 am

hi

i just tried. it seems to be the same. take a look here:
www.gaetanoscalfidi.com/chat

and after 2 seconds comes the seme error message, with the wrong URL displayed:
Error: the xajax Javascript file could not be included. Perhaps the URL is incorrect.
URL: ome/www/web502/html/chat/data/public/xajax_js/xaja
grandegae
New member
 
Posts: 7
Joined: Tue Apr 25, 2006 2:40 pm
Top

Postby phpfreechat » Wed Apr 26, 2006 10:14 am

this demo with hardcoded urls seams to work better : http://www.gaetanoscalfidi.com/chat/dem ... d_urls.php
but there is problems with "safe_mode = On", can you turn Off the safe_mode in your php.ini ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby grandegae » Wed Apr 26, 2006 10:18 am

hi!

can i do it on my pc or do i have to ask to my hosting provider?

if i can do it on my pc, where is the php.ini? or where should it be, because i can't find it...
grandegae
New member
 
Posts: 7
Joined: Tue Apr 25, 2006 2:40 pm
Top

Postby phpfreechat » Wed Apr 26, 2006 10:22 am

If your website is on a server you don't control, unfortunatly, I think your hosting provider won't change the safe_mode to Off.
Currently I don't have any ideas about this problem but I'm sure it's related to safe_mode = On. : it doesn't allow to copy files if the scripts doesn't have the same permission as the webserver...
If you find something, keep me informed.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby grandegae » Wed Apr 26, 2006 10:26 am

ok, i have found something on the webserver provider..i can ask them to change the safe mode, i've done it...

i'll tell you than if it works..thanks
grandegae
New member
 
Posts: 7
Joined: Tue Apr 25, 2006 2:40 pm
Top


Post a reply
11 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 9 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