Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
After getting the following error:
Unable to create sites/default/themes. [error]
Failed to generate subtheme. [error]
I created the directory sites/default/themes
, and set the permissions correctly (I think) to 775.
Then I re-ran the wizard.
At this stage:
Do you want to make your new theme the default theme? (y/n): y
I got the following error and was unable to proceed:
<h1>Additional uncaught exception thrown while handling exception.</h1><h2>Original</h2><p>PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: DELETE FROM {cache}
WHERE (cid LIKE :db_condition_placeholder_0 ESCAPE &#039;\\&#039;) ; Array
(
[:db_condition_placeholder_0] =&gt; theme\_registry%
)
in cache_clear_all() (line 176 of /vagrant/public/includes/cache.inc).</p><h2>Additional</h2><p>PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array
(
[:db_insert_placeholder_0] =&gt; 0
[:db_insert_placeholder_1] =&gt; php
[:db_insert_placeholder_2] =&gt; %type: !message in %function (line %line of %file).
[:db_insert_placeholder_3] =&gt; a:6:{s:5:&quot;%type&quot;;s:12:&quot;PDOException&quot;;s:8:&quot;!message&quot;;s:223:&quot;SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: DELETE FROM {cache}
WHERE (cid LIKE :db_condition_placeholder_0 ESCAPE &amp;#039;\\&amp;#039;) ; Array
(
[:db_condition_placeholder_0] =&amp;gt; theme\_registry%
)
&quot;;s:9:&quot;%function&quot;;s:17:&quot;cache_clear_all()&quot;;s:5:&quot;%file&quot;;s:34:&quot;/vagrant/public/includes/cache.inc&quot;;s:5:&quot;%line&quot;;i:176;s:14:&quot;severity_level&quot;;i:3;}
[:db_insert_placeholder_4] =&gt; 3
[:db_insert_placeholder_5] =&gt;
[:db_insert_placeholder_6] =&gt; http://default/index.php
[:db_insert_placeholder_7] =&gt;
[:db_insert_placeholder_8] =&gt; 127.0.0.1
[:db_insert_placeholder_9] =&gt; 1359514539
)
in dblog_watchdog() (line 154 of /vagrant/public/modules/dblog/dblog.module).</p><hr />Drush command terminated abnormally due to an unrecoverable error. [error]
Comment | File | Size | Author |
---|---|---|---|
#3 | screenshot omega wizard error.jpg | 226 KB | Anonymous (not verified) |
Comments
Comment #1
msmithcti CreditAttribution: msmithcti commentedI'll take a look at this over the next few days.
Comment #2
fubhy CreditAttribution: fubhy commentedI can't reproduce this error anymore. Also, sites/default/themes is not a valid theme folder anymore and does not work anyways :).
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedI am getting the same error when using drush omega-wizard.
See uploaded file: screenshot omega wizard error.jpg
The relevant error message seem to be:
Additional uncaught exception thrown while handling exception.Original
PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: SELECT filename, name, type, status, schema_version, weight FROM {system} WHERE type = :type; Array
Comment #4
steinmb CreditAttribution: steinmb as a volunteer commented