Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Erros on Gmail after Glinks Upgrade

Quote Reply
Erros on Gmail after Glinks Upgrade
When i try to Save Draft, following error comes:

Can't call method "insert_id" on an undefined value at GMail::Messages::insert_user line 1738.

This is after upgrading to Glinks3

All under mod_perl

DB is fully repaired and it shows no abnormality

[EDIT]
This is happening when a New Mail is composed and Save Draft is hit
Ia A Mail is opened, hit reply and then Save Draft then the Message Gets Saved and no error

Happening For ALL Accounts that i could test.
Compose --> Save Draft --- Error (A New Message When Being Saved As Draft)
Reply --> Save Draft -- No Error

Even after running ./consistency.pl multiple times the following still does not get corrected:

1 messages were on disk and not in the database
msgs table inconsistancies: 2



[/EDIT]

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================

Last edited by:

HyperTherm: Apr 3, 2005, 7:02 AM
Quote Reply
Re: [HyperTherm] Erros on Gmail after Glinks Upgrade In reply to
I remove everything from mod_perl and keep only gossamer mail under mod_perl and error disappears... it's the moment Glinks is put under mod_perl that it behaves this way and error starts poping up on Save Draft

Earlier there were issues in Glinks Admin due to Community GT which were eradicated once Community GT was ln -s with Glinks GT

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================

Last edited by:

HyperTherm: Apr 3, 2005, 7:14 AM
Quote Reply
Re: [HyperTherm] Erros on Gmail after Glinks Upgrade In reply to
Hmm i am getting worried now.
Linked Gossamer Mail's GT to Glinks's mod_perl restart failed as SpellCheck.pm was nowhere to be found so copied over to Glinks/admin/GT and mod_perl restarted fine. The Save Draft Error still continues. Then tried few things on manage Folders.

Delete Folder : No Error
Move Folder : No Error
Delete Message : user end --- No Error

Then selected A Folder and Delete Duplicates

169084512 message(s) deleted.
No messages were deleted though.
And BTW not even the entire install has that many messages....

This is a new observation.... user end.
Save Draft error as posted on first message still continues...

Have done a mysqldump to be safe ... just in case anything gets messed up by Glinks3's inclusion ... if that's what causing it...

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [HyperTherm] Erros on Gmail after Glinks Upgrade In reply to
What i forgot to mention is Gossamer Mail Version: 2.2.0
The issues keep us confused so far.

Enabled debugging and then when Save Draft is hit, it throws the full code on screen (sort of dumps the tempate with stack trace etc etc:) and this

GT::SQL::error = Draft Reference cannot contain the value ''

Thanks

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================

Last edited by:

HyperTherm: Apr 3, 2005, 12:01 PM
Quote Reply
Re: [HyperTherm] Erros on Gmail after Glinks Upgrade In reply to
Here goes further testing results:

Disabling everything but Gossamer Mail from mod_perl and having Gossamer mail's GT loaded ... No Error wrt Save Draft.

Then Copied Over GLinks3 GT to Gossamer Mail's admin/ and restarted mod_perl http.
The Error reappeared .... same as what has been detailed in this thread wrt Save Draft.

Then Copied Over Community's (1.02) GT to Gossamer Mail/admin and restarted mod_perl http -- No Errors on Save Draft Observed Observed.

Then Copied Over Gossamer Forum's GT to Gossamer Mail/admin and restarted mod_perl http --- No Errors On save Draft observed

This was done to isolate the problem and as far as i can conclude *something does break* when GT libs of Glinks 3 are in action.

A problem was also observed with Glinks 3 Table modification (though every thing was loaded in correct sequence) which only got corrected when Gossamer community Gt was linked with Glinks 3 GT

So There is definitely some issue in Glinks3 GT libs which is breaking Gossamer Mail ....

This lengthy exercise of copying over each GT's independently to the Gossamer Mail's admin (after renaming the existing one of course) was also done to eliminate even the stupidiest mistake on ownership issues ... but that does not make any difference... It breaks...

