StefanKonarski.de - Patch https://stefankonarski.de/category/tags/patch de Drupal user warning: Duplicate entry for key 'PRIMARY' in systems table https://stefankonarski.de/content/drupal-6-24-user-warning-duplicate-entry-key-primary-systems-table <div class="field field-name-taxonomy-vocabulary-3 field-type-taxonomy-term-reference field-label-above"> <div class="field-items"> <div class="field-item even"><a href="/category/tags/www">WWW</a></div> <div class="field-item odd"><a href="/category/tags/drupal">Drupal</a></div> <div class="field-item even"><a href="/category/tags/cms">CMS</a></div> <div class="field-item odd"><a href="/category/tags/patch">Patch</a></div> </div> </div> <div class="field field-name-body field-type-text-with-summary field-label-hidden"> <div class="field-items"> <div class="field-item even"><p>Patch zur Beseitigung des Fehlers unter Drupal 6.24/6.25 und Drush 4.5.</p>&#13; <!--break-->&#13; <p>Ein fehlerhafte SQL-Anweisung kann zu folgender Fehlermeldung führen:</p>&#13; <div class="geshifilter"><pre class="bash geshifilter-bash" style="font-family:monospace;"><ol><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #000000; font-weight: bold;">&amp;</span><span style="color: #666666; font-style: italic;">#13;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal">user warning: Duplicate entry <span style="color: #ff0000;">'sites/default/themes/garland/garland.info'</span> <span style="color: #000000; font-weight: bold;">for</span> key <span style="color: #ff0000;">'PRIMARY'</span> query: UPDATE system SET owner = <span style="color: #ff0000;">'themes/engines/phptemplate/phptemplate.engine'</span>, info = <span style="color: #ff0000;">'a:13:{s:4:\&quot;name\&quot;;s:14:\&quot;garland\&quot;;s:11:\&quot;description\&quot;;s:30:\&quot;Mobile optimized simple theme.\&quot;;s:4:\&quot;core\&quot;;s:3:\&quot;6.x\&quot;;s:6:\&quot;engine\&quot;;s:11:\&quot;phptemplate\&quot;;s:11:\&quot;stylesheets\&quot;&amp;#13;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #ff0000;">;a:1:{s:3:\&quot;all\&quot;;a:1:{s:9:\&quot;style.css\&quot;;s:50:\&quot;sites/default/themes/garland/style.css\&quot;;}}s:7:\&quot;version\&quot;;s:7:\&quot;6.x-1.1\&quot;;s:7:\&quot;project\&quot;;s:14:\&quot;garland\&quot;;s:9:\&quot;datestamp\&quot;;s:10:\&quot;1243343469\&quot;;s:7:\&quot;regions\&quot;;a:5:{s:4:\&quot;left\&quot;;s:12:\&quot;Left sidebar\&quot;;s:5:\&quot;right\&quot;;s:13:\&quot;Right sidebar\&quot;;s:7:\&quot;content\&quot;;s:7:\&quot;Content\&quot;;s:6:\&quot;header\&quot;;s:6:\&quot;Header\&quot;;s:6:\&quot;footer\&quot;;s:6:\&quot;Footer\&quot;;}s:8:\&quot;features\&quot;;a:10:{i:0;s:20:\&quot;comment_user_picture\&quot;;i:1;s:7:\&quot;favicon\&quot;;i:2;s:7:\&quot;mission\&quot;;i:3;s:4:\&quot;logo\&quot;;i:4;s:4:\&quot;name\&quot;;i:5;s:17:\&quot;node_user_picture\&quot;;i:6;s:6:\&quot;search\&quot;;i:7;s:6:\&quot;slogan\&quot;;i:8;s:13:\&quot;primary_links\&quot;;i:9;s:15:\&quot;secondary_links\&quot;;}s:7:\&quot;scripts\&quot;;a:1:{s:9:\&quot;script.js\&quot;;s:50:\&quot;sites/default/themes/garland/script.j&amp;#13;</span></div></li><li style="font-family: monospace; font-weight: normal;"><div style="font-family: monospace; font-weight: normal; font-style: normal"><span style="color: #ff0000;">s\&quot;;}s:10:\&quot;screenshot\&quot;;s:55:\&quot;sites/default/themes/garland/screenshot.png\&quot;;s:3:\&quot;php\&quot;;s:5:\&quot;4.3.5\&quot;;}'</span>, filename = <span style="color: #ff0000;">'sites/default/themes/garland/garland.info'</span> WHERE name = <span style="color: #ff0000;">'garland'</span> AND <span style="color: #7a0874; font-weight: bold;">type</span> = <span style="color: #ff0000;">'theme'</span> <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>drupal-<span style="color: #000000;">6.24</span><span style="color: #000000; font-weight: bold;">/</span>modules<span style="color: #000000; font-weight: bold;">/</span>system<span style="color: #000000; font-weight: bold;">/</span>system.module on line <span style="color: #000000;">836</span>.<span style="color: #000000; font-weight: bold;">&amp;</span><span style="color: #666666; font-style: italic;">#13;</span></div></li></ol></pre></div>&#13; <p>Diskutiert wird dieser Fehler in Zusammenhang mit drush für verschiedene Drupal 6 Versionen:</p>&#13; <ul><li><a href="https://www.drupal.org/node/477550">User warning: Duplicate entry ... " ... Themes</a></li>&#13; <li><a href="https://www.drupal.org/node/1033240">Duplicate Entry / disabled theme</a></li>&#13; <li><a href="https://www.drupal.org/node/1425868">Duplicate entry of themes primary key in systems table of Drupal 6.24 (using Drush or Ægir)</a></li>&#13; </ul><p>&#13; Unter dem letzten Punkt wird der Fehler und die Beseitigung durch <a href="https://www.drupal.org/node/1425868">diesen Patch</a> beschrieben.</p></div> </div> </div> Sat, 25 Feb 2012 08:48:01 +0000 stefan 284 at https://stefankonarski.de https://stefankonarski.de/content/drupal-6-24-user-warning-duplicate-entry-key-primary-systems-table#comments