You are not logged in.

#26 2006-07-07 12:15:53

sbirtwistle
Member
Registered: 2006-07-07
Posts: 4

Re: Could not execute AJAX call, server didn't return valid a xml

Glad to help - thanks for uploading a copy of the file, at 1am this didn't occur to me wink

Offline

 

#27 2006-07-13 08:19:50

brashquido
Member
Registered: 2006-06-14
Posts: 14

Re: Could not execute AJAX call, server didn't return valid a xml

Thanks very much sbirtwistle! This has nailed the problem for me too! Makes sense that it is a santisation issue now that I think of it as my dev machine was not working and had error_reporting  =  E_ALL with display_errors = On, where my production server was set to display_errors = Off.

Last edited by brashquido (2006-07-13 08:26:57)

Offline

 

#28 2006-07-20 05:44:21

techbinge
Member
Registered: 2006-07-20
Posts: 4

Re: Could not execute AJAX call, server didn't return valid a xml

I seem to still be having a problem. The plugin has loaded fine however I can't get it to recognize mispelled words. It returns 'No mispellings found'.
>> http://www.tylerwanlass.com/beta/tinymce.htm

I'm using FF1.5 and have already downloaded the mod'd tinyspell.php.

Any ideas?

-Tyler

PS. Trying the examples on moxiecode results in the same thing. 'No mispellings found'. Is it just me?

Last edited by techbinge (2006-07-20 05:56:55)

Offline

 

#29 2006-07-20 18:39:03

techbinge
Member
Registered: 2006-07-20
Posts: 4

Re: Could not execute AJAX call, server didn't return valid a xml

Ok, got it all resolved. Heres what I did (just to summarize for others):

grab an updated copy of spellchecker w/ CURL:
http://sourceforge.net/tracker/download … id=1510459

Afer unzipping this should give you one folder, 'Spellchecker'. Drop it in your  'jscripts/TinyMCE/Plugins/' directory. You should have this, or something close: jscripts/TinyMCE/Plugins/spellchecker

next, grab the modified copy of tinyspell.php:
http://silenceisdefeat.org/~mrrena/tinyspell.zip

Delete tinyspell.php in your jscripts/TinyMCE/Plugins/spellchecker directory.
Unzip the file you just downloaded and drop it in the same directory.

upload and enjoy!

Thanks moxie, TinyMCE is great!

-Tyler

Last edited by techbinge (2006-07-26 20:24:43)

Offline

 

#30 2006-07-25 04:41:26

lindd
Member
Registered: 2006-07-24
Posts: 29

Re: Could not execute AJAX call, server didn't return valid a xml

seems every else got it work. But even I used all the file techbinge provided it was still same error. Dont really know what to do with it. Just me? It would be so sad.

Offline

 

#31 2006-07-26 11:06:08

coffe
Member
Registered: 2006-07-26
Posts: 2

Re: Could not execute AJAX call, server didn't return valid a xml

I have come as far as techbinge. By activating curl in php.ini, downloadning the spellcheck plugin and replacing the tinyspell.php i can get the spellchecker to work correctly in ENGLISH. If I choose to change language into swedish, I still just get the same old "No misspellings found" message - even on http://www.tylerwanlass.com/beta/tinymce.htm. sad

Offline

 

#32 2006-07-26 20:18:36

techbinge
Member
Registered: 2006-07-20
Posts: 4

Re: Could not execute AJAX call, server didn't return valid a xml

Coffe - Yeah, the Sweedish doesnt work, in fact I have yet to get any other languages other than English to work. Have you gotten English to work however?

