Kindly I need your support to help me solve my below problem.
Sometimes I open my website and I found this errors:

Notice: undefined index in drupal_theme_initialize()(line in include/theme.inc)

Notice: trying to get property of non-object in drupal_theme_initialize()(line in include/theme.inc)

Notice: trying to get property of non-object in _theme_load_registry()(line in include/theme.inc)

And all data in website disappear and this message appears:
"No front page content has been created yet"

I realised I didn't have any theme set as the Default. I enabled the theme and the problem was solved.

My question is: why all themes in website disabled without any action from me? It's really a big problem!

Kindly note that I use drupal 7.

Thanks in advance.

Comments

Jeff Burnz’s picture

RoubaH0943’s picture

No I don't.

Anonymous’s picture

The odds are vide breakdown below:

If your site is hosted on a live server then you might have seen the theme registery errors due to an injection.

Using core themes directly without sub theming them might be conflicting with the proper execution of your modules.

Solution

Try enabling the default bartik theme set as default and uninstall the rest, flush all cache and reinstall the theme you uninstalled be sure to take notes of errors. You should also check your settings in php.ini to be sure everythings working as it should.