Reviewed & tested by the community
Project:
AJAX Poll
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
15 May 2011 at 15:45 UTC
Updated:
11 Jul 2019 at 05:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
quicksketchHm, I don't immediately think this is an issue with AJAX Poll. It sounds like the global $_POST values aren't getting sent or they're getting discarded by PHP. I imagine that the poll doesn't actually save the value?
Comment #2
palamida commentedI got the same problem after upgrading to Drupal 7.9
Vote results not shown after voting- but after reloading the page my vote (or canceled vote) is perfectly saved.
( Example in Croatian language here: http://test.mojadelta.com/hr/pitanje-broj-1 )
I got this in the log report:
Notice: Undefined variable: _POST in drupal_build_form() (line 297 of /var/www/vhosts/mojadelta.com/httpdocs/includes/form.inc).
Comment #3
tempo22 commentedI'm having the same problem. Anyone found a solution yet ?
Comment #4
gargsuchi commentedsame issue - any solution?
Comment #5
ravindersinghsond commentedHello experts,
I am getting same error when I am trying to create a 'Flexible' template of panel layout. When in the "show designer layout" mode and trying to go to "column settings" or "row settings", it throw a window saying "you are not authorize to view this page" and also shows error message "Notice: Undefined variable: _POST in drupal_build_form() (line 309 of C:\wamp\www\mySite".
Any Idea, Plz help
Comment #6
mukesh.agarwal17 commentedFrom what it seems the culprit is
unset($_POST);
in the function ajax_poll_callback
Anyone able to solve this?
Comment #7
Alla Tyurina commentedTry this patch.
Comment #8
maximpodorov commentedMaybe setting _POST to array() is better.
Comment #9
maximpodorov commentedThe patch which sets $_POST = array().
Comment #10
garbo commentedThis error still exists.
Drupal 7.43, Ajax poll 7.1.1
Comment #11
legolasboThis error still exists and the patch still applies.
I've tested it and can confirm that it fixes the error. The patch is straightforward code-wise, so RTBC.
Comment #12
sgdev commentedWhile this is a minor patch, I just wanted to mention I'm running Panels as well as quite a few other modules, and not seeing this error.
I don't think Ajax Poll is the source of the problem.
Comment #13
sgdev commentedUpdate on our situation. We implemented the Authcache module (https://www.drupal.org/project/authcache) on our site, including support for Ajax-based forms, and started seeing this problem. Adding the patch fixed it.
We don't see this issue with Ajax Comments + Authcache, which I assume should be a similar process. We include both options below in Authcache's form token derived from base form id:
We also have the Cache Object API module (https://www.drupal.org/project/cacheobject) implemented, which should take care of any issues with Ajax-enabled forms.
So there must be something with Ajax Poll that is a bit different.