0

I get a lot of notices on my site.

f.e. Notice: Trying to get property of non-object in drupal_lookup_path() (line 77 of /home/srv/www/mysite/includes/path.inc).

Notice: Trying to get property of non-object in template_preprocess_html() (line 2497 of /home/srv/www/mysite/includes/theme.inc).

and many other. And also warning: Warning: Attempt to assign property of non-object in template_preprocess_html() (line 2497 of /home/srv/www/mysite/includes/theme.inc).

I don't know how to fix this. Thanks to all for help.

0

For your issues you can refer

these links have given some patch for these notices

  1. https://www.drupal.org/node/1907684

  2. https://www.drupal.org/node/1104822

  3. https://www.drupal.org/node/1853170

  • Thanks. I have already found this links and that's quite complicated for me. – lacko21 Feb 20 '15 at 16:46
  • so you tried applying these patch ? are you using Bootstrap? – DEVARAJ JOHNSON Feb 20 '15 at 16:47
  • No,I didn't. And theme is based on Omega. – lacko21 Feb 20 '15 at 17:03
  • Any of these links give patch for some of my notices.In the first one it was caused by better_statistics, but I don't have this module. Second and third ones do not solve my notices. – lacko21 Feb 20 '15 at 17:56
0

I'm assuming you are using Features on a multilingual website.

Using "Variable translation" to have a multilingual slogan, and using Features to export the slogan, the language_default is saved as an array, instead of an object.

How to fix:

$language_default = variable_get('language_default', array());
variable_set('language_default', (object) $language_default);

Execute the code above in Drupal cron or somewhere in Drupal. It converts $language_default array to object.

Source is here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.