I've been seeing the same problem using Apache/HTML::Mason/mod_perl/Class::DBI/MySQL on Mac OS X, and have had similar trouble diagnosing exactly what the problem is. I'm not using Speedy, so this bug isn't specific to that choice. Nor am I using AbstractSearch.

Since the current platform I'm working on isn't what I'm going to deploy on, I've been mostly ignoring this, hoping that moving to my deployment platform and upgrading Class:DBI etc would fix this.

It feels like a bug in Class::DBI v0.96 to me. My experience is that it happens when there are multiple concurrent MySQL requests; I'm more likely to see the problem when the server gets busy. It's very frustating when Class::DBI just crashes rather than reporting an error or retrying. But as I say, I haven't tracked down the root cause.

If you do figure out what the fix is, I'd be very interested to know.

Update:
Just installed most recent Class::DBI, which is 3.0.1. Now that I see how old the version I was I was using, I'll have to do some more testing and see what it looks like now.

Yet another update.
Now that I see my error again (3.0.1 didn't help), I'm not so sure it is the same problem as yours. Mine is reported from DBD::mysql :

DBD::mysql::st fetchrow_array failed: fetch() without execute() [for Statement "SELECT active, name, directory, start\nFROM Course\nWHERE id=?\n"] at /Library/Perl/5.8.6/DBIx/ContextualFetch.pm line 87.\n
I seem to remember something related along the lines of yours, but can't find it now.

In reply to Re: Class::DBI::AbstractSearch and SpeedyCGI by barrachois
in thread Class::DBI::AbstractSearch and SpeedyCGI by zigdon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.