Firefox PHP

Module: Topic Poll

Posted by Maurice Makaay 
Topic Poll issue: undefined topic_poll
June 17, 2010 08:29PM
I switched a forum back from accepting polls. Now, I pick up theses event logs. The following error message appears once for each thread-starter. I use the "Embed" modules. Thanks for a hint!
Language: PHP
Message:   PHP notice: Undefined index: topic_poll   PHP notice generated at /var/tmp/tpl-emerald_neighborship-list-6e5d36c254118bb7a5d3e1a525a7dfee.php-stage2:93   Back trace:   Function include called at /var/tmp/tpl-emerald_neighborship-list-6e5d36c254118bb7a5d3e1a525a7dfee.php:7 ---- Function include called at {path to Phorum}/common.php:1466 ---- Function phorum_output called at {path to Phorum}/list.php:596
Re: Topic Poll issue: undefined topic_poll
June 17, 2010 08:57PM
korsakov, there is a very simple three step process for getting your problems solved:
  1. Identify the module causing the problem (often found in the error message or with the Event Logging module).
  2. Visit the module's forum post (often linked from the Modules page in the Admin section) and start a reply to that post.
  3. In you reply, post a detailed description of your problem, including any errors messages exactly as they are displayed.
You clearly had no problem with the first step and succeeded with the third step *this* time, but you still seem to have problem with the second step and moderators only have so much patience for moving and merging posts before the delete link starts looking pretty tempting. Please be more careful in the future.

Maurice, my apologies for going a bit off-topic on your thread.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Topic Poll issue: undefined topic_poll
June 17, 2010 09:14PM
I believe I found the problem. I checked out the different image viewers of the "Embed Images" module probably causing a conflict. After clearing the cache the issue was resolved. Even with the help of the (fantastic) Event module, sometimes it is not immediately clear where to look first.
In the past I was occasionally criticized when I posted issues under the according module thread. Of course, I want to play according the rules.
Thanks for your response!
Re: Topic Poll issue: undefined topic_poll
June 17, 2010 09:19PM
No problem Joe, I fully subscribe your message.

Furthermore, I'd like to state that I won't accept any from korsakov's bug reports on modules, unless these can be reproduced on a clean, unmodified Phorum installation. With all the coding that I've seen, I am not confident at all that problems would not be caused by the coding skills.

Korsakov: what would help is if you'd actually include some code in your post. Line numbers in compiled template files are useless. I told you before: I am not psychic.

What is on line 93 of /var/tmp/tpl-emerald_neighborship-list-6e5d36c254118bb7a5d3e1a525a7dfee.php-stage2 ???

Did you modify your list template to get some topic poll related information in there? The module does not require changes to the list.tpl to function,


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Topic Poll issue: undefined topic_poll
June 18, 2010 01:13AM
It is correct that I display poll results on the list page in order to save time for users. The problems started when I checked out the options within the "Embed Images" module and switched back a forum from accepting poll requests. It was not possible for me to make a guess which part of the code might have caused the problems. Clearing the cache resolved the problems eventually. Sorry for taking your time.
Re: Module: Topic Poll
July 07, 2010 12:02PM
I am wondering whether there was a performance gain if the data of this module were stored in the according poll-allowing forum settings vs. the main settings. I expect a significant amount of polls (just one pre-defined type) for my Phorum. The future performance worries me when the application will be loading a huge amount of data not being relevant to most users.
Re: Module: Topic Poll
July 07, 2010 01:24PM
Can you describe me how you think that the topic poll module is storing its data? Additionally, can you tell me why exactly that would be a performance issue?

I have no idea what you are suggesting and I don't feel like looking into it either. I have the poll module on my own site and I have no problems with it at all. Case closed.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Topic Poll
July 07, 2010 01:32PM
the poll data is saved in the post, nowhere else.


Thomas Seifert
Re: Module: Topic Poll
July 07, 2010 02:21PM
The individual poll settings are stored under the main settings for each message. I only have one poll style and don't allow users to modify them. I thought I could suppress the unnecessary accumulation of redundant poll info.
Re: Module: Topic Poll
July 12, 2010 05:07AM
I installed topic_poll-1.0.18 on Phorum v5.2.15a. I created a poll and voted successfully. But when I logged in as different user and voted, it always go to a blank screen and the vote was submitted to database base. Help please.
Sorry, only registered users may post in this forum.

Click here to login