🇮🇳India @drupalite1411

Account created on 25 March 2013, over 11 years ago
#

Recent comments

🇮🇳India drupalite1411

While debugging this patch, found that https://www.drupal.org/project/poll/issues/3263876 🐛 Sometimes not possible to vote 'The specified #ajax callback is empty or not callable' Needs work this issue still exists in vote per IP.
Steps to replicate is mentioned in the issue https://www.drupal.org/project/poll/issues/3263876 🐛 Sometimes not possible to vote 'The specified #ajax callback is empty or not callable' Needs work

🇮🇳India drupalite1411

Debugging output:
I was unable to replicate this issue in Dev environment and could replicate this in patheon env or with https://simplytest.me/
I have enabled page cache in my Dev enviornment and I can see the issue in every browser.
Steps to replicate:
1)Open voting page it in chrome and vote.
2)Open same voting page in edge and you will see the vote button instead of result.
3)On clicking vote ,it will show the ajax error.
4)If remove chrome browser cookie and then open it in other browser then there is no ajax error and I can see the result page.
I could see https://www.drupal.org/project/poll/issues/2909811 📌 Anonymous users - Multiple voting from one IP Needs review ajax error per IP with this https://www.drupal.org/project/poll/issues/2909811 📌 Anonymous users - Multiple voting from one IP Needs review on as well.

🇮🇳India drupalite1411
RE #29 probably only when anonymous voting is enabled? There are some PK changes in the database for that ticket.

Yes that is for anonymous user.

I think the underlaying error here is that the database is throwing an duplicate entry exception which is not catched properly because here it's still using the IP as unique key if I'm not mistaken.

Yes it seems so but I don't understand why it is showing incognito mode only and not in another browser. I am debugging on that

🇮🇳India drupalite1411

If this makes any difference in the bug tracking, https://www.drupal.org/project/poll/issues/2909811 📌 Anonymous users - Multiple voting from one IP Needs review this resolves ajax issue for per IP vote.
Need to find the difference how per IP voting has been changed in this merge request.

🇮🇳India drupalite1411

Updated. In the patch #61, removed this repetitive code from poll.php and vote per session functionality is working fine now. I am still testing

  $fields['anonymous_vote_restriction'] = BaseFieldDefinition::create('list_string')
      ->setLabel(t('Anonymous vote restriction'))
      ->setSetting('allowed_values', [
        'ip' => t('One vote per IP'),
        'session' => t('One vote per session'),
        'unlimited' => t('Unlimited votes'),
      ])
      ->setDefaultValue('ip')
      ->setRequired(TRUE)
      ->setDisplayOptions('form', [
        'type' => 'options_select',
        'settings' => [
          'display_label' => TRUE,
        ],
        'weight' => 2,
      ])
      ->setDisplayConfigurable('form', TRUE);

I found it is actually removed from the merge request https://git.drupalcode.org/project/poll/-/merge_requests/30/diffs?commit...

🇮🇳India drupalite1411

Steps to replicate:
1)Vote from any browser
https://www.drupal.org/files/issues/2024-11-13/poll.png →
2)Open voting page in incognito. It should show the polling result page since I am in the same network(connected to vpn).
Instead, it is showing voting page with vote button.
3)Click on vote button, it shows ajax error.
https://www.drupal.org/files/issues/2024-11-13/poll2.png →

🇮🇳India drupalite1411

Any update on this issue?
Facing this in the modules' latest version as well.

🇮🇳India drupalite1411

Used patch #61, it is providing option from UI to select if per IP vote,per session vote and unlimited vote.
I select any option and save the form. When I edit the form the select field does retain it's value. Moreover, the functionality is not working.
I can't give unlimited vote.

🇮🇳India drupalite1411

Hi @cilefen
This is distinct.
Patch provided here worked but now I have issue in layout builder only.
https://www.drupal.org/project/drupal/issues/3409885 🐛 Uncaught ajax.js error / exception Active

🇮🇳India drupalite1411

I have used #35 10.2.1 patch in https://www.drupal.org/project/drupal/issues/3414753 🐛 Drupal ajax error after D10 update from version 10.0.11 to 10.2.1 Needs review and it worked.

🇮🇳India drupalite1411

I have used #35 10.2.1 patch and it worked.

🇮🇳India drupalite1411

@torresrecife No I am still using ckeditor 4 due to this issue.

🇮🇳India drupalite1411

