created a new flash banner.

admin/content/simpleads/15/stat

Notice: Undefined index: ru in _simpleads_stat_tab() (line 38 of /home/u4586/domains/v2.yogalife.by/sites/all/modules/simpleads/simpleads.stat.inc).
Notice: Trying to get property of non-object in _simpleads_stat_tab() (line 44 of /home/u4586/domains/v2.yogalife.by/sites/all/modules/simpleads/simpleads.stat.inc).
Notice: Undefined variable: days_left_str in _simpleads_stat_tab() (line 45 of /home/u4586/domains/v2.yogalife.by/sites/all/modules/simpleads/simpleads.stat.inc).

Comments

dgastudio’s picture

Category: support » bug

sorry, wrong category

dgastudio’s picture

as i can see, you must set start and end dates to prevent errors. also, the module have some kind of problems with multilanguage sites.

can u check it please?

dgastudio’s picture

i have found (i hope) the error with multilanguage sites.

in node.tpl

<?php print $node->language ?>
<pre>
<?php print_r ($node->field_ad_category)?>
</pre>

output

en
Array
(
    [und] => Array
        (
            [0] => Array
                (
                    [tid] => 9
                )

        )

)

so, the node language is EN, but the term lang is UND.

fix:
simpleads.stat.inc
- $term = taxonomy_term_load($node->field_ad_category[$node->language][0]['tid']);
+ $term = taxonomy_term_load($node->field_ad_category['und'][0]['tid']);

all the notices has gone.

minnur’s picture

Status: Active » Needs review

@kervi, this should be fixed in version 7.x-1.3. If yes, please close this case.

dgastudio’s picture

Status: Needs review » Closed (fixed)

ok, thank u!