<div>Forgive my ignorance, but not quite sure how to do that. Nonetheless...</div>


<div>1) There was no problem with any of this on the old server until the server crashed.</div>


<div>2) My backups were&nbsp;taken from a time when the old server was was working fine.</div>


<div>3) This problem occurs with *all* my shopping carts, not just this one.</div>


<div>Consequently, I have a hard time believing this is a code error. There *must* be something more fundamental at play here.</div>


<div>&nbsp;</div>


<div>I had some problems with the python-eggs, but I don't imagine that's it, since the connection works, I can query the database, etc.</div>


<div>TIA,</div>


<div>Tony<br>
<br>
<br>
-----Original Message-----<br>
From: Jonathan &lt;dev101@magma.ca&gt;<br>
To: zope@zope.org; tonylabarbara@aol.com<br>
Sent: Mon, 16 Jul 2007 9:12 am<br>
Subject: Re: [Zope] Problem w/ ZMySQLDA<br>
<br>
</div>


<div id=AOLMsgPart_0_ca44dfb2-cf9e-4c5f-8b52-8ede7c42c065 style="FONT-SIZE: 12px; MARGIN: 0px; COLOR: #000; FONT-FAMILY: Tahoma, Verdana, Arial, Sans-Serif; BACKGROUND-COLOR: #fff">----- Original Message ----- From: &lt;<A href="mailto:tonylabarbara@aol.com">tonylabarbara@aol.com</A>&gt;&nbsp;<br>
To: &lt;<A href="mailto:zope@zope.org">zope@zope.org</A>&gt;&nbsp;<br>
Sent: Monday, July 16, 2007 8:55 AM&nbsp;<br>
Subject: [Zope] Problem w/ ZMySQLDA&nbsp;<br>
&nbsp;<br>
&gt;&nbsp;<br>
&gt; ----- Original Message ----- &gt; From: &lt;tonylabarbara at aol.com&gt;&nbsp;<br>
&gt; To: &lt;zope at zope.org&gt;&nbsp;<br>
&gt; Sent: Saturday, July 14, 2007 5:43 PM&nbsp;<br>
&gt; Subject: [Zope] Problem w/ ZMySQLDA&nbsp;<br>
&gt;&nbsp;<br>
&gt;&nbsp;<br>
&gt;&gt; &gt; Hi;&nbsp;<br>
&gt;&gt; &gt; ? I just built out a new server and transfered my databases. I use Zope &gt;&gt; &gt; to&nbsp;<br>
&gt;&gt; &gt; server my web sites and ZMySQLDA to interface between the two. &gt;&gt; &gt; Everything&nbsp;<br>
&gt;&gt; &gt; seems&nbsp;<br>
&gt;&gt; &gt; to be fine. I can see the databases, the tables, the columns in the&nbsp;<br>
&gt;&gt; &gt; tables, the&nbsp;<br>
&gt;&gt; &gt; permissions are correct, etc. I hook up ZMySQLDA and that seems to be&nbsp;<br>
&gt;&gt; &gt; fine. It&nbsp;<br>
&gt;&gt; &gt; connects to the database. However, when I go to look at the pages from&nbsp;<br>
&gt;&gt; &gt; served&nbsp;<br>
&gt;&gt; &gt; the database, the browser hangs. Any ideas how to troubleshoot this?&nbsp;<br>
&gt;&nbsp;<br>
&gt;&gt; You should have a MySQL_database_connection object in a folder somewhere &gt;&gt; (in&nbsp;<br>
&gt;&gt; the ZMI).? The "Status" for this object should say "The database &gt;&gt; connection&nbsp;<br>
&gt;&gt; is open".? There is a "Test" tab for this object in which you can enter &gt;&gt; an&nbsp;<br>
&gt;&gt; sql query. If this query works ok, then the next step is to test your Z &gt;&gt; SQL&nbsp;<br>
&gt;&gt; Method(s).&nbsp;<br>
&gt;&nbsp;<br>
&gt; Thanks. That clarified a lot. The MySQL query comes back fine. I'm &gt; troubleshooting a complex shop I had a programmer who worked for me &gt; build...so it's not my code...and it's complex ;) I went into the &gt; shopkeeper's side and was able to successfully query the database. I was, &gt; for example, able to display the "cotton" products for editing. However, &gt; when I do essentially_the_same_thing TTW with the following code snippet, &gt; it hangs!&nbsp;<br>
&gt;&nbsp;<br>
&gt; &lt;tal:block metal:define-macro="content"&nbsp;<br>
&gt; ?????????? define="dummy python:request.set('category', 5)"&gt;&nbsp;<br>
&gt;&nbsp;<br>
&gt; ? &lt;tal:block &gt; metal:use-macro="here/Store/Main_frame_content/macros/content" /&gt;&nbsp;<br>
&gt;&nbsp;<br>
&gt; &lt;/tal:block&gt;&nbsp;<br>
&gt;&nbsp;<br>
&gt; Furthermore, mytop shows the user is hanging:&nbsp;<br>
&gt; ???? 30 mysqluser?????? localhost mrtableclo?????? 473? Sleep&nbsp;<br>
&gt;&nbsp;<br>
&gt; What should I do next to troubleshoot this?&nbsp;<br>
&nbsp;<br>
I would test the code outside of tal. Just execute (test) the routine by itself to see what it is returning. A couple of things to check: (i) is the routine receiving the correct input parameters, (ii) is the routine returning what you are expecting.&nbsp;<br>
&nbsp;<br>
Jonathan &nbsp;<br>
</div>
<!-- end of AOLMsgPart_0_ca44dfb2-cf9e-4c5f-8b52-8ede7c42c065 --><div class="AOLPromoFooter">
<hr style="margin-top:10px;" />
AOL now offers free email to everyone.  Find out more about what's free from AOL at <a href="http://www.aol.com?ncid=AOLAOF00020000000437" target="_blank"><b>AOL.com</b></a>.<br />
</div>