Everything I did to get my install to work is posted above (I've updated it as well). I did delete everything and do fresh installs a few times. Also, I didnt upload until everything was updated and replaced. I've had some really bad cacheing senarios w/ my server in the past.

Good luck!

Last edited by techbinge (2006-07-26 20:19:32)

Offline

 

#33 2006-07-26 23:41:55

coffe
Member
Registered: 2006-07-26
Posts: 2

Re: Could not execute AJAX call, server didn't return valid a xml

Hi again!

Yes, I immediately had the English spellchecker working on your site but, as I mentioned, with English spellchecks only. Now I took some baby steps ahead... I had a look at the imho less complicated spellchecker GoogieSpell http://orangoo.com/labs/GoogieSpell/ to see how the spell checking was done. I realized that the requests were made to the URL https://www.google.com/tbproxy/spell?lang= followed by the approriate language code. Since this URL is put together in Javascript, the language code can easily be shifted and thus, this spellchecker handles all supported languages.

In the tinymce spellchecker plugin, however, the request URL is hard coded in the TinyGoogleSpell.class.php script (line 46). If i change the line saying

Code:

$path = "/tbproxy/spell?lang=en&hl=en";

into

Code:

$path = "/tbproxy/spell?lang=sv&hl=sv";

the spellchecker shifts from only handling English spellchecks to only handling Swedish. Unfortunately, my PHP and/or JS skills are not enough to figure out how to pass the correct language code to this class/function, but I am putting my trust in someone who can tell me how to do this.

Kind regards

/Coffe


EDIT: For some reason, I suddenlty realized the "cacheing" issues you mentioned earlier. Don't know if they were there all along. sad Why take the "detour" around CURL and tinyspell.php instead of building the Google request with Javascript, since it obviously seems to be working okay in GoogieSpell? As I said, I don't know much programming, but if someone could help me figure out how to implement a GoogieSpell plugin for tinymce, I would LOVE it! (and them? wink)

Last edited by coffe (2006-07-26 23:59:41)

Offline

 

#34 2006-07-27 05:32:09

lindd
Member
Registered: 2006-07-24
Posts: 29

Re: Could not execute AJAX call, server didn't return valid a xml

From my understanding, TinyMCE is very environment sensitive. My OS is Windows 2000 professional; IIS web server; PHP 5; Latest FF. So, Does any one else have the same issue with similar Systems?

Offline

 

#35 2006-07-31 18:50:24

techbinge
Member
Registered: 2006-07-20
Posts: 4

Re: Could not execute AJAX call, server didn't return valid a xml

coffe,

it would seem thats the point though. That TinyMCE should be switching the language codes on the fly for you. It seems this functionality is broken as you can easily add more languages to the dropdown in the editor, but it doesnt actually switch for you.
You shouldnt have to code anything yourself for this. Submit  a bug report or see if its already listed.

Good luck.

Tyler

Offline

 

#36 2006-08-02 21:43:12

delrom
Member
Registered: 2006-08-02
Posts: 1

Re: Could not execute AJAX call, server didn't return valid a xml

This might be obvious to some, but was not obvious to me.... You need curl installed!!! I did all of the above but it wouldn't work (obviously) w/o curl!

Offline

 

#37 2006-08-02 22:42:33

Afraithe
Administrator
From: Skellefteċ, Sweden
Registered: 2005-01-03
Posts: 1980
Website

Re: Could not execute AJAX call, server didn't return valid a xml

Yes as of the latest release CURL is required, this is due to Google moving the spell checker over to SSL.


Afraithe
TinyMCE Developer
Moxiecode Systems

Offline

 

#38 2006-08-03 03:14:08

lindd
Member
Registered: 2006-07-24
Posts: 29

Re: Could not execute AJAX call, server didn't return valid a xml

Afraithe wrote:

Yes as of the latest release CURL is required, this is due to Google moving the spell checker over to SSL.

which means I dont have to install CURL unless I wanna use Google spellchecking, doesnt it?

Offline

 

#39 2006-08-29 21:54:35

pmascari
Member
Registered: 2006-08-29
Posts: 2

Re: Could not execute AJAX call, server didn't return valid a xml

I'm going to throw something out there in case because I had the same problem but am using ColdFusion rather than PHP.  I'm using the Spellchecker CFM by xanadu_bj.  So just in case any CF developer is scanning this thread looking for a solution just like I was, the problem ended up being that I had the CF Debugging set to ON.  Turning off the debugger was the fix.

Later...

Offline

 

#40 2006-09-14 19:06:37

richardun
Member
Registered: 2006-07-28
Posts: 3

Re: Could not execute AJAX call, server didn't return valid a xml

Thanks for the solution, sbirwistle, and for posting the fixed file, mrrena.  People looking to solve this problem should also know that php should have curl enabled | installed for this to work (in addition to this fix file). 

On Debian: 

apt-get install php5-curl
OR
apt-get install php-curl

Offline

 

#41 2006-09-14 22:15:28

hotani
Member
Registered: 2006-09-14
Posts: 2

Re: Could not execute AJAX call, server didn't return valid a xml

I went in and recompiled PHP with curl support, but all this 'fix' ended up doing for me was removing the spellcheck button completely. I guess that is one way to get rid of the problem. Is there something that needs to be configured with curl? Is it curl (or lack of) that is causing this to happen?

Offline

 

#42 2006-09-15 20:57:18

jbum
Member
Registered: 2006-05-09
Posts: 7

Re: Could not execute AJAX call, server didn't return valid a xml

It doesn't look like the official download link for spellchecker on the tinymce site has the fixed discussed here.  Is the fix not official yet? Is that why?

Offline

 

#43 2006-09-22 01:25:52

RaulSmen
Member
Registered: 2006-09-22
Posts: 1

Re: Could not execute AJAX call, server didn't return valid a xml

Hello.

I tried everything was told here... and it still doesn`t work sad , i still receive the same error : "Could not execute AJAX call, server didn't return valid a xml " ... what should i do ??? I tryied everything here sad

Here is the page where i made a test code and i`m receving the error : http://www.roboteq.com/raul/test.php

And this is the code on the page :

<center>
<script language="javascript" type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
    theme : "advanced",
    mode : "textareas",
    plugins : "spellchecker",
    theme_advanced_buttons3_add : "spellchecker",
    spellchecker_languages : "+English=en,Swedish=sv"
});
</script>
<textarea name="problema" cols="50" rows="15"></textarea>
</center>

