When a user try to see "My account" this message appears:

Notice: Trying to get property of non-object in traction_preprocess_page() (line 36 of /var/www/drupal_site/sites/all/themes/traction/template.php).

This problem in line 36 is happening because some times this object does not exist, so we need to check this after doing anything

Here is the original line:
if($node->type == 'article')

We need to change to this:
if(is_object($node) && $node->type == 'article')

The modified file is attached

Try to commit this, but I never did this here in drupal.org and don't know if the changes take effects or not.

Thanks!

Comments

kirankkaran’s picture

The issue with "Trying to get the property of non-object in traction_preprocess_page()" has been updated.
This has been made available in our next release.

zyxware’s picture

Status: Needs work » Fixed

Hi rpablop,

Revised version of Traction is now availale!!!Please download and use the latest release .

Thanks,
Zyxware.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.