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).

Comments

TBarina’s picture

I 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.

internetdevels’s picture

Status: Active » Needs review
StatusFileSize
new1.11 KB

Here is a patch which fixes the issue above.

Piazza’s picture

I applied the patch above and it works fine for me. Thank you!

TBarina’s picture

The 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

TBarina’s picture

Title: AdvPoll causes errors to Quiz module - Results » AdvPoll write-ins doesn't work properly when advPoll node is shown in colorbox

Everything 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.

tripper54’s picture

Title: AdvPoll write-ins doesn't work properly when advPoll node is shown in colorbox » AdvPoll menu namespace collision with Quiz module
tripper54’s picture

Hmm. All of our menu items should probably be namespaced to prevent this kind of thing happening in future.

tripper54’s picture

Status: Needs review » Fixed

Committed! Note I added also namespaced the other paths in advpoll_menu() , and added an update function to rebuild the menu.

Status: Fixed » Closed (fixed)

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