If I take the code from #11 and manually apply it ,it fixes ajax issue but quick edit issue is still there.
I have reported this issue here. I am facing ajax as well as contextual links not appearing issue.
https://www.drupal.org/project/drupal/issues/3414753 🐛 Drupal ajax error after D10 update from version 10.0.11 to 10.2.1 Needs review

Also how to apply this patch using composer.json?

 "patches": {
          "drupal/http-foundation": {
            "Ajax issue": "https://www.drupal.org/files/issues/2023-12-23/symfony_http-foundation_unset-content-length.patch"
          }
        },
🇮🇳India drupalite1411

Analysis on this issue:
I have updated site from version 10.0.11 version 10.1.4 . No issue in ajax and quick edits visible.
Updated site from version 10.0.11 version 10.1.7 . No issue in ajax and quick edits visible.
Updated site from version 10.0.11 version 10.2.1.Issue in ajax and quick edits links disappeared.
I can confirm that there is issue in 10.2.1.

If I take the code from #11 and manually apply it ,it fixes ajax issue but quick edit issue is still there.

Updated to version 10.1.4 also not applying these patches
Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2022-06-17/2845144-67.patch →
https://www.drupal.org/files/issues/2023-06-15/1349080-521.patch → (node_access filters out accessible nodes when node is left joined (1349080))
Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2023-06-15/1349080-521.patc →

🇮🇳India drupalite1411

@cilefen
I have copied error from the console. Basically anything which needs drupal ajax is not working on site.
Opening media pop up, adding blocks using layout builder,configure layout. Pencil icon for quick edit is also disappeared.
Drupal.AjaxError
message
:
"\nAn AJAX HTTP error occurred.\nHTTP Result Code:
name
:
"AjaxError"
stack
:
"Error\n at http://crownestates-local.com/core/misc/ajax.js?v=10.2.1:196:32\n at http://crownestates-local.com/core/misc/ajax.js?v=10.2.1:1915:3"
[[Prototype]]
:
Error at http://crownestates-local.com/core/misc/ajax.js?v=10.2.1:196:32 at http://crownestates-local.com/core/misc/ajax.js?v=10.2.1:1915:3
constructor
:
ƒ (xmlhttp, uri, customMessage)
messages
:
Drupal.Message {messageWrapper: div.messages__wrapper}
arguments
:
null
caller
:
null
length
:
3
name
:
""
prototype
:
Error at http://crownestates-local.com/core/misc/ajax.js?v=10.2.1:196:32 at http://crownestates-local.com/core/misc/ajax.js?v=10.2.1:1915:3
[[FunctionLocation]]
:
ajax.js?v=10.2.1:103
[[Prototype]]
:
ƒ ()
[[Scopes]]
:
Scopes[3]
stack
:
"Error\n at http://crownestates-local.com/core/misc/ajax.js?v=10.2.1:196:32\n at http://crownestates-local.com/core/misc/ajax.js?v=10.2.1:1915:3"
[[Prototype]]
:
Object

🇮🇳India drupalite1411

Hi Someone ,can please check. This is issue is impacting our whole site after migration to cke5editor from ckeditor4

🇮🇳India drupalite1411

Hi cilefan, Could you please replicate the issue.These issues were not there in ckeditor4.

🇮🇳India drupalite1411

I have faced same issue in Drupal 10 and fontawesome 8.x-2.26.
Installed this module https://www.drupal.org/project/font_awesome → and it resolved the error.

🇮🇳India drupalite1411

Hi Wim, Yeah :D
I don't know my project was working fine in 8.1 and as soon as I applied the patch it asks for 8.2. May be composer update or something.
Anyways I have applied this patch https://git.drupalcode.org/project/drupal/-/merge_requests/5454.diff and it resolved the issue.
Thanks

🇮🇳India drupalite1411

Hi Wim , I am using Drupal core version 10.1.6 and I have #3 patch but it is giving me error Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.2.0".
I think this patch will in core 11

🇮🇳India drupalite1411

rip module is asking to remove permission and shows message that it is removed but upgrade status still showing the permissions issue.
Module not working for me

🇮🇳India drupalite1411

Hi, script is not working for me. In upgrade status module I am still getting same error.
When I am running script it does show any error.

🇮🇳India drupalite1411

Hi ,
Any update on D10 upgrade of this module?

🇮🇳India drupalite1411

Hi ,
Any update on D10 upgrade of this module?

🇮🇳India drupalite1411

Hi @agentrickard They are coming from custom code.
Site is having performance issue.I don't know if it is from server end or due to multidomain architecture.
Do config forms has any performance hit ?

Basically site is getting down once lots of user visits.

Production build 0.71.5 2024