Help Needed ... or if it's a Bug please confirm.

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================

Last edited by:

HyperTherm: Apr 3, 2005, 1:51 PM
Quote Reply
Re: [HyperTherm] Erros on Gmail after Glinks Upgrade In reply to
And yes, as long as GLinks 3 GT libs are in play, the Delete Duplicates In A Folder Also Breaks At Least from the Message that is displayed ... 121312343323 messages deleted ....

As soon as Glinks 3 GT libs are taken out, it displays the "Correct Message"

0 message(s) deleted.

This is in addition to that Save Draft error... as noted in the posts above..

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [HyperTherm] Erros on Gmail after Glinks Upgrade In reply to
Copying over GT/SQL and SQL.pm to GLinks3/GT removes that Save Draft and Delete Duplicates (Folder Management) error from Gossamer Mail

Never tried but looks like GT/Template similarly should remove the Address Book error from Gossamer mail

Anyway, till a firm reply and confirmation is recd from GT on this, I am taking Glinks 3 out of mod_perl as Glinks/LinksSQL is not that important for me at this moment of time....

I would/can not risk anything in Gossamer Mail breaking because of GLinks 3.

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [HyperTherm] Erros on Gmail after Glinks Upgrade In reply to
Can anyone officially confirm from GT if Glinks 3 breaks Gossamer Mail under mod_perl? GT::SQL and/or GT::Templates is the one which seems to have compatibility issues and breaks quite a few things in Gossamer Mail 2.2.0 when under mod_perl....

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [HyperTherm] Erros on Gmail after Glinks Upgrade In reply to
Your problem in the other thread makes sense, but this one doesn't. Not being able to call insert_id on $sth, means your insert failed which obviously shouldn't happen. On the insert, try doing a ... or return $self->fatal($GT::SQL::error);

Adrian
Quote Reply
Re: [brewt] Erros on Gmail after Glinks Upgrade In reply to
Actually, repeating what i have said in this thread so far:

