Hi, I've built a multilingual website using i18n internationalization module (ver. 7.x-1.7) as well as Quiz module (ver. 7.x-4.0-alpha11).
When I go to my Quiz node to view results (by clicking Results tab) I get a list of errors from AdvPoll module and no Quiz result is listed.
When I disable AdvPoll I don't get those errors any more and I can have access to the list of Quiz results again.
Could you please help in fixing this?
Many thnaks in advance.
List of currently displayed errors:
Notice: Trying to get property of non-object in advpoll_ranking_results_page() (linea 88 di /home/tbarina/public_html/sites/all/modules/advpoll/advpoll_ranking/advpoll_ranking.module).
Notice: Trying to get property of non-object in advpoll_get_data() (linea 41 di /home/tbarina/public_html/sites/all/modules/advpoll/includes/advpoll_helper.inc).
Notice: Trying to get property of non-object in advpoll_get_data() (linea 44 di /home/tbarina/public_html/sites/all/modules/advpoll/includes/advpoll_helper.inc).
Notice: Undefined property: stdClass::$behavior in advpoll_ranking_results_page() (linea 90 di /home/tbarina/public_html/sites/all/modules/advpoll/advpoll_ranking/advpoll_ranking.module).
Notice: Undefined property: stdClass::$behavior in advpoll_ranking_results_page() (linea 90 di /home/tbarina/public_html/sites/all/modules/advpoll/advpoll_ranking/advpoll_ranking.module).
Notice: Undefined property: stdClass::$behavior in advpoll_ranking_results_page() (linea 92 di /home/tbarina/public_html/sites/all/modules/advpoll/advpoll_ranking/advpoll_ranking.module).
Notice: Undefined property: stdClass::$behavior in advpoll_ranking_results_page() (linea 92 di /home/tbarina/public_html/sites/all/modules/advpoll/advpoll_ranking/advpoll_ranking.module).
Notice: Trying to get property of non-object in advpoll_ranking_results_page() (linea 95 di /home/tbarina/public_html/sites/all/modules/advpoll/advpoll_ranking/advpoll_ranking.module).
Notice: Undefined property: stdClass::$state in advpoll_display_results() (linea 434 di /home/tbarina/public_html/sites/all/modules/advpoll/advpoll.module).
Notice: Undefined property: stdClass::$start_date in advpoll_display_results() (linea 438 di /home/tbarina/public_html/sites/all/modules/advpoll/advpoll.module).
Notice: Undefined property: stdClass::$end_date in advpoll_display_results() (linea 438 di /home/tbarina/public_html/sites/all/modules/advpoll/advpoll.module).
Notice: Undefined property: stdClass::$mode in advpoll_display_results() (linea 444 di /home/tbarina/public_html/sites/all/modules/advpoll/advpoll.module).
Notice: Undefined property: stdClass::$behavior in advpoll_display_results() (linea 469 di /home/tbarina/public_html/sites/all/modules/advpoll/advpoll.module).
Notice: Undefined property: stdClass::$choices in advpoll_display_results() (linea 471 di /home/tbarina/public_html/sites/all/modules/advpoll/advpoll.module).
Warning: Invalid argument supplied for foreach() in advpoll_update_choices() (linea 532 di /home/tbarina/public_html/sites/all/modules/advpoll/advpoll.module).
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | advpoll-path_to_results-1962880.patch | 1.11 KB | internetdevels |
Comments
Comment #1
TBarina commentedI noticed that errors disappear as soon as I disable "Advanced Ranking Poll" only, leaving all other three adv_poll modules enabled.
I also notice that this error doesn't have anything to do with i18n module since it's replicated in a non multilingual web-site each time the "Advanced Ranking Poll" module is enabled.
Many thanks in advance for any help on this issue.
Comment #2
internetdevels commentedHere is a patch which fixes the issue above.
Comment #3
Piazza commentedI applied the patch above and it works fine for me. Thank you!
Comment #4
TBarina commentedThe patch works. A strange thing though: when viewing Results apostrophe in the title is printed out as '
When viewing Votes or Write-ins apostrophe is correctly represented in the title.
Can you understand why?
Many thanks in advance.
Tommaso
Comment #5
TBarina commentedEverything works fine in colorbox except that when a user clicks a write-in checkbox the corresponding text input field doesn't show up.Is this a limitation or a bug to fix?Many thanks in advance.Sorry. I had to start a new issue for this one.
Comment #6
tripper54 commentedComment #7
tripper54 commentedHmm. All of our menu items should probably be namespaced to prevent this kind of thing happening in future.
Comment #9
tripper54 commentedCommitted! Note I added also namespaced the other paths in advpoll_menu() , and added an update function to rebuild the menu.