• 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

what script does handle the ajax request?

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

Post a reply
7 posts • Page 1 of 1

Postby julian_lp| » Wed Feb 21, 2007 5:23 am

I'm just trying to integrate phpfreechat with WordPress, but I'm having the following error (ajax debug is set to true)

"Error: the server returned the following HTTP status: 404"

and then on the same alert, there comes the HTML index's code of my wordpress.
I guess there's a problem with paths, ajax request should be directed to the correct handler, but I don't know where/what is it...

any advice?

regards- julian
Last edited by julian_lp| on Wed Feb 21, 2007 5:24 am, edited 1 time in total.
julian_lp|
New member
 
Posts: 5
Joined: Wed Feb 21, 2007 5:14 am
Top

Postby phpfreechat » Wed Feb 21, 2007 9:41 am

Ajax calls are cached byt the "$chat = new phpFreeChat($params);" line.
Then they are redirected to "phpFreeChat::handleRequest(...)" methode.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby julian_lp| » Wed Feb 21, 2007 6:35 pm

Ok, but what can you tell me about the error? (if you have any idea, of course)
Where should I try to modify the path? Should I modify the script?

regards- julian
julian_lp|
New member
 
Posts: 5
Joined: Wed Feb 21, 2007 5:14 am
Top

Postby julian_lp| » Wed Feb 21, 2007 6:40 pm

I mean, ajax calls should be handled *on server* by some script which returns new messages, new guests, etc
What is this script? It cant be the page where I instantiated the chat...
julian_lp|
New member
 
Posts: 5
Joined: Wed Feb 21, 2007 5:14 am
Top

Postby pinup57 » Sat Feb 24, 2007 1:55 pm

Hello, same here in Joomla!. I get the 404 with the demo1_simple.php (and it doesn't work in standalone either, but without the 404, just keeps loading), but with the demo21_with_hardcoded_urls I DON'T get the 404, but it doesn't instanciate (just keeps loading), BUT this one works in standalone. This is with 1.0 beta 09. There seems to be some url trouble..... I have no clue!

demo1_simple is here: http://www.roadmoviemusic.net/chat/demo ... simple.php

with hardcoded urls here:
http://www.roadmoviemusic.net/chat/demo ... d_urls.php

Stéphane, if you want to take a look at what happens in Joomla! I'd need to set up an account for you, because the site is live and the chats are private. Please tell me if you need that!

Thanks
Dirk
pinup57
Member
 
Posts: 89
Joined: Sat Feb 24, 2007 8:13 am
Top

Postby pinup57 » Sat Feb 24, 2007 3:59 pm

follow-up: looks like the 404's come from the .js files not found because of incorrect url:

The requested URL /chat/demo/chat/data/public/js/xajax.js was not found on this server. This is obviously incorrect, should be /chat/data/public/js/xajax.js and this repeats for all.js files.

I also suspect the var xajaxConfig = {
requestURI: "./index.php", this is incorrect as well

(both apply to the demo1_simple standalone failure).

Mind, I'm not a programmer, i don't know how to fix it.

I think that the xajax requestURI in Joomla is erronous too, but I'm not that sure.

Dirk
pinup57
Member
 
Posts: 89
Joined: Sat Feb 24, 2007 8:13 am
Top

Postby phpfreechat » Sun Feb 25, 2007 12:35 pm

julian_lp| wrote:What is this script? It cant be the page where I instantiated the chat...

Wrong, by default, it is the same page which instantiated the chat.
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 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