Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 292695

Poll in forum notices

$
0
0

I have a Poll content type that works fine. I thought it would be nice when forum users can post their poll too. I added the forum taxonomy reference to the poll content type and made it not obligatory (to be able to post polls elsewhere).

Now when I create a new poll I see the following notices appear:

Notice: Undefined property: stdClass::$active in poll_load() (line 507 of /var/www/modules/poll/poll.module).
Notice: Undefined property: stdClass::$choice in poll_tokens() (line 58 of /var/www/modules/poll/poll.tokens.inc).
Warning: Invalid argument supplied for foreach() in poll_tokens() (line 58 of /var/www/modules/poll/poll.tokens.inc).
Notice: Undefined property: stdClass::$choice in poll_tokens() (line 58 of /var/www/modules/poll/poll.tokens.inc).
Warning: Invalid argument supplied for foreach() in poll_tokens() (line 58 of /var/www/modules/poll/poll.tokens.inc).

When I save the poll I see:

Error message
Notice: Undefined property: stdClass::$active in poll_load() (line 507 of /var/www/modules/poll/poll.module).

After saving the poll behaves normal, but it gives me the suspicion that this relates to another problem I notice when using the convert module to change a forum topic into a forum poll. The resulting poll fails to recognise the active state. No matter what the status or expiry, never becomes votable.


Viewing all articles
Browse latest Browse all 292695

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>