在 2016年12月6日星期二 UTC+8下午5:17:16,RjOllos写道:
>
>
>
> On Tuesday, December 6, 2016 at 1:14:44 AM UTC-8, Mingxing Tian wrote:
>>
>>
>>
>> 在 2016年12月6日星期二 UTC+8下午4:56:16,RjOllos写道:
>>>
>>>
>>>
>>> On Tue, Dec 6, 2016 at 12:43 AM Mingxing Tian <[email protected]> wrote:
>>>
>>>> Fortunately, the page can be accessed, but can not normally show, I 
>>>> screenshot to you.
>>>>
>>>
>>> How did you resolve the previous issue with authz_policy? I want to 
>>> determine if there is a problem with the upgrade step, so please provide 
>>> the requested information.
>>>  
>>>
>>>> TypeError: inline_overwrite_get_known_users() got an unexpected keyword 
>>>> argument 'as_dict'
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> <https://lh3.googleusercontent.com/-hPleZ5NWS84/WEZ5w-w_vJI/AAAAAAAAAFc/L_LO8EZcC2YQQx5LpsP1Dx1JK6kYtEB9QCLcB/s1600/QQ%25E6%2588%25AA%25E5%259B%25BE20161206163805.png>
>>>>
>>>
>>> To discover which plugin is causing that error you'll need to find the 
>>> associated traceback in the logs.
>>>
>>> It's probably due to UserManagerPlugin:
>>> https://trac-hacks.org/wiki/UserManagerPlugin
>>>
>>> I'm not surprised the plugin is not compatible with Trac 1.2. You'll 
>>> have to disable it. Maybe some will fix it soon, but I won't get to it this 
>>> week.
>>>
>>> https://trac-hacks.org/ticket/12979
>>>
>>> - Ryan 
>>>
>>
>>
>> According to your guidance, I have disabled the `TracUserManagerPlugin` 
>> plug-in, the current query task when a single error, I cut a picture to 
>> show you.
>>
>>
>> <https://lh3.googleusercontent.com/-ejYY2q9GvMM/WEaBcJbLpOI/AAAAAAAAAGQ/nTYVfglMgDU8vvTd1L30sYRGDRz1vXg6wCLcB/s1600/QQ%25E6%2588%25AA%25E5%259B%25BE20161206171143.png>
>> 2016-12-06 17:08:35,179 Trac[main] ERROR: Internal Server Error: 
>> <RequestWithSession "GET '/newticket'">, referrer '
>> http://trac.xxx.com/trac/xxx/ticket/508'
>> Traceback (most recent call last):
>>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, in 
>> _dispatch_request
>>     dispatcher.dispatch(req)
>>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 263, in 
>> dispatch
>>     self._post_process_request(req, *resp)
>>   File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 444, in 
>> _post_process_request
>>     resp = f.post_process_request(req, *resp[:-1])
>>   File "build/bdist.linux-x86_64/egg/tracsubtickets/web_ui.py", line 73, 
>> in post_process_request
>>     children = self.get_children(ticket.id)
>>   File "build/bdist.linux-x86_64/egg/tracsubtickets/web_ui.py", line 104, 
>> in get_children
>>     db = self.env.get_db_cnx()
>> AttributeError: 'Environment' object has no attribute 'get_db_cnx'
>>
>>
> Look at the traceback. Where do you think the problem lies? 
>


I inadvertently disable the plug-in 
`TracSubTicketsPlugin-0.2.0.dev20161020-py2.6.egg`, this problem is 
automatically solved.
But I found some flaws:
2016-12-06 17:34:38,164 Trac[api] ERROR: AnnouncementSystem failed.
Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/announcer/api.py", line 584, in 
_real_send
    evt)
  File "build/bdist.linux-x86_64/egg/announcer/distributors/mail.py", line 
282, in distribute
    addr = rslvr.get_address_for_name(name, authed)
  File "build/bdist.linux-x86_64/egg/announcer/resolvers.py", line 55, in 
get_address_for_name
    db = self.env.get_db_cnx()
AttributeError: 'Environment' object has no attribute 'get_db_cnx'
2016-12-06 17:34:38,532 Trac[usermanager] WARNING: Trying to use 
UserPicturesUserManagerProvider, but UserManager plugin is not installed!
2016-12-06 17:34:51,650 Trac[main] ERROR: Internal Server Error: 
<RequestWithSession "GET '/ticket/523?action=delete'">, referrer 
'http://trac.xxx.com/trac/xxx/ticket/523'
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 613, in 
_dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 273, in 
dispatch
    iterable=chrome.use_chunked_encoding)
  File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 1123, in 
render_template
    stream |= self._filter_stream(req, method, filename, stream, data)
  File "build/bdist.linux-x86_64/egg/genshi/core.py", line 133, in __or__
    return Stream(_ensure(function(self)), serializer=self.serializer)
  File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 1436, in 
inner
    data)
  File 
"/usr/lib/python2.6/site-packages/trac_UserPicturesPlugin-0.1.1-py2.6.egg/userpictures/__init__.py",
 
line 94, in filter_stream
    if 'attachments' in data and data.get('attachments', 
{}).get('attachments'):
AttributeError: 'list' object has no attribute 'get'



-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to