Closed (fixed)
Project:
SimpleAds
Version:
7.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2011 at 09:34 UTC
Updated:
9 Dec 2011 at 07:46 UTC
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
Comment #1
dgastudio commentedsorry, wrong category
Comment #2
dgastudio commentedas 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?
Comment #3
dgastudio commentedi have found (i hope) the error with multilanguage sites.
in node.tpl
output
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.
Comment #4
minnur commented@kervi, this should be fixed in version 7.x-1.3. If yes, please close this case.
Comment #5
dgastudio commentedok, thank u!