<div>On Tue, Nov 24, 2009 at 8:47 PM, Tres Seaver <span dir="ltr">&lt;<a href="mailto:tseaver@palladion.com">tseaver@palladion.com</a>&gt;</span> wrote:</div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
<br>
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div><div></div><div class="h5"><br>
Justin Dunsworth wrote:<br>
&gt; I have been using Zope 2.10.4-final, python 2.4.4, win32 for quite awhile...<br>
&gt; I recently started a new project using Zope 2.11.4-final, python 2.4.4,<br>
&gt; win32 and proceeded with my normal programming but I am receiving an error<br>
&gt; that I haven&#39;t received before.<br>
&gt;<br>
&gt; Traceback (innermost last):<br>
&gt;   Module ZPublisher.Publish, line 119, in publish<br>
&gt;   Module ZPublisher.mapply, line 88, in mapply<br>
&gt;   Module ZPublisher.Publish, line 42, in call_object<br>
&gt;   Module OFS.DTMLDocument, line 145, in __call__<br>
&gt;    - &lt;DTMLDocument at /gldb_root/processlogin&gt;<br>
&gt;    - URL: <a href="http://localhost/processlogin/manage_main" target="_blank">http://localhost/processlogin/manage_main</a><br>
&gt;    - Physical Path: /gldb_root/processlogin<br>
&gt;   Module zope.contenttype, line 76, in guess_content_type<br>
&gt;   Module zope.contenttype, line 39, in text_type<br>
&gt; IndexError: string index out of range<br>
&gt;<br>
&gt; I did a little deductive reasoning and took parts out until it didn&#39;t error<br>
&gt; out anymore and it seemed when I took the following lines out it didn&#39;t<br>
&gt; error:<br>
&gt;<br>
&gt; &lt;dtml-call &quot;RootSQLMethods.user.SetLastLogin(_.None,_)&quot;&gt;<br>
&gt; &lt;dtml-call &quot;RESPONSE.redirect(BASE1+&#39;/&#39;)&quot;&gt;<br>
&gt;<br>
&gt; If I have both, one, or the other in it will throw the error. If I take both<br>
&gt; of these out then it will not.<br>
&gt;<br>
&gt; Any assistance is appreciated... if I need to provide more information<br>
&gt; please let me know.<br>
<br>
</div></div>The traceback would indicate that the DTMLDocumet at<br>
&#39;/gldb_rootprocesslogin&#39; is the culprit here.  We can&#39;t help you unless<br>
you provide the text of that method, along with the values it uses from<br>
the request (dummies would work, likely).<br>
<br>
<br>
Tres.<br>
- --<br>
===================================================================<br>
Tres Seaver          +1 540-429-0999          <a href="mailto:tseaver@palladion.com">tseaver@palladion.com</a><br>
Palladion Software   &quot;Excellence by Design&quot;    <a href="http://palladion.com" target="_blank">http://palladion.com</a><br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.9 (GNU/Linux)<br>
Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org" target="_blank">http://enigmail.mozdev.org</a><br>
<br>
iEYEARECAAYFAksMmtAACgkQ+gerLs4ltQ7N5ACfWyrBWl/ZbpwKR8i1IaCzzbrl<br>
Vo8AnjRIFPPKiK4+KKkePitnYIfbVtEd<br>
=KRRU<br>
-----END PGP SIGNATURE-----<br>
<br></blockquote><div><br></div><div>I found out that there was a bug fix from 2.10.4 to 2.11.4 that if the document type is plain text (no html headers) and if it has 14 character whitespace at the beginning an error will be thrown. The way I had processlogin document set up is to act as a redirect that captures some details about the user and stores it into the database then redirects to the member index. However, since I didn&#39;t add any HTML headers it treated it as a plain text document and since it was way down on the list there was a ton of whitespaces... and thus the error. </div>

<div><br></div><div>I got some help in IRC to figure this out and I had forgotten to respond saying I got it fixed here... </div><div><br></div><div>Thanks for the assistance, though!</div><div>Justin Dunsworth</div></div>

</div>