I made the changes to the tinyspell.php file like you said... and still doesn`t work.

So.. what should i do now ?

Offline

 

#44 2006-09-23 16:55:06

AliSadeghi
Member
Registered: 2006-09-23
Posts: 1

Re: Could not execute AJAX call, server didn't return valid a xml

Please reupload http://silenceisdefeat.org/~mrrena/tinyspell.zip
or mail to me
Ensane_ashegh@yahoo.com
please ...

Offline

 

#45 2006-09-23 17:50:02

Afraithe
Administrator
From: Skellefteċ, Sweden
Registered: 2005-01-03
Posts: 1980
Website

Re: Could not execute AJAX call, server didn't return valid a xml

RaulSmen wrote:

Hello.

I tried everything was told here... and it still doesn`t work sad , i still receive the same error : "Could not execute AJAX call, server didn't return valid a xml " ... what should i do ??? I tryied everything here sad
So.. what should i do now ?

Use fiddler to debug the spellechecker result, your getting a "Call to undefined function:  curl_init()"... so you don't have curl installed in php.


Afraithe
TinyMCE Developer
Moxiecode Systems

Offline

 

#46 2006-09-29 21:44:55

ratlhead
Member
Registered: 2006-09-29
Posts: 2

Re: Could not execute AJAX call, server didn't return valid a xml

I've put the version of Spellchecker in place that techbinge provided...and I have cURL installed.  The Spellchecker seems to work great in Firefox, but IE continues to tell me 'No misspellings.'

Anyone come across this same issue?  Thanks.

Offline

 

#47 2006-10-18 06:06:28

ran2103
Member
Registered: 2006-10-18
Posts: 4

Re: Could not execute AJAX call, server didn't return valid a xml

There are 2 code corrections which will resolve this issue:

in tinyspell.php:

Code:

$check = $_POST['check'];

to:

$check = urlencode($_POST['check']);

This will resolve most cases of "no misspellings", which in laguages other then English include html entities which didn't resolve correctly in the ajax call.

Second in classes/TinyGoogleSpell.class.php:


Code:

$path = "/tbproxy/spell?lang=en&hl=en";

to:

$path = "/tbproxy/spell?lang=".$this->lang."&hl=".$this->lang;

Which will use the current selected language from the editor and not use en -- English only.

Thanks Guys for a wonderful component!
White Shadow

Offline

 

#48 2006-11-30 21:51:29

rfitzpat
Member
Registered: 2006-11-30
Posts: 3

Re: Could not execute AJAX call, server didn't return valid a xml

I had to make a change to TinyGoogleSpell.class.php in order to get the spellchecker to work on one of my servers.  I was getting the "Could not execute AJAX call" error.  And this is what I changed in the function checkWords:

Code:

$words[] = $this->unhtmlentities(mb_substr($wordstr, $matches[$i][1], $matches[$i][2], "UTF-8"));

became

Code:

$words[] = $this->unhtmlentities(substr($wordstr, $matches[$i][1], $matches[$i][2]));

I don't know why, but on this particular server, the call to the function mb_substr made the entire PHP script crash with no error or warning.  It just stopped executing and did not output anything.  I'm not sure if substituting substr for mb_substr will have any functionality effect on the spellchecker.  But there it is.

Offline

 

#49 2007-03-01 00:55:03

Nazgul
Member
Registered: 2007-03-01
Posts: 2

Re: Could not execute AJAX call, server didn't return valid a xml

On Windows servers the call to fsockopen fails because it doesn't support SSL. Changing it to this works as long as you have curl installed:

Code:

        $fp = false; /* fsockopen("ssl://" . $server, $port, $errno, $errstr, 30); */

I haven't found a way to get fsockopen and SSL on windows to work, so I'd be interested in suggestions.


After that change I encountered the same error as rfitzpat because I didn't have the mbstring extension for php installed. I solved it by changing the line he mentioned to:

Code:

            if(extension_loaded('mbstring'))
                $words[] = $this->unhtmlentities(mb_substr($wordstr, $matches[$i][1], $matches[$i][2], "UTF-8"));
            else
                $words[] = $this->unhtmlentities(substr($wordstr, $matches[$i][1], $matches[$i][2]));

Offline

 

#50 2007-03-22 21:59:12

tripwater
Member
Registered: 2007-03-22
Posts: 30

Re: Could not execute AJAX call, server didn't return valid a xml

Hello, I have followed each thread that links to another thread and says they have this issue fixed...no dice for me. I checked with phpinfo() and I do have curl installed.

I changed my tinyspell.php to use $_POST instead of $_REQUEST. I updated the checkWords function and I am still either A) getting the error "Could not execute AJAX call, server didn't return valid a xml" in IE or in FF, it just crashes the browser....


any ideas? I have the spell checker working on another server using the require_once("classes/TinyPspell.class.php");

THe big differences between the two sites is that this new one, is https as well as being a subdomain like so https://site.mysite.com

Not sure if this will help you in figuring out my problem...

thanks

Last edited by tripwater (2007-03-22 22:00:01)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB