Support » Plugins and Hacks » Ajax Spell Checker problems installing

  • Okay I’m trying to install the following:
    http://www.lab4games.net/zz85/blog/live-spell-checker/

    Problem is when I put the plugin php I get this lovely error message:

    Warning: main(): URL file-access is disabled in the server configuration in /home/.langer/emmortel/brokenkode.com/wp-content/plugins/ajax-spell-checker.php on line 36

    Warning: main(http://www.brokenkode.com/wp-content/plugins/spell_checker/spell_checker.php): failed to open stream: no suitable wrapper could be found in /home/.langer/emmortel/brokenkode.com/wp-content/plugins/ajax-spell-checker.php on line 36

    Fatal error: main(): Failed opening required ‘http://www.brokenkode.com/wp-content/plugins/spell_checker/spell_checker.php’ (include_path=’.:/usr/local/lib/php:/home/.langer/emmortel/brokenkode.com/wp-content/plugins/spell_checker/’) in /home/.langer/emmortel/brokenkode.com/wp-content/plugins/ajax-spell-checker.php on line 36

    Line 36 has the following code in it:
    require_once $spellchecker_path.”spell_checker.php”;

    I’ve contacted my web host and aspell is working just fine…

Viewing 11 replies - 1 through 11 (of 11 total)
  • i believe its pspell you need to make sure is installed besides aspell

    It is probably because the variable on line 36 translates to something like http://mysite.com/filename.php. You need to have it as something like /home/username/filename.php

    You could just hardcode it or use the WP’s variable
    ABSPATH . "filename.php"

    I’m not sure, since that line comes after the following, in fact here’s the first few lines of code for the plugin that seem to make it break:

    global $spellchecker_path;
    $spellchecker_path = get_settings("siteurl")."/wp-content/plugins/spell_checker/";

    $ip=ini_get("include_path");
    ini_set("include_path",$ip.":".ABSPATH."wp-content/plugins/spell_checker/");
    require_once $spellchecker_path."spell_checker.php";

    Okay Alphaoide told me how to get the plugin to work without breaking my site. For anyone else having the same problem:

    1. First thing to do is

    $spellchecker_path =
    get_settings("siteurl")."/wp-content/plugins/spell_checker/";

    ...add the following...

    $my_path =
    ABSPATH."wp-content/plugins/spell_checker/";

    2. Find the following line...

    require_once $spellchecker_path."spell_checker.php";

    ...replace with the following...

    require_once $my_path."spell_checker.php" ;

    The problem now is the plugin doesn’t seem to actually completely work. That is it doesn’t actually give me a list of potential words I could use. Also no ideas why in the comments section there is no sight of the check spelling link. How is that link shown there? What’s the tag that inserts it into the actual comment form.php?

    Is anyone else having the same problem?

    The problem now is the plugin doesn’t seem to actually completely work. That is it doesn’t actually give me a list of potential words I could use.
    Does it detect a misspelled word? And when it does, does it underline and change the color to red the misspelled word? And if it does, when you click on it, does it not give you the list of possible spellings? or just no response?

    Also no ideas why in the comments section there is no sight of the check spelling link. How is that link shown there? What’s the tag that inserts it into the actual comment form.php?
    Check Default Theme’s Comment Template. It’s something like the following.
    <?php do_action('comment_form', $post->ID); ?>

    Right okay got the spelling linked up in the actual comments box as well, but it’s ‘working’ in the same way as in the admin section. That is it checks everything, searches, underlines the faults which is cool, and then when you click on it to actually get the alternatives, you get nothing…go check it out on say the latest post.

    I tried it.. and it worked. It gave me alternatives, no kidding.
    So, don’t ask me to fix you browser, now. Or your eyes, possibly. 😛

    Hmm see now this is strange, it’s working great in the comments section (which btw when I posted the above I swear to you it wasn’t 🙂 ) and not in the admin section. Hmm , I am using the tiger admin css which might have something to do with it although I’m seriously not convinced…

    khaled, sorry I didnt see this thread eariler. The tiger admin css do place the suggestion box below the post (u just need to scroll down aliitle). At least is that for now if you dont upgrade to the latest version (which tiger admin css would hide the suggestion box)

    I get the following errors can anyone help.
    br /> Notice: Use of undefined constant PSPELL_FAST – assumed ‘PSPELL_FAST’ in c:\sites\single12\dallasfreeman\webroot\blog\wp-content\plugins\spell_checker\pspell_comp.php on line 47

    Notice: Use of undefined constant PSPELL_NORMAL – assumed ‘PSPELL_NORMAL’ in c:\sites\single12\dallasfreeman\webroot\blog\wp-content\plugins\spell_checker\pspell_comp.php on line 48

    Notice: Use of undefined constant PSPELL_BAD_SPELLERS – assumed ‘PSPELL_BAD_SPELLERS’ in c:\sites\single12\dallasfreeman\webroot\blog\wp-content\plugins\spell_checker\pspell_comp.php on line 49

    Notice: Undefined variable: language in c:\sites\single12\dallasfreeman\webroot\blog\wp-content\plugins\spell_checker\pspell_comp.php on line 123

    Notice: Undefined property: in c:\sites\single12\dallasfreeman\webroot\blog\wp-content\plugins\spell_checker\pspell_comp.php on line 123

    Notice: Undefined variable: language in c:\sites\single12\dallasfreeman\webroot\blog\wp-content\plugins\spell_checker\pspell_comp.php on line 123

    Notice: Undefined property: in c:\sites\single12\dallasfreeman\webroot\blog\wp-content\plugins\spell_checker\pspell_comp.php on line 123

    Warning: Cannot modify header information – headers already sent by (output started at c:\sites\single12\dallasfreeman\webroot\blog\wp-content\plugins\spell_checker\pspell_comp.php:47) in c:\sites\single12\dallasfreeman\webroot\blog\wp-content\plugins\spell_checker\cpaint.inc.php on line 7

    Warning: Cannot modify header information – headers already sent by (output started at c:\sites\single12\dallasfreeman\webroot\blog\wp-content\plugins\spell_checker\pspell_comp.php:47) in c:\sites\single12\dallasfreeman\webroot\blog\wp-content\plugins\spell_checker\cpaint.inc.php on line 8

    Warning: Cannot modify header information – headers already sent by (output started at c:\sites\single12\dallasfreeman\webroot\blog\wp-content\plugins\spell_checker\pspell_comp.php:47) in c:\sites\single12\dallasfreeman\webroot\blog\wp-content\plugins\spell_checker\cpaint.inc.php on line 9

    Warning: Cannot modify header information – headers already sent by (output started at c:\sites\single12\dallasfreeman\webroot\blog\wp-content\plugins\spell_checker\pspell_comp.php:47) in c:\sites\single12\dallasfreeman\webroot\blog\wp-content\plugins\spell_checker\cpaint.inc.php on line 10

    Fatal error: Call to undefined function: curl_init() in c:\sites\single12\dallasfreeman\webroot\blog\wp-content\plugins\spell_checker\google_spell.php on line 35

    this particular plugin causes Apache 1.3 / php 4.4 to crash, referring to my particular setup. it’s almost like a pest you can’t kill unless you shoot it with a plasma gun. :/

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Ajax Spell Checker problems installing’ is closed to new replies.