在 2016年12月6日星期二 UTC+8下午5:50:17,RjOllos写道:
>
>
>
> On Tuesday, December 6, 2016 at 1:36:45 AM UTC-8, Mingxing Tian wrote:
>>
>>
>>
>> 在 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 should remove AnnouncerPlugin, it's not compatible with Trac 1.2. Trac 
> 1.2 has an improved notification system that includes some components that 
> were ported from Announcer.
> https://trac.edgewall.org/wiki/TracDev/Proposals/AdvancedNotification
>
> You probably need to disable UserPicturesPlugin. If you'd like the issue 
> fixed, please report it:
> https://trac-hacks.org/wiki/UserPicturesPlugin#BugsFeatureRequests
>
> - Ryan
>  
>

I found a few problems:
1. the first page is being given, please refer to Annex.
2. view tags page log error output
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 1119, in 
render_template
    stream = template.generate(**data)
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 545, in 
generate
    stream = self.stream
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 455, in 
stream
    self._stream = list(self._prepare(self._stream))
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 491, in 
_prepare
    yield kind, (directives, list(substream)), pos
  File "build/bdist.linux-x86_64/egg/genshi/template/base.py", line 505, in 
_prepare
    cls=cls or self.__class__)
  File "build/bdist.linux-x86_64/egg/genshi/template/loader.py", line 246, 
in load
    raise TemplateNotFound(filename, search_path)
TemplateNotFound: Template "macros.html" not found


3. Cannot find an implementation of the IPasswordHashMethod interface named 
HtDigestHashMethod. Please check that the Component is enabled or update 
the option [account-manager] hash_method in trac.ini.
4. In addition, I also found a strange phenomenon, when I visit a task 
list, the default modification of the work order of the DIV area is open, 
which in the previous version is hidden.

<https://lh3.googleusercontent.com/-JmNCXsy5PS0/WEdrY1JsdEI/AAAAAAAAAHA/VzTOY6ERKOACefm2UgQtkJgPu3qE03CqwCLcB/s1600/QQ%25E6%2588%25AA%25E5%259B%25BE20161207095217.png>


 

-- 
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