emdee (emdee) wrote in lj_dev,

  • Mood:

PATCH: cannot call method quote

This is a quick patch to help the "cannot call method quote" when loading a user page. It does two things: Try connecting to the db four times before marking the server dead, waiting a quarter second between each and specifically checks for the db handle before using it in the make_journal sub and sends a friendlier message if there's a problem.

I think the first item alone should cut down on a lot of the errors without causing much trouble. Now this doesn't address the larger problem of checking for db connections, but it should cut down on the number of errors users get and bug reports for when they do get errors.

This will also keep the process from dying which will help performance overall and I believe should return the message in the context of the site, which is nicer of course.

Any thoughts on this?

Patch is at http://emdee.net/ljlib.pl.diff

  • Post a new comment


    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded