Archive for October, 2008

Solution to tinyMCE fatal error in GoogleSpell

Thursday, October 2nd, 2008

I’ve been working on a web app using the symfony framework and I got a strange error from the spellchecker included with tinyMCE along the lines of:

Error response:
Warning: fgets() [a href='function.fgets'>function.fgets/a>]: SSL: fatal protocol error in /var/www/…/js/tinymce/plugins/spellchecker/classes/GoogleSpell.php on line 93 {”id”:null,”result”:["Word","word"],”error”:null}

I tried a few Google searches and the only thing I could find was a comment on another blog (#546) from someone else experiencing the same problem.

I considered switching to PSpell but it wasn’t included in my install and I didn’t want to deal with the hassle of recompiling PHP. The tinyMCE wiki covers the spellchecker plugin and points out that PHP CURL is required for GoogleSpell, because it only works over SSL.

On Ubuntu
sudo apt-get install curl libcurl3 libcurl3-dev php5-curl
and an apache2 restart got me up and running.