Re: tags.py problem

will kahn-greene <[email protected]> Sun, 29 Aug 2010 09:49:55 -0400
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
Hi Tim!

The "A server error occurred.  Please contact the administrator." is the
error message coming from your web-server.  There should be an error for
the web-server.  Looking in that log will give you a better idea of what
the problem is.

Alternatively, the pyblosxom.cgi file has a line like this towards the
top of the file:

    #import cgitb; cgitb.enable()

If you remove the # from the beginning of that line, then the traceback
will show up in your browser rather than the vague error message from
your web-server.  The traceback will make it easier to ascertain what
the problem is.

This is somewhat covered in the Trouble-Shooting section:

    http://pyblosxom.bluesock.org/1.5/deploy_cgi.html#trouble-shooting

Having said all that, Mako just sent in a patch to tags.py.  You might
be hitting the problem he hit.

So before you start trouble-shooting, it might be good to grab the
latest tags.py plugin:


http://gitorious.org/pyblosxom/pyblosxom/blobs/raw/master/plugins/tags/tags.py

That file has Mako's fix.

If that doesn't fix your issue, you'll have to trouble-shoot the
problem.  If you need help, don't hesitate to ask.

/will


On 08/28/2010 01:40 PM, Tim Gray wrote:
> I've just started playing around with pyblosxom and it looks pretty nice. 
> I'm having an issue with the tags plugin though.  When I run 'pyblosxom-cmd 
> buildtags', a tags file is made specified location.  It appears to have 
> picked up the correct data too.  Furthermore, when I check my website in 
> debug mode, the Request.get_data() dict has an entry 'tagsdata' that has the 
> right information.  This goes away if I disable the plugin.
> 
> The problem is when I enable the tags plugin and turn off debug mode, I get 
> the following message:
> "A server error occurred.  Please contact the administrator."
> 
> When I disable the tags plugin, the site works fine.
> 
> This is on 1.5rc2 with the tags.py that came with the distribution.
> 
> Any ideas?

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d