Closed (fixed)
Project:
Pollfield
Version:
7.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Nov 2011 at 07:40 UTC
Updated:
3 Jul 2015 at 16:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
javalxs commentedI have the same error messages.help me!
Comment #2
Aalandriel commentedI think it needs some kind of check to see if the node has been saved before running the code in line ~340-358. As it appears these warnings/notices appear because the node has not yet been saved.
Comment #3
UksusoFF commentedsame errors? anybody have solution?
Comment #4
BeaPower commentedsame errors...
Comment #5
Taxoman commentedComment #6
itarato commentedSame warnings. I created a new content type. Added the pollfield field. Then on the first setting screen I clicked submit, and on the second screen I got the messages.
Comment #7
dmitrit commentedFixed some bugs and style issues, but code should be tested more, sorry. I guess there is another bugs.
Comment #8
andi-d commentedSame Warning her,
Used Modul Version from #7
Now I have the problem at saving the content:
I think it is the same Problem from issue
http://drupal.org/node/1615404
Comment #9
dmitrit commentedYes, right. I fixed more bugs. New version attached.
Comment #10
dmitrit commentedFixed many bugs, added support for EntityFieldQuery, coding style issues etc.
Comment #11
scud commentedThanks for the bugfixes! Unfortunately I still can't save my poll field setup. I now have this error:
Notice: Undefined index: #node in pollfield_field_widget_form() (line 278
The code in question is the pollfield_field_widget_form, where it calls $node = $form['#node'];.
I did a quick print_r, and I cannot seem to see the index in the $form array. I think this is SO close to being finished, but I don't know enough about this to fix it, or I would have posted my "patch".
Comment #12
cesargad commentedHola, he corregido varios (muchos) errores de este módulo en su versión 7.x-2.x-dev. No me acuerdo realmente que errores eran, pero el mensaje que indican (PDOException: SQLSTATE[42000]) me salía al votar, al crear nodo y en otros sitios donde había que guardar información. Ya que estoy implementando un site real, pues me he visto en la necesidad de corregir varios errores. Estoy trabajando con votación por cookies y ya me funciona bien. Subo el archivo para ver si a ustedes les funciona bien. He tratado en lo posible de no afectar el resto de la funcionalidad del módulo. Disculpen, por los echos y los dvm, que me ha servido para probar la votación como anónimo y como logueado.
Comment #13
cesargad commentedComplemento información sobre las correcciones hechas:
No se ha corregido:
Comment #14
Helge commentedAfter the last dmitrit patch i have a new error:
Any solutions for that?
Comment #15
Oleksa-1 commentedFixed in #10
- Notice: Undefined index: #node in pollfield_field_widget_form() (line 278- Strict warning: Creating default object from empty value in pollfield_vote()new version attached
@Helge I can not reproduce your error on my localhost pls try latest ver and feedback
Comment #16
jazzitup commented@Oleksa: Now Poll Type can NOT be single choice. Try to set "single choice" as the default. Won't work.
Comment #17
jazzitup commentedThis is an error message from my logs (after a successful cron):
Which refers to Line 1437:
Comment #18
jazzitup commentedThe above happens in each cron run.
The problem seems to be with an illegal operator. Unfortunately, you can't use an expression '+ node.created <' as an $operator according to the current API!
Comment #19
jazzitup commentedI can reproduce #14 (@Helge, it's not an error, it's just a warning!), even after I installed the module from #15. The issue appears after I save the node and then visit its edit page. My server runs PHP 5.4.
You need to surround a key value in {} because it's a dynamically-assigned variable.
Instead of:
You should use:
pollfield.module line 412.
Comment #20
jazzitup commentedSummarizing all issues from this thread inside of a working patch against the latest 7.x-2.x-dev.
Comment #21
klonosThe persistence and work in this issue despite the fact that this project seems to be abandoned is amazing! Good on ya people ;)
I'm posting this merely to let you know that the core poll.module was removed from Drupal 8: #61285: Remove poll module from core
So, the whole thing was moved to contirb: Poll (from core)
In #1266336: Modernize Poll module (this issue was originally filed against D8 core, but was moved over to Poll (from core)) there's a mention of Pollfield and it seems that there's thought of moving on the same logic as this module. So, unless someone takes over this project here to bring it back to life (#1935158: Pollfield still being maintained?), I'd suggest to merge efforts with Poll (from core).
Just a heads up ;)
Comment #22
proweb.ua commentedin #15
Comment #23
tiikeri commentedFor me #15 works fine, many thanks ;)
Comment #23.0
tiikeri commentedUpdated issue summary.
Comment #24
alesel commentedwhat is with the cron problem? Are there any solutions?
Comment #25
tiikeri commentedHi alesel, I got the same problem running cron which cause a PDOException as reported in #17, after update the last dev version of the module. But it was my fault: i manually update the module and forgot to run update.php
To fix the error: update the module to the last release for d7 https://drupal.org/project/pollfield (at time of writing 01 October 2013, version 7.x-2.x) and run update.php in Mantainence mode. Don't forget to put the site in mantainance mode, or you will run into another error.
No changes will be made to database, anyway this worked for me. Hope it will help you too.
Comment #26
alesel commentedtiikeri, many thanks ;)
Comment #28
bbujisic commentedJazzitup, this comment comes two years too late, but better late than never. Thanks heaps for your patch.
Time to close the issue.
Comment #29
jazzitup commented@Branislav: You're welcome (služimo narodu)! :)