Copying a drupal default theme to /sites/all/themes/ and rework the .info, template.php and theme-settings.php as per tutorial and all works - until!
Until one inserts the line base theme = garland or base theme = new name into the .info file of the new renamed .info. Bingo drupal is dead, no access to the system because there's no theme.
It does not default to (Seven) the admin theme. Most peculiar that drupal can eliminate access because of a line in the .info file. If the offending line is commented out, deleted or changed to garland, drupal still dead.
It seems that drupal reads the multi site .info once and saves a change to somewhere in the database then does not re read the .info file To fix: Needs a fresh install of that particular multi site.
So if someone changes the .info file it kills drupal 7! This needs serious attention. It is inconceivable that something as innocuous as the .info file can be so destructive.
Cheers Roger
Next time you'll backup your database first, eh?;)
As said previously, it's probably not a great idea to modify core themes.
But anyway, I just tested your scenario and can't reproduce it.
Here's what I did: copied the Garland theme to sites/all/themes/test moved garland.info to test.info replaced all instances of the word "garland" with "test" in theme-settings.php, template.php and test.info
Importantly (I think) I commented out the line "package = Core" in test.info. ;D
Changed the theme to test and everything is working fine.
I highly recommend you have a look at Sky and Corolla, which are sub-themes of Adaptivetheme. There's even a sub-sub-theme called Footheme, with which you can override the CSS and keep your changes separate and organised.
That could be considered top-heavy, I guess, but it's worth it for the time saving, and mobile-ready layout, amongst many other nifty features. And it's especially great for someone like me, who is more a content provider and sysadmin than developer. (My grasp of CSS is tenuous at best.)
HTH
On Wed, 2011-10-05 at 16:16 +1100, Roger wrote:
Copying a drupal default theme to /sites/all/themes/ and rework the .info, template.php and theme-settings.php as per tutorial and all works
- until!
Until one insert as the line base theme = garland or base theme = new name into the .info file of the new renamed .info. Bingo drupal is dead, no access to the system because there's no theme.
It does not default to (Seven) the admin theme. Most peculiar that drupal can eliminate access because of a line in the .info file. If the offending line is commented out, deleted or changed to garland, drupal still dead.
It seems that drupal reads the multi site .info once and saves a change to somewhere in the database then does not re read the .info file To fix: Needs a fresh install of that particular multi site.
So if someone changes the .info file it kills drupal 7! This needs serious attention. It is inconceivable that something as innocuous as the .info file can be so destructive.
Cheers Roger
On 05/10/11 17:37, Jeff Brown wrote:
Next time you'll backup your database first, eh?;)
As said previously, it's probably not a great idea to modify core themes.
But anyway, I just tested your scenario and can't reproduce it.
Here's what I did: copied the Garland theme to sites/all/themes/test moved garland.info to test.info replaced all instances of the word "garland" with "test" in theme-settings.php, template.php and test.info
Importantly (I think) I commented out the line "package = Core" in test.info. ;D
Thanks for trying. That's what I did in the first instance, it worked briefly then failed, Did not change anything. Strangely I could reproduce the failure each time using the same database. New database and the problem went away until I changed the colours, then same failure occurred. Fortunately it's a dev database so it doesn't matter if basic "stufff" gets lost. I've installed another theme that seems to be very good for the purpose. thank you Roger
I haven't tried it with Garland or Bartik, but I have followed the sub-theme directions for Seven and it worked fine. Could it actually be a failure in the Color module?
Nancy Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
From: Roger
That's what I did in the first instance, it worked briefly then failed, Did not change anything. Strangely I could reproduce the failure each time using the same database. New database and the problem went away until I changed the colours, then same failure occurred. Fortunately it's a dev database so it doesn't matter if basic "stufff" gets lost.
Not sure if this worked, using latest drupal 7.8 please see below: Downloaded and installed Adaptivetheme 7.x-2.x activated the at core theme next uploaded Sky 7.x-2.2 Corolla 7.x-2.22 clicked on install new theme and here is where I received the errors
Sky theme Error message Notice: Undefined index: seven in _drupal_maintenance_theme() (line 74 of /home/example/public_html/access/includes/theme.maintenance.inc). Notice: Trying to get property of non-object in _drupal_theme_initialize() (line 145 of /home/example/public_html/access/includes/theme.inc). Notice: Undefined index: seven in _drupal_maintenance_theme() (line 74 of /home/example/public_html/access/includes/theme.maintenance.inc). Notice: Trying to get property of non-object in _drupal_theme_initialize() (line 145 of /home/example/public_html/access/includes/theme.inc). Notice: Trying to get property of non-object in _theme_build_registry() (line 549 of /home/example/public_html/access/includes/theme.inc). Notice: Trying to get property of non-object in _theme_build_registry() (line 549 of /home/example/public_html/access/includes/theme.inc). Notice: Trying to get property of non-object in _theme_build_registry() (line 549 of /home/example/public_html/access/includes/theme.inc). Notice: Undefined index: seven in theme_get_setting() (line 1166 of /home/example/public_html/access/includes/theme.inc). Notice: Trying to get property of non-object in theme_get_setting() (line 1213 of /home/example/public_html/access/includes/theme.inc). Notice: Undefined index: seven in template_preprocess_maintenance_page() (line 2434 of /home/example/public_html/access/includes/theme.inc). Notice: Trying to get property of non-object in template_preprocess_maintenance_page() (line 2434 of /home/example/public_html/access/includes/theme.inc). Warning: array_keys() expects parameter 1 to be array, null given in template_preprocess_maintenance_page() (line 2437 of /home/example/public_html/access/includes/theme.inc). Warning: Invalid argument supplied for foreach() in template_preprocess_maintenance_page() (line 2437 of /home/example/public_html/access/includes/theme.inc). Status message Installation was completed successfully. sky Installed sky successfully
Notice: Undefined index: seven in _drupal_maintenance_theme() (line 74 of /home/example/public_html/access/includes/theme.maintenance.inc). Notice: Trying to get property of non-object in _drupal_theme_initialize() (line 145 of /home/example/public_html/access/includes/theme.inc). Notice: Undefined index: seven in _drupal_maintenance_theme() (line 74 of /home/example/public_html/access/includes/theme.maintenance.inc). Notice: Trying to get property of non-object in _drupal_theme_initialize() (line 145 of /home/example/public_html/access/includes/theme.inc). Notice: Trying to get property of non-object in _theme_build_registry() (line 549 of /home/example/public_html/access/includes/theme.inc). Notice: Trying to get property of non-object in _theme_build_registry() (line 549 of /home/example/public_html/access/includes/theme.inc). Notice: Trying to get property of non-object in _theme_build_registry() (line 549 of /home/example/public_html/access/includes/theme.inc). Notice: Undefined index: seven in theme_get_setting() (line 1166 of /home/example/public_html/access/includes/theme.inc). Notice: Trying to get property of non-object in theme_get_setting() (line 1213 of /home/example/public_html/access/includes/theme.inc). Notice: Undefined index: seven in template_preprocess_maintenance_page() (line 2434 of /home/example/public_html/access/includes/theme.inc). Notice: Trying to get property of non-object in template_preprocess_maintenance_page() (line 2434 of /home/example/public_html/access/includes/theme.inc). Warning: array_keys() expects parameter 1 to be array, null given in template_preprocess_maintenance_page() (line 2437 of /home/example/public_html/access/includes/theme.inc). Warning: Invalid argument supplied for foreach() in template_preprocess_maintenance_page() (line 2437 of /home/example/public_html/access/includes/theme.inc). Status message Installation was completed successfully. corolla Installed corolla successfully
It probably did work, Jim.
I still have your site on my server with those themes installed, and I activated them without a problem.
The Genesis theme you have now looks nice. Though I'm just wondering why the long links for your recent shows in the main content still don't wrap? Whereas the links in the sidebar do?
Can anyone on the list possibly explain that?
On Wed, 2011-10-05 at 20:50 -0500, Jim Ruby wrote:
Not sure if this worked, using latest drupal 7.8 please see below:
<snip>
Downloaded and installed Installation was completed successfully. corolla Installed corolla successfully
I'm happy with the Genesis theme, but not sure why they do not wrap either. I was just going to look at other themes to see what was out there.
Follow me on: Twitter: http://twitter.com/1rubytweets Facebook: http://www.facebook.com/profile.php?id=1058306793 Join me on: Yahoo: jruby6767 Msn: jruby@charter.net
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Jeff Brown Sent: Thursday, October 06, 2011 12:18 AM To: support@drupal.org Subject: Re: [support] trying Adaptivetheme 7.x-2.x and sum themes, but errors are shown
It probably did work, Jim.
I still have your site on my server with those themes installed, and I activated them without a problem.
The Genesis theme you have now looks nice. Though I'm just wondering why the long links for your recent shows in the main content still don't wrap? Whereas the links in the sidebar do?
Can anyone on the list possibly explain that?
On Wed, 2011-10-05 at 20:50 -0500, Jim Ruby wrote:
Not sure if this worked, using latest drupal 7.8 please see below:
<snip>
Downloaded and installed Installation was completed successfully. corolla Installed corolla successfully