Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Spellcheck problems

Quote Reply
Spellcheck problems
I installed a clean 2.0.4 because Spellcheck wasn't working before, and it's still not. My startup.pl looks like this (I have no idea if it needed use GT::SpellCheck though):

use lib '/home/sites/site1/web/admin';
use GMail::mod_perl;
use GT::SpellCheck;
use Apache::SizeLimit;
$Apache::SizeLimit::MAX_PROCESS_SIZE = 7680;
$Apache::SizeLimit::CHECK_EVERY_N_REQUESTS = 4;
1

And it's giving these errors when trying to check spelling.

A fatal error has occured:

Can't locate object method "new" via package "GT::SpellCheck" (perhaps you forgot to load "GT::SpellCheck"?) at /home/sites/site1/web/admin/GMail/Compose/SpellCheck.pm line 66.

Please enable debugging in setup for more details.

Can't locate object method "new" via package "GT::SpellCheck" (perhaps you forgot to load "GT::SpellCheck"?) at /home/sites/site1/web/admin/GMail/Compose/SpellCheck.pm line 66.

Any help would be appreciated!

Quote Reply
Re: Spellcheck problems In reply to
Try changing:

use GT::SpellCheck;

to

use GMail::Compose::SpellCheck;


Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: Spellcheck problems In reply to
Changed it, restarted everything, and now this:

A fatal error has occured:

Can't locate object method "new" via package "GT::SpellCheck" (perhaps you forgot to load "GT::SpellCheck"?) at /home/sites/site1/web/admin/GMail/Compose/SpellCheck.pm line 66.

Please enable debugging in setup for more details.

Can't locate object method "new" via package "GT::SpellCheck" (perhaps you forgot to load "GT::SpellCheck"?) at /home/sites/site1/web/admin/GMail/Compose/SpellCheck.pm line 66.


Quote Reply
Re: Spellcheck problems In reply to
You can't have changed it properly as it is still looking for GT::SpellCheck

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: Spellcheck problems In reply to
Hi,

You know, this may be the problem:

$Apache::SizeLimit::MAX_PROCESS_SIZE = 7680;

Try commenting that out and see if it works. On our demo server, it takes about 12-15 megs per httpd, but most of this is shared. I'm not sure if SizeLimit checks shared memory, or just total memory per httpd. Also remove the use GT::SpellCheck from the startup file.

When you start the server, do you see the message that Gossamer Mail is compiled properly?

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Spellcheck problems In reply to
Paul, I edited the line and restarted the entire server, but it's still asking if I forgot to load GT::Spellcheck. What the hell?

Alex, it still doesn't work with the SizeLimit references commented out. Here's what Apache says on startup now... apparently my mod_perl isn't working in the first place but I think that's another story.

"my" variable $format masks earlier declaration in same scope at GMail::Messages::parse_date line 20.
Preloading Gossamer Mail scripts into mod_perl:
. . . . . . .
All scripts compiled and loaded ok!

Subroutine check redefined at /home/sites/site1/web/admin/GMail/Compose/SpellCheck.pm line 44.
Subroutine correct redefined at /home/sites/site1/web/admin/GMail/Compose/SpellCheck.pm line 127.


Quote Reply
Re: Spellcheck problems In reply to
Hi,

What else do you have in your startup file? Are you loading any other software during startup? For some reason, something is trying to reload the spellcheck libraries.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Spellcheck problems In reply to
The startup file in its entirety is at the top of this thread... GT::SpellCheck; is now changed to GMail::Compose::SpellCheck; but that's it.
I checked httpd.conf to make sure I hadn't added another startup for some reason, and didn't find anything.
Quote Reply
Re: Spellcheck problems In reply to
Hi, I think Alex mentioned that you now need to remove the SpellCheck line.

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: Spellcheck problems In reply to
Hi,

One last thing to try, can you edit admin/GMail/mod_perl.pm and add:

use GMail::Compose::SpellCheck;

right after:

use GMail::Compose;

Then, make your startup file look like:

use lib '/path/to/admin';
use GMail::mod_perl;
1;

and start the server. If it still doesn't work, send me an email with login info so I can investigate further.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Spellcheck problems In reply to
Negatory, that's not working either.

Alex, I emailed you about this last week remember? You already have the login info. I'll resend.

Quote Reply
Re: Spellcheck problems In reply to
Alex found that the SpellCheck.pm I had was the wrong version. I replaced it with the right one but now it's giving:


A fatal error has occured:

Can't locate object method "check" via package "GMail::Compose::SpellCheck" (perhaps you forgot to load "GMail::Compose::SpellCheck"?) at /home/sites/site1/web/user/webmail.cgi line 183.

Please enable debugging in setup for more details.

Can't locate object method "check" via package "GMail::Compose::SpellCheck" (perhaps you forgot to load "GMail::Compose::SpellCheck"?) at /home/sites/site1/web/user/webmail.cgi line 183.


Instead of can't find object method "new," it can't find object method "check." What's that mean?

Quote Reply
Re: Spellcheck problems In reply to
Have you tried removing the:

use GMail::Compose::SpellCheck;

line?

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: Spellcheck problems In reply to
Just tried it, same thing.

Quote Reply
Re: Spellcheck problems In reply to
Well, I had replaced the wrong SpellCheck.pm and Alex fixed it!