If GT of Gossamer Mail is replaced with GT oif Glinks3 and all other apps are taken out of mod_perl (meaning that it's only gossamer Mail under mod_perl but using the GT libs of Glinks 3), even then the error is there upon:

(1) Hitting "Save Draft" while Composing a New mail and i am not able to Save Draft.

(2) Delete Duplicates In Folder Management throws a number such as 17658890 messages deleted though None Are and there are not so many messages there.

If i simply copy over the original (Gossamer mail's) SQL.pm and SQL directory to the Glinks 3 GT then the above error goes off ... isolating the issue to be GT/SQL though i am not too sure on this.

Repeating the use of GT libs of Gcommunity/Gforum/Links2x does not give this error. It's only with GT libs of Glinks 3 which gives this error.

Could you please elaborate on what exactly i have to do exactly?

[EDIT]
This is what i get when i try to Delete Duplicates in Trash which has just 1 message:

172750524 message(s) deleted.

Nothing is deleted though
[EDIT]

TIA

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================

Last edited by:

HyperTherm: Apr 4, 2005, 9:56 PM
Quote Reply
Re: [brewt] Erros on Gmail after Glinks Upgrade In reply to
Adding further...

If i keep everything under mod_perl but load Gcom ahead of Glinks then there is no error on Gossamer Mail, ie the errors observed when Glinks3 is loaded first (which logically should be the case as per recommendations from GT) as this could perhaps break a few things in glinks3

[EDIT]
And even this error in Glinks 3 is gone:

http://www.gossamer-threads.com/perl/gforum/gforum.cgi?post=279471
But Newsletter/Bookmarks Breaks with following error:

Can't use string ("GT::Template") as a HASH ref while "strict refs" ....
[EDIT]

Thanks

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================

Last edited by:

HyperTherm: Apr 4, 2005, 9:51 PM
Quote Reply
Re: [brewt] Erros on Gmail after Glinks Upgrade In reply to
No Success if Glinks 3 is loaded under mod_perl Gossamer mail breaks.
I would separate out all the GT libs in a separate directory and then re-run the tests again ... symlinking to individual GTlibs but so far the errors are reproducible. Perhaps would do it later today and again get back on this

TIA

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [brewt] Erros on Gmail after Glinks Upgrade In reply to
What really doen't make sense to us is that why should it fail only with Glinks3 GTlibs loaded under mod_perl if everything is ok with respect to backwards compatibility. It was all working with LinksSQL 2.2.0 GTlibs, it works when Glinks3 is taken out of mod_perl and Breaks when Glinks3 is put back under mod_perl.

The conclusion is Glinks3 GTlibs break gossmer mail.
It's a standard cpanel server.A solution to this would be really appreciated.

Thanks

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [brewt] Erros on Gmail after Glinks Upgrade In reply to
These are the loaded GT (as per Module Env in Glinks Admin)
(For The Case Where Gossmaer Mail Breaks):
-------------------------------------------------
GT::AutoLoader none
GT::Base 1.128
GT::CGI 1.140
GT::CGI::Cookie none
GT::CGI::Fh none
GT::CGI::MultiPart none
GT::Cache 1.013
GT::Config 1.045
GT::Date 1.074
GT::Delay none
GT::Dumper 1.038
GT::File::Tools 1.059
GT::FileMan none
GT::FileMan::Commands none
GT::HTML::Parser 1.024
GT::Image::Size 2.99
GT::Lock none
GT::MD5 1.019
GT::MD5::Crypt 1.1
GT::MIMETypes none
GT::Mail 1.070
GT::Mail::BulkMail 1.045
GT::Mail::Editor 1.024
GT::Mail::Encoder 1.040
GT::Mail::POP3 none
GT::Mail::Parse 1.79
GT::Mail::Parts 1.077
GT::Mail::Send 1.053
GT::Plugins 1.052
GT::Plugins::Author 1.014
GT::Plugins::Installer 1.013
GT::Plugins::Manager 1.053
GT::Plugins::Profiler 1.005
GT::Plugins::Wizard 1.032
GT::SQL 1.110
GT::SQL::Admin 1.146
GT::SQL::Base 1.069
GT::SQL::Condition 1.044
GT::SQL::Creator 1.074
GT::SQL::Display::HTML 1.091
GT::SQL::Display::HTML::Relation 1.018
GT::SQL::Display::HTML::Table 1.026
GT::SQL::Driver 2.005
GT::SQL::Driver::MYSQL none
GT::SQL::Driver::Types 2.001
GT::SQL::Driver::debug none
GT::SQL::Driver::sth none
GT::SQL::Editor 1.074
GT::SQL::File none
GT::SQL::Relation 1.102
GT::SQL::Search 1.060
GT::SQL::Search::Base::Common none
GT::SQL::Search::Base::Indexer 1.004
GT::SQL::Search::Base::STH none
GT::SQL::Search::Base::Search 1.025
GT::SQL::Search::INTERNAL::Indexer 1.011
GT::SQL::Search::INTERNAL::Search 1.018
GT::SQL::Search::MSSQL::Indexer 1.006
GT::SQL::Search::MSSQL::Search 1.009
GT::SQL::Search::MYSQL::Indexer 1.017
GT::SQL::Search::MYSQL::Search 1.014
GT::SQL::Search::NONINDEXED::Indexer none
GT::SQL::Search::NONINDEXED::Search 1.028
GT::SQL::Table 1.251
GT::SQL::Tree 1.028
GT::SQL::Type 1.012
GT::Session::File 1.014
GT::Session::SQL 1.034
GT::Socket 1.043
GT::Socket::Client 1.015
GT::SpellCheck 1.012
GT::Tar none
GT::TempFile 1.036
GT::Template 2.140
GT::Template::Editor 2.019
GT::Template::Inheritance none
GT::Template::Parser 2.137
GT::Template::Vars none
GT::Text::Tools none
GT::URI none
GT::URI::HTTP none
GT::WWW 1.024

-------------------------------------

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================