• 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

Tipical starting error with Smarty

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

Post a reply
4 posts • Page 1 of 1

Postby dracco » Tue Dec 05, 2006 4:54 pm

Hello.

I have the same problem like other users. I've tried the patch and the pre-release (beta 8). I also set 777 to data/public and data/private

My context is PHP with Smarty. I print the JS and Styles with

Code: Select all
 $index_o->setExtraHead($chat->printJavascript(true));
 $index_o->setExtraHead($chat->printStyle(true));

and the I print the chat as usual inside the template (asigning the var $chat)

It prints correctly, but it doesn't work. No message appears. Checking the source code I find:

Error: the chat cannot be loaded! two possibilities: your browser doesn't support javascript or you didn't setup correctly the server directories rights...

I have Javascript enabled (and working)... what more rights I have to check?

The link: http://www.vtr250.net/chat/

Thank you.
dracco
New member
 
Posts: 3
Joined: Tue Dec 05, 2006 4:45 pm
Top

Postby dracco » Tue Dec 05, 2006 5:00 pm

more info:

In the install example you use the Transitional DTD and I use the Strict one. Does it matter?
dracco
New member
 
Posts: 3
Joined: Tue Dec 05, 2006 4:45 pm
Top

Postby dracco » Tue Dec 05, 2006 5:29 pm

even more info:

The demo_simple1.php works. I'm totaly KO:

http://www.vtr250.net/common/phpfreecha ... simple.php
dracco
New member
 
Posts: 3
Joined: Tue Dec 05, 2006 4:45 pm
Top

Postby phpfreechat » Tue Dec 05, 2006 6:01 pm

The xajaxRequestUri is :
http://www.vtr250.net/chat/index.php?pg=chat
This page returns an error. The right page should be http://www.vtr250.net/index.php?pg=chat

To correct that, I think you have to manually define the public url of the chat like that :
$params["client_script_url"] = "http://www.vtr250.net/index.php?pg=chat";
$params["server_script_url"] = "http://www.vtr250.net/index.php?pg=chat";

Then, to take into account these parameter, I think you will have to clear the cache in data/private/cache/*
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top


Post a reply
4 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

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