Re: [1.0.6] Spellcheck function returns blank pages
Reply #2 –
I do run Nginx for 3 forums and have not had any problems with spellcheck / pspell, (PHP 5.3 through 5.6, never tried 7.x though).
Since that's mostly JS for spellcheck, are there any errors in the JS console or any of the consoles?
Does the spell check window open as expected and work as expected?
Is the issue after you finish spell checking and making the corrections and click OK?
Re: [1.0.6] Spellcheck function returns blank pages
Reply #3 –
The error is in the spell check page itself. I have that page up as test_10294.php on hydrogenaud.io root directory, and when it is retrieved, it returns an empty result.
I don't know if it's generating any errors, since the server log shows a 200 with a length of 5 returning for the request, nothing in the error log. Oh, and the code in Post.controller.php for the spell check even turns on buffering and disables error reporting around the part that initializes pspell, then turns error reporting back to its previous setting and discards the buffer.
Nginx does report in the error log a warning about writing something to a temporary file when this happens, but it discards the files when the buffer is cleared.
Re: [1.0.6] Spellcheck function returns blank pages
Reply #4 –
I really can't do much with that ( a blank page output) ... maybe post your full test script.
I assume you have it live on your system and its not working? Is it defunct in all browsers? You may have to place some debug statements in spellcheck.js to see whats returned since thats what gets reloaded back to the editor window, maybe there is an error at that point that will help with the debug.
Re: [1.0.6] Spellcheck function returns blank pages
Reply #5 –
That code block at the top of this topic is the full test script. All it does is set up $_GET and $_POST for the spellcheck function, which again returns an empty result through Nginx.
E: Disregard that. It started working after I restarted php-fpm. I guess the pspell extension doesn't pick up aspell dictionaries until it is totally restarted. (I didn't have any dictionaries installed, for some reason, because I didn't know the pspell extension required aspell dictionaries.)
Re: [1.0.6] Spellcheck function returns blank pages
Reply #6 –
At least its fixed and was not some odd 7.0x issue.