在某些页面(不是全部)上显示一会儿之后,就会出现这样的错误:(请参见下面的追溯代码段。)
我试图从另一个用户发布页面,以为问题出在某种程度上与用户首选项有关,但是还是一样。
要回滚页面的历史记录并发布旧版本-也不起作用,似乎会回滚“草稿中”的版本,但是发布时是相同的错误。
<div>
<div>
<div class="adm">
</div>
<div class="im">
<h1>KeyError at /ru/admin/cms/page/6154/ru/<wbr>publish/</h1>
<pre style="font-size:12pt">221273</pre>
<br>
<h2>Traceback</h2>
</div>
</div>
<div style="font-size:10pt">
<ul>
<div>
<div class="adm">
<div id="q_3469" class="ajR h4" data-tooltip="Скрыть развернутую часть" aria-label="Скрыть развернутую часть">
<div class="ajT"></div>
</div>
</div>
<div class="im">
<li>
<code>/home/web/{server}/env/local/lib/<wbr>python2.7/site-packages/<wbr>django/core/handlers/base.py</code> in <b><i><code>get_response</code></i></b><br>
<div>
<ol start="112">
<li>
<pre style="margin-top:2px;margin-bottom:4px;background-color:silver"> response = wrapped_callback(request, *callback_args, **callback_kwargs)</pre>
</li>
</ol>
</div>
</li>
<li>
<code>/home/web/{server}/env/local/lib/<wbr>python2.7/site-packages/<wbr>django/utils/decorators.py</code> in <b><i><code>_wrapped_view</code></i></b><br>
<div>
<ol start="99">
<li>
<pre style="margin-top:2px;margin-bottom:4px;background-color:silver"> response = view_func(request, *args, **kwargs)</pre>
</li>
</ol>
</div>
</li>
<li>
<code>/home/web/{server}/env/local/lib/<wbr>python2.7/site-packages/<wbr>django/views/decorators/cache.<wbr>py</code> in <b><i><code>_wrapped_view_func</code></i></b><br>
<div>
<ol start="52">
<li>
<pre style="margin-top:2px;margin-bottom:4px;background-color:silver"> response = view_func(request, *args, **kwargs)</pre>
</li>
</ol>
</div>
</li>
<li>
<code>/home/web/{server}/env/local/lib/<wbr>python2.7/site-packages/<wbr>django/contrib/admin/sites.py</code> in <b><i><code>inner</code></i></b><br>
<div>
<ol start="198">
<li>
<pre style="margin-top:2px;margin-bottom:4px;background-color:silver"> return view(request, *args, **kwargs)</pre>
</li>
</ol>
</div>
</li>
<li>
<code>/home/web/{server}/env/local/lib/<wbr>python2.7/site-packages/<wbr>django/db/transaction.py</code> in <b><i><code>inner</code></i></b><br>
<div>
<ol start="431">
<li>
<pre style="margin-top:2px;margin-bottom:4px;background-color:silver"> return func(*args, **kwargs)</pre>
</li>
</ol>
</div>
</li>
<li>
<code>/home/web/{server}/env/local/lib/<wbr>python2.7/site-packages/<wbr>reversion/revisions.py</code> in <b><i><code>do_revision_context</code></i></b><br>
<div>
<ol start="300">
<li>
<pre style="margin-top:2px;margin-bottom:4px;background-color:silver"> return func(*args, **kwargs)</pre>
</li>
</ol>
</div>
</li>
<li>
<code>/home/web/{server}/env/local/lib/<wbr>python2.7/site-packages/cms/<wbr>admin/pageadmin.py</code> in <b><i><code>publish_page</code></i></b><br>
<div>
<ol start="1038">
<li>
<pre style="margin-top:2px;margin-bottom:4px;background-color:silver"> published = page.publish(language)</pre>
</li>
</ol>
</div>
</li>
<li>
<code>/home/web/{server}/env/local/lib/<wbr>python2.7/site-packages/cms/<wbr>models/pagemodel.py</code> in <b><i><code>publish</code></i></b><br>
<div>
<ol start="567">
<li>
<pre style="margin-top:2px;margin-bottom:4px;background-color:silver"> self._copy_contents(public_<wbr>page, language)</pre>
</li>
</ol>
</div>
</li>
<li>
<code>/home/web/{server}/env/local/lib/<wbr>python2.7/site-packages/cms/<wbr>models/pagemodel.py</code> in <b><i><code>_copy_contents</code></i></b><br>
<div>
<ol start="266">
<li>
<pre style="margin-top:2px;margin-bottom:4px;background-color:silver"> copy_plugins_to(plugins, ph, no_signals=True)</pre>
</li>
</ol>
</div>
</li>
<li>
<code>/home/web/{server}/env/local/lib/<wbr>python2.7/site-packages/cms/<wbr>utils/copy_plugins.py</code> in <b><i><code>copy_plugins_to</code></i></b><br>
<div>
<ol start="22">
<li>
<pre style="margin-top:2px;margin-bottom:4px;background-color:silver"> new_plugin = old_plugin.copy_plugin(to_<wbr>placeholder, plugin_language, old_parent_cache, no_signals=no_signals)</pre>
</li>
</ol>
</div>
</li>
</div>
</div>
<li>
<div>
<div class="adm">
<div id="q_3467" class="ajR h4" data-tooltip="Скрыть развернутую часть" aria-label="Скрыть развернутую часть">
<div class="ajT"></div>
</div>
</div>
<div class="im">
<code>/home/web/{server}/env/local/lib/<wbr>python2.7/site-packages/cms/<wbr>models/pluginmodel.py</code> in <b><i><code>copy_plugin</code></i></b><br>
<div>
<ol start="262">
<li>
<pre style="margin-top:2px;margin-bottom:4px"> new_plugin.tree_id = None</pre>
</li>
<li>
<pre style="margin-top:2px;margin-bottom:4px"> new_plugin.lft = None</pre>
</li>
<li>
<pre style="margin-top:2px;margin-bottom:4px"> new_plugin.rght = None</pre>
</li>
<li>
<pre style="margin-top:2px;margin-bottom:4px"> new_plugin.level = None</pre>
</li>
<li>
<pre style="margin-top:2px;margin-bottom:4px"> # we assign a parent to our new plugin</pre>
</li>
<li>
<pre style="margin-top:2px;margin-bottom:4px"> parent_cache[<a href="http://self.pk" target="_blank" data-saferedirecturl="https://www.google.com/url?q=http://self.pk&source=gmail&ust=1543917559762000&usg=AFQjCNHA1fITgIG5iMx3-WhJslJnI7C93w">self.pk</a>] = new_plugin</pre>
</li>
<li>
<pre style="margin-top:2px;margin-bottom:4px"> if self.parent:</pre>
</li>
</ol>
<ol start="269">
<li>
<pre style="margin-top:2px;margin-bottom:4px;background-color:silver"> parent = parent_cache[self.parent_id]</pre>
</li>
</ol>
<ol start="270">
<li>
<pre style="margin-top:2px;margin-bottom:4px"> parent = CMSPlugin.objects.get(pk=<a href="http://parent.pk" target="_blank" data-saferedirecturl="https://www.google.com/url?q=http://parent.pk&source=gmail&ust=1543917559762000&usg=AFQjCNFGT3pVfRO_1lQtYqOpISsxfI7UMg">paren<wbr>t.pk</a>)</pre>
</li>
<li>
<pre style="margin-top:2px;margin-bottom:4px"> new_plugin.parent = parent</pre>
</li>
<li>
<pre style="margin-top:2px;margin-bottom:4px"> new_plugin.level = None</pre>
</li>
<li>
<pre style="margin-top:2px;margin-bottom:4px"> new_plugin.language = target_language</pre>
</li>
<li>
<pre style="margin-top:2px;margin-bottom:4px"> new_plugin.plugin_type = self.plugin_type</pre>
</li>
<li>
<pre style="margin-top:2px;margin-bottom:4px"> new_plugin.position = self.position</pre>
</li>
</ol>
</div>
</div>
</div>
<h3>Local Vars (last frame)
<table cellspacing="0" cellpadding="2" border="1">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody style="font-size:9pt">
<tr>
<td>self</td>
<td>
<pre><CMSPlugin: 472264></pre>
</td>
</tr>
<tr>
<td>no_signals</td>
<td>
<pre>True</pre>
</td>
</tr>
<tr>
<td>target_placeholder</td>
<td>
<pre><Placeholder: content></pre>
</td>
</tr>
<tr>
<td>new_plugin</td>
<td>
<pre><CMSPlugin: None></pre>
</td>
</tr>
<tr>
<td>parent_cache</td>
<td>
<pre>{184070: <CMSPlugin: 665251>,
184071: <CMSPlugin: 665252>,
184072: <CMSPlugin: 665355>,
184074: <CMSPlugin: 665448>,
220306: <CMSPlugin: 665543>,
220307: <CMSPlugin: 665544>,
220308: <CMSPlugin: 665253>,
220309: <CMSPlugin: 665254>,
220310: <CMSPlugin: 665255>,
220311: <CMSPlugin: 665256>,
220312: <CMSPlugin: 665258>,
220313: <CMSPlugin: 665259>,
220314: <CMSPlugin: 665264>,
220315: <CMSPlugin: 665265>,
220316: <CMSPlugin: 665266>,
220317: <CMSPlugin: 665267>,
220318: <CMSPlugin: 665283>,
220319: <CMSPlugin: 665284>,
220320: <CMSPlugin: 665298>,
220321: <CMSPlugin: 665299>,
220322: <CMSPlugin: 665324>,
220323: <CMSPlugin: 665325>,
220324: <CMSPlugin: 665356>,
220325: <CMSPlugin: 665362>,
220326: <CMSPlugin: 665367>,
220327: <CMSPlugin: 665373>,
220328: <CMSPlugin: 665377>,
220329: <CMSPlugin: 665385>,
220330: <CMSPlugin: 665402>,
220331: <CMSPlugin: 665424>,
220332: <CMSPlugin: 665449>,
220333: <CMSPlugin: 665453>,
220334: <CMSPlugin: 665458>,
220335: <CMSPlugin: 665465>,
220336: <CMSPlugin: 665469>,
220337: <CMSPlugin: 665478>,
220338: <CMSPlugin: 665492>,
220339: <CMSPlugin: 665521>,
220340: <CMSPlugin: 665358>,
220341: <CMSPlugin: 665363>,
220342: <CMSPlugin: 665368>,
220343: <CMSPlugin: 665374>,
220344: <CMSPlugin: 665378>,
220345: <CMSPlugin: 665386>,
220346: <CMSPlugin: 665403>,
220347: <CMSPlugin: 665425>,
220348: <CMSPlugin: 665450>,
220349: <CMSPlugin: 665454>,
220350: <CMSPlugin: 665459>,
220351: <CMSPlugin: 665466>,
220352: <CMSPlugin: 665470>,
220353: <CMSPlugin: 665479>,
220354: <CMSPlugin: 665493>,
220355: <CMSPlugin: 665522>,
220591: <CMSPlugin: 665352>,
220594: <CMSPlugin: 665443>,
220596: <CMSPlugin: 665531>,
220597: <CMSPlugin: 665532>,
220598: <CMSPlugin: 665538>,
220599: <CMSPlugin: 665353>,
220600: <CMSPlugin: 665444>,
220601: <CMSPlugin: 665445>,
220602: <CMSPlugin: 665354>,
220603: <CMSPlugin: 665541>,
221219: <CMSPlugin: 665545>,
221220: <CMSPlugin: 665547>,
221221: <CMSPlugin: 665554>,
221261: <CMSPlugin: 665285>,
221262: <CMSPlugin: 665286>,
221263: <CMSPlugin: 665287>,
221272: <CMSPlugin: 665548>,
221281: <CMSPlugin: 665546>,
229616: <CMSPlugin: 665268>,
229725: <CMSPlugin: 665497>,
229726: <CMSPlugin: 665480>,
229727: <CMSPlugin: 665387>,
229728: <CMSPlugin: 665288>,
229729: <CMSPlugin: 665524>,
229730: <CMSPlugin: 665525>,
229731: <CMSPlugin: 665526>,
229732: <CMSPlugin: 665498>,
229733: <CMSPlugin: 665499>,
229734: <CMSPlugin: 665500>,
229735: <CMSPlugin: 665501>,
229736: <CMSPlugin: 665502>,
229737: <CMSPlugin: 665503>,
229738: <CMSPlugin: 665471>,
229739: <CMSPlugin: 665472>,
229740: <CMSPlugin: 665473>,
229741: <CMSPlugin: 665481>,
229742: <CMSPlugin: 665482>,
229743: <CMSPlugin: 665483>,
229886: <CMSPlugin: 665306>,
229887: <CMSPlugin: 665307>,
229888: <CMSPlugin: 665308>,
229889: <CMSPlugin: 665269>,
229890: <CMSPlugin: 665270>,
229891: <CMSPlugin: 665271>,
229892: <CMSPlugin: 665272>,
229893: <CMSPlugin: 665273>,
229894: <CMSPlugin: 665289>,
229895: <CMSPlugin: 665290>,
229896: <CMSPlugin: 665291>,
229897: <CMSPlugin: 665292>,
229898: <CMSPlugin: 665293>,
229899: <CMSPlugin: 665294>,
229900: <CMSPlugin: 665309>,
229901: <CMSPlugin: 665310>,
229902: <CMSPlugin: 665311>,
229903: <CMSPlugin: 665312>,
229904: <CMSPlugin: 665313>,
229905: <CMSPlugin: 665314>,
229906: <CMSPlugin: 665336>,
229907: <CMSPlugin: 665340>,
484528: <CMSPlugin: 665535>,
484529: <CMSPlugin: 665536>,
484530: <CMSPlugin: 665537>,
547634: <CMSPlugin: 665553>,
547638: <CMSPlugin: 665494>,
547639: <CMSPlugin: 665301>,
548304: <CMSPlugin: 665262>,
548306: <CMSPlugin: 665463>,
564010: <CMSPlugin: 665399>,
592455: <CMSPlugin: 665302>,
592456: <CMSPlugin: 665400>,
592457: <CMSPlugin: 665495>,
603927: <CMSPlugin: 665303>,
603928: <CMSPlugin: 665338>,
609999: <CMSPlugin: 665523>,
620251: <CMSPlugin: 665263>,
620252: <CMSPlugin: 665372>,
620253: <CMSPlugin: 665464>,
629124: <CMSPlugin: 665539>,
629125: <CMSPlugin: 665540>,
645123: <CMSPlugin: 665282>,
645124: <CMSPlugin: 665339>,
652550: <CMSPlugin: 665304>,
652551: <CMSPlugin: 665401>,
652552: <CMSPlugin: 665305>,
653308: <CMSPlugin: 665496>,
657288: <CMSPlugin: 665549>,
657289: <CMSPlugin: 665550>}</pre>
</td>
</tr>
<tr>
<td>plugin_instance</td>
<td>
<pre><FilerFile: Рабочая программа дисциплины></pre>
</td>
</tr>
<tr>
<td>target_language</td>
<td>
<pre>u'ru'</pre>
</td>
</tr>
<tr>
<td>cls</td>
<td>
<pre>Error in formatting: __repr__ returned non-string (type __proxy__)</pre>
</td>
</tr>
</tbody>
</table>
</h3>
</li>
</ul>
</div>
<div>
<div class="adm">
<div id="q_3465" class="ajR h4">
<div class="ajT"></div>
</div>
</div>
<div class="h5">
<h2>Request information</h2>
<h3>POST</h3>
<p>No POST data</p>
<h3>META</h3>
</div>
</div>
<table cellspacing="0" cellpadding="2" border="1">
<thead>
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
</thead>
<tbody style="font-size:9pt">
<tr>
<td>wsgi.multiprocess</td>
<td>
<pre>True</pre>
</td>
</tr>
<tr>
<td>HTTP_REFERER</td>
<td>
<pre>************************</pre>
</td>
</tr>
<tr>
<td>uwsgi.version</td>
<td>
<pre>'1.9.16'</pre>
</td>
</tr>
<tr>
<td>SCRIPT_NAME</td>
<td>
<pre>u''</pre>
</td>
</tr>
<tr>
<td>REQUEST_METHOD</td>
<td>
<pre>'GET'</pre>
</td>
</tr>
<tr>
<td>PATH_INFO</td>
<td>
<pre>u'/ru/admin/cms/page/6154/ru/<wbr>publish/'</pre>
</td>
</tr>
<tr>
<td>SERVER_PROTOCOL</td>
<td>
<pre>'HTTP/1.0'</pre>
</td>
</tr>
<tr>
<td>QUERY_STRING</td>
<td>
<pre>''</pre>
</td>
</tr>
<tr>
<td>HTTP_X_REAL_IP</td>
<td>
<pre>***************</pre>
</td>
</tr>
<tr>
<td>CONTENT_LENGTH</td>
<td>
<pre>''</pre>
</td>
</tr>
<tr>
<td>HTTP_USER_AGENT</td>
<td>
<pre>'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36'</pre>
</td>
</tr>
<tr>
<td>HTTP_CONNECTION</td>
<td>
<pre>'close'</pre>
</td>
</tr>
<tr>
<td>HTTP_COOKIE</td>
<td>
<pre>******************</pre>
</td>
</tr>
<tr>
<td>SERVER_NAME</td>
<td>
<pre>***************************</pre>
</td>
</tr>
<tr>
<td>REMOTE_ADDR</td>
<td>
<pre>'*************************'</pre>
</td>
</tr>
<tr>
<td>wsgi.url_scheme</td>
<td>
<pre>'http'</pre>
</td>
</tr>
<tr>
<td>SERVER_PORT</td>
<td>
<pre>'80'</pre>
</td>
</tr>
<tr>
<td>uwsgi.node</td>
<td>
<pre>'{server}'</pre>
</td>
</tr>
<tr>
<td>DOCUMENT_ROOT</td>
<td>
<pre>'/etc/nginx/html'</pre>
</td>
</tr>
<tr>
<td>wsgi.input</td>
<td>
<pre><uwsgi._Input object at 0x15000d60></pre>
</td>
</tr>
<tr>
<td>HTTP_HOST</td>
<td>
<pre>************************</pre>
</td>
</tr>
<tr>
<td>wsgi.multithread</td>
<td>
<pre>False</pre>
</td>
</tr>
<tr>
<td>HTTP_UPGRADE_INSECURE_REQUESTS</td>
<td>
<pre>'1'</pre>
</td>
</tr>
<tr>
<td>REQUEST_URI</td>
<td>
<pre>'/ru/admin/cms/page/6154/ru/<wbr>publish/'</pre>
</td>
</tr>
<tr>
<td>HTTP_ACCEPT</td>
<td>
<pre>'text/html,application/xhtml+<wbr>xml,application/xml;q=0.9,<wbr>image/webp,image/apng,*/*;q=0.<wbr>8'</pre>
</td>
</tr>
<tr>
<td>wsgi.version</td>
<td>
<pre>(1, 0)</pre>
</td>
</tr>
<tr>
<td>HTTP_X_FORWARDED_FOR</td>
<td>
<pre>'*************************'</pre>
</td>
</tr>
<tr>
<td>wsgi.errors</td>
<td>
<pre><open file 'wsgi_errors', mode 'w' at 0xf6fd1a18></pre>
</td>
</tr>
<tr>
<td>REMOTE_PORT</td>
<td>
<pre>''</pre>
</td>
</tr>
<tr>
<td>HTTP_ACCEPT_LANGUAGE</td>
<td>
<pre>'ru-RU,ru;q=0.9,en-US;q=0.8,<wbr>en;q=0.7'</pre>
</td>
</tr>
<tr>
<td>wsgi.run_once</td>
<td>
<pre>False</pre>
</td>
</tr>
<tr>
<td>CONTENT_TYPE</td>
<td>
<pre>''</pre>
</td>
</tr>
<tr>
<td>wsgi.file_wrapper</td>
<td>
<pre>''</pre>
</td>
</tr>
<tr>
<td>CSRF_COOKIE</td>
<td>
<pre>u'<wbr>zazTNJ0BQAWA0CqbRevf2EpbzXEYch<wbr>FE'</pre>
</td>
</tr>
<tr>
<td>HTTP_ACCEPT_ENCODING</td>
<td>
<pre>'gzip, deflate'</pre>
</td>
</tr>
</tbody>
</table>
<div class="yj6qo"></div>
<div class="adL">
</div>
</div>