I've got a weird problem my theme. I've got 2 custom theme, one default for main website and another admin theme. I also use sections module to simulate a joomla-like admin page. problem here is that admin theme becomes disabled sometimes so admin users see admin page with default theme! so everytime I have to login user/1 and enable admin theme. I have no idea why this happen but kinda feel like mostly when I visit a alias, run cron(not all the crons) or add new section. this one happens everyday or 2. any1 can help me out here? I'm done with the site which I'm working for a month on it, but can't install it for my client yet since this crit bug -- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com> -- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
Really, you can't get any help until you can recreate the problem. Try all the things you've suggested and see if you can make it happen predictably. Use a notebook or something to list the permutations you've tried. Try to figure out all of them. http://randyfay.com/debugging might be useful to you for strategy on this. When you have a way to recreate it, then it can be fixed, one way or another. -Randy On Tue, Feb 8, 2011 at 7:56 AM, Pooya <pooya.source@gmail.com> wrote:
I've got a weird problem my theme. I've got 2 custom theme, one default for main website and another admin theme. I also use sections module to simulate a joomla-like admin page. problem here is that admin theme becomes disabled sometimes so admin users see admin page with default theme! so everytime I have to login user/1 and enable admin theme.
I have no idea why this happen but kinda feel like mostly when I visit a alias, run cron(not all the crons) or add new section.
this one happens everyday or 2. any1 can help me out here? I'm done with the site which I'm working for a month on it, but can't install it for my client yet since this crit bug
-- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
-- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
-- Randy Fay Drupal Module and Site Development randy@randyfay.com +1 970.462.7450
ok then I'm going to start testing through this bug. However still feel like it might be sections problem, so I'll check section module codes see if there's a line which disables a theme in specific conditions. last solution might be writing a module that take cares if theme is disabled on each page request, if not enabled -> enable. On Tue, Feb 8, 2011 at 6:45 PM, Randy Fay <randy@randyfay.com> wrote:
Really, you can't get any help until you can recreate the problem.
Try all the things you've suggested and see if you can make it happen predictably. Use a notebook or something to list the permutations you've tried. Try to figure out all of them.
http://randyfay.com/debugging might be useful to you for strategy on this.
When you have a way to recreate it, then it can be fixed, one way or another.
-Randy
On Tue, Feb 8, 2011 at 7:56 AM, Pooya <pooya.source@gmail.com> wrote:
I've got a weird problem my theme. I've got 2 custom theme, one default for main website and another admin theme. I also use sections module to simulate a joomla-like admin page. problem here is that admin theme becomes disabled sometimes so admin users see admin page with default theme! so everytime I have to login user/1 and enable admin theme.
I have no idea why this happen but kinda feel like mostly when I visit a alias, run cron(not all the crons) or add new section.
this one happens everyday or 2. any1 can help me out here? I'm done with the site which I'm working for a month on it, but can't install it for my client yet since this crit bug
-- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
-- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
-- Randy Fay Drupal Module and Site Development randy@randyfay.com +1 970.462.7450
-- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
It's generally a *really* bad idea to write code that "corrects" for a bug. That code almost always becomes a bug itself. So I encourage you to *solve* the problem instead :-) On Tue, Feb 8, 2011 at 8:42 AM, Pooya <pooya.source@gmail.com> wrote:
ok then I'm going to start testing through this bug. However still feel like it might be sections problem, so I'll check section module codes see if there's a line which disables a theme in specific conditions. last solution might be writing a module that take cares if theme is disabled on each page request, if not enabled -> enable.
On Tue, Feb 8, 2011 at 6:45 PM, Randy Fay <randy@randyfay.com> wrote:
Really, you can't get any help until you can recreate the problem.
Try all the things you've suggested and see if you can make it happen predictably. Use a notebook or something to list the permutations you've tried. Try to figure out all of them.
http://randyfay.com/debugging might be useful to you for strategy on this.
When you have a way to recreate it, then it can be fixed, one way or another.
-Randy
On Tue, Feb 8, 2011 at 7:56 AM, Pooya <pooya.source@gmail.com> wrote:
I've got a weird problem my theme. I've got 2 custom theme, one default for main website and another admin theme. I also use sections module to simulate a joomla-like admin page. problem here is that admin theme becomes disabled sometimes so admin users see admin page with default theme! so everytime I have to login user/1 and enable admin theme.
I have no idea why this happen but kinda feel like mostly when I visit a alias, run cron(not all the crons) or add new section.
this one happens everyday or 2. any1 can help me out here? I'm done with the site which I'm working for a month on it, but can't install it for my client yet since this crit bug
-- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
-- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
-- Randy Fay Drupal Module and Site Development randy@randyfay.com +1 970.462.7450
-- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
-- Randy Fay Drupal Module and Site Development randy@randyfay.com +1 970.462.7450
This sounds like it might be related to http://drupal.org/node/147000 On Tue, Feb 8, 2011 at 10:49 AM, Randy Fay <randy@randyfay.com> wrote:
It's generally a *really* bad idea to write code that "corrects" for a bug. That code almost always becomes a bug itself. So I encourage you to *solve* the problem instead :-)
On Tue, Feb 8, 2011 at 8:42 AM, Pooya <pooya.source@gmail.com> wrote:
ok then I'm going to start testing through this bug. However still feel like it might be sections problem, so I'll check section module codes see if there's a line which disables a theme in specific conditions. last solution might be writing a module that take cares if theme is disabled on each page request, if not enabled -> enable.
On Tue, Feb 8, 2011 at 6:45 PM, Randy Fay <randy@randyfay.com> wrote:
Really, you can't get any help until you can recreate the problem.
Try all the things you've suggested and see if you can make it happen predictably. Use a notebook or something to list the permutations you've tried. Try to figure out all of them.
http://randyfay.com/debugging might be useful to you for strategy on this.
When you have a way to recreate it, then it can be fixed, one way or another.
-Randy
On Tue, Feb 8, 2011 at 7:56 AM, Pooya <pooya.source@gmail.com> wrote:
I've got a weird problem my theme. I've got 2 custom theme, one default for main website and another admin theme. I also use sections module to simulate a joomla-like admin page. problem here is that admin theme becomes disabled sometimes so admin users see admin page with default theme! so everytime I have to login user/1 and enable admin theme.
I have no idea why this happen but kinda feel like mostly when I visit a alias, run cron(not all the crons) or add new section.
this one happens everyday or 2. any1 can help me out here? I'm done with the site which I'm working for a month on it, but can't install it for my client yet since this crit bug
-- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
-- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
-- Randy Fay Drupal Module and Site Development randy@randyfay.com +1 970.462.7450
-- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
-- Randy Fay Drupal Module and Site Development randy@randyfay.com +1 970.462.7450
I know but I suck at debugging and don't have much time. however that's the last solution and still a couple of days have been left of schedule just to solve this. I'll try not to write a new code :) thank u for your time On Tue, Feb 8, 2011 at 7:19 PM, Randy Fay <randy@randyfay.com> wrote:
It's generally a *really* bad idea to write code that "corrects" for a bug. That code almost always becomes a bug itself. So I encourage you to *solve* the problem instead :-)
On Tue, Feb 8, 2011 at 8:42 AM, Pooya <pooya.source@gmail.com> wrote:
ok then I'm going to start testing through this bug. However still feel like it might be sections problem, so I'll check section module codes see if there's a line which disables a theme in specific conditions. last solution might be writing a module that take cares if theme is disabled on each page request, if not enabled -> enable.
On Tue, Feb 8, 2011 at 6:45 PM, Randy Fay <randy@randyfay.com> wrote:
Really, you can't get any help until you can recreate the problem.
Try all the things you've suggested and see if you can make it happen predictably. Use a notebook or something to list the permutations you've tried. Try to figure out all of them.
http://randyfay.com/debugging might be useful to you for strategy on this.
When you have a way to recreate it, then it can be fixed, one way or another.
-Randy
On Tue, Feb 8, 2011 at 7:56 AM, Pooya <pooya.source@gmail.com> wrote:
I've got a weird problem my theme. I've got 2 custom theme, one default for main website and another admin theme. I also use sections module to simulate a joomla-like admin page. problem here is that admin theme becomes disabled sometimes so admin users see admin page with default theme! so everytime I have to login user/1 and enable admin theme.
I have no idea why this happen but kinda feel like mostly when I visit a alias, run cron(not all the crons) or add new section.
this one happens everyday or 2. any1 can help me out here? I'm done with the site which I'm working for a month on it, but can't install it for my client yet since this crit bug
-- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
-- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
-- Randy Fay Drupal Module and Site Development randy@randyfay.com +1 970.462.7450
-- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
-- Randy Fay Drupal Module and Site Development randy@randyfay.com +1 970.462.7450
-- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
oh thank u, this actually can really help On Tue, Feb 8, 2011 at 7:48 PM, Ted <ted-drupalists@webfirst.com> wrote:
One of your first steps might be to keep a running log of your theme status. You could do that with a drush script run from cron every minute:
drush -r "/your/drupal/path" sql-query "select status from {system} where type = 'theme' and name = 'your_theme_name';"
echo the date to your log as well and you should be able to narrow down which web request, if any, is responsible for disabling the theme.
Ted
On 2/8/2011 10:15 AM, Randy Fay wrote:
Really, you can't get any help until you can recreate the problem.
Try all the things you've suggested and see if you can make it happen predictably. Use a notebook or something to list the permutations you've tried. Try to figure out all of them.
http://randyfay.com/debugging might be useful to you for strategy on this.
When you have a way to recreate it, then it can be fixed, one way or another.
-Randy
On Tue, Feb 8, 2011 at 7:56 AM, Pooya <pooya.source@gmail.com> wrote:
I've got a weird problem my theme. I've got 2 custom theme, one default for main website and another admin theme. I also use sections module to simulate a joomla-like admin page. problem here is that admin theme becomes disabled sometimes so admin users see admin page with default theme! so everytime I have to login user/1 and enable admin theme.
I have no idea why this happen but kinda feel like mostly when I visit a alias, run cron(not all the crons) or add new section.
this one happens everyday or 2. any1 can help me out here? I'm done with the site which I'm working for a month on it, but can't install it for my client yet since this crit bug
-- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
-- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
-- Randy Fay Drupal Module and Site Development randy@randyfay.com +1 970.462.7450
--
Ted Gifford | Senior Web Developer
WebFirst | Real Solutions for a Virtual World | www.webfirst.com 15800 Crabbs Branch Way, Suite 120, Rockville, MD 20855 | Tel: 301.670.1690 x 204 *Services: Content Management / Drupal, Section 508, GIS, Workflow, Data Visualization, Microsoft .NET*
-- Pooya Sanooei Twitter <http://twitter.com/sourcesoft> - Facebook<http://facebook.com/pooya.sanooei>- Website <http://www.javabgoo.com>
participants (4)
-
David Stoline -
Pooya -
Randy Fay -
Ted