Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Notice: unserialize() [function.unserialize]: Error at offset 0 of 1 bytes in pollfield_field_widget_form() (line 340 of /home/u4586/domains/dev.yogalife.by/sites/all/modules/pollfield/pollfield.module).
Notice: Undefined property: stdClass::$nid in pollfield_field_widget_form() (line 344 of /home/u4586/domains/dev.yogalife.by/sites/all/modules/pollfield/pollfield.module).
Notice: Undefined property: stdClass::$field_blog_poll in pollfield_field_widget_form() (line 355 of /home/u4586/domains/dev.yogalife.by/sites/all/modules/pollfield/pollfield.module).
Warning: Invalid argument supplied for foreach() in pollfield_field_widget_form() (line 355 of /home/u4586/domains/dev.yogalife.by/sites/all/modules/pollfield/pollfield.module).
Notice: Undefined variable: field_lang in pollfield_field_widget_form() (line 358 of /home/u4586/domains/dev.yogalife.by/sites/all/modules/pollfield/pollfield.module).
Comment | File | Size | Author |
---|---|---|---|
#20 | pollfield-fixing-many-bugs-1345600-20.patch | 85.69 KB | jazzitup |
#15 | pollfield.zip | 20.59 KB | Oleksa-1 |
#12 | pollfield.module.tar_.gz | 11.56 KB | cesargad |
#10 | pollfield.tar_.gz | 19.95 KB | dmitrit |
#9 | pollfield.tar_.gz | 20.41 KB | dmitrit |
Comments
Comment #1
javalxs CreditAttribution: javalxs commentedI have the same error messages.help me!
Comment #2
Aalandriel CreditAttribution: 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 CreditAttribution: UksusoFF commentedsame errors? anybody have solution?
Comment #4
BeaPower CreditAttribution: BeaPower commentedsame errors...
Comment #5
Taxoman CreditAttribution: Taxoman commentedComment #6
itarato CreditAttribution: 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 CreditAttribution: dmitrit commentedFixed some bugs and style issues, but code should be tested more, sorry. I guess there is another bugs.
Comment #8
Andi-D CreditAttribution: 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 CreditAttribution: dmitrit commentedYes, right. I fixed more bugs. New version attached.
Comment #10
dmitrit CreditAttribution: dmitrit commentedFixed many bugs, added support for EntityFieldQuery, coding style issues etc.
Comment #11
scud CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: cesargad commentedComplemento información sobre las correcciones hechas:
No se ha corregido:
Comment #14
Helge CreditAttribution: Helge commentedAfter the last dmitrit patch i have a new error:
Any solutions for that?
Comment #15
Oleksa-1 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: jazzitup commentedThis is an error message from my logs (after a successful cron):
Which refers to Line 1437:
Comment #18
jazzitup CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: 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 CreditAttribution: proweb.ua commentedin #15
Comment #23
tiikeri CreditAttribution: tiikeri commentedFor me #15 works fine, many thanks ;)
Comment #23.0
tiikeri CreditAttribution: tiikeri commentedUpdated issue summary.
Comment #24
alesel CreditAttribution: alesel commentedwhat is with the cron problem? Are there any solutions?
Comment #25
tiikeri CreditAttribution: 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 CreditAttribution: alesel commentedtiikeri, many thanks ;)
Comment #28
bbujisic CreditAttribution: bbujisic at Circle Web Foundry 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 CreditAttribution: jazzitup as a volunteer commented@Branislav: You're welcome (služimo narodu)! :)