- Issue created by @ankitv18
- 🇮🇳India bhanu951
Possible regression from 🐛 When Batch ID doesn't exist, Drupal should emit a 404 Needs work
- 🇮🇳India bhanu951
I too can reproduce this issue on clean vanilla Drupal version 11.1.1 .
The issue happens only installing site via UI but not reproducible via Drush.
After the error occurred if the refresh the url the site works properly after re-login.
- 🇮🇳India bhanu951
If I comment out code
throw new NotFoundHttpException(sprintf('No batch with ID %s exists.', $request_id));
on line 47 in web/core/includes/batch.inc . I am getting below error.
Warning: Trying to access array offset on false in _batch_page() (line 71 of core/includes/batch.inc). _batch_page() (Line: 664) install_run_task() (Line: 572) install_run_tasks() (Line: 121) install_drupal() (Line: 53) Warning: foreach() argument must be of type array|object, null given in _batch_page() (line 71 of core/includes/batch.inc). _batch_page() (Line: 664) install_run_task() (Line: 572) install_run_tasks() (Line: 121) install_drupal() (Line: 53) Warning: Trying to access array offset on false in _batch_current_set() (line 407 of core/includes/batch.inc). _batch_current_set() (Line: 86) _batch_page() (Line: 664) install_run_task() (Line: 572) install_run_tasks() (Line: 121) install_drupal() (Line: 53) Warning: Trying to access array offset on null in _batch_page() (line 87 of core/includes/batch.inc). _batch_page() (Line: 664) install_run_task() (Line: 572) install_run_tasks() (Line: 121) install_drupal() (Line: 53) Warning: Undefined array key "current_set" in _batch_current_set() (line 407 of core/includes/batch.inc). _batch_current_set() (Line: 152) _batch_progress_page() (Line: 88) _batch_page() (Line: 664) install_run_task() (Line: 572) install_run_tasks() (Line: 121) install_drupal() (Line: 53) Warning: Trying to access array offset on null in _batch_progress_page() (line 159 of core/includes/batch.inc). _batch_progress_page() (Line: 88) _batch_page() (Line: 664) install_run_task() (Line: 572) install_run_tasks() (Line: 121) install_drupal() (Line: 53) Warning: Undefined array key "url" in _batch_progress_page() (line 199 of core/includes/batch.inc). _batch_progress_page() (Line: 88) _batch_page() (Line: 664) install_run_task() (Line: 572) install_run_tasks() (Line: 121) install_drupal() (Line: 53)
- 🇮🇳India ankitv18
++ @bhanu951
Yes that's right, it's with the UI installation. - 🇺🇸United States benjifisher Boston area
I tried to reproduce the problem with 11.1.0, the current 11.1.x, and the current 11.x. In all of my attempts, the installation completed without the error described here.
Can you still reproduce the problem? If so, then please give more detailed steps to reproduce.
Create a new application with 11.1 drupal release.<
At first, I assumed that "release" meant 11.1.0. But that version does not include the fix for 🐛 When Batch ID doesn't exist, Drupal should emit a 404 Needs work , so you would be redirected to the home page instead of getting a 404 response. I guess you meant 11.1.x. Can you say exactly which commit? Can you reproduce the problem with 11.x?
How did you "Create a new application"? Did you
git clone https://git.drupalcode.org/project/drupal.git
? Did youcomposer create-project ...
?I used my existing git repository, and dropped the database with
drush sql-drop
. Can you reproduce the problem that way, or do you only see the problem in a freshly created project? - 🇺🇸United States benjifisher Boston area
Sorry, I just noticed that 11.1.1 was released today. I tried that, with the same result: no errors.
Thar release does contain the fix for 🐛 When Batch ID doesn't exist, Drupal should emit a 404 Needs work , so the 404 response makes more sense.
- 🇺🇸United States benjifisher Boston area
I still cannot reproduce the error.
The status should not be NW, since there are no changes in the issue fork. I will set the status to Active (not Postponed, maintainer needs more information). Let's see if anyone else can reproduce the error.
- 🇳🇿New Zealand quietone
Changes are made on on 11.x (our main development branch) first, and are then back ported as needed according to the Core change policies → .
- 🇵🇭Philippines ambot112
Thank you. The 11.x-dev is working fine and installed properly using UI.
- 🇺🇸United States benjifisher Boston area
Since some people can reproduce this problem and some cannot, there is something missing. Have a look at 🐛 Running the installer leads into a wsod Active , where the bug only showed up when using a particular version of Safari on macOS. For example:
- What OS are you using?
- What browser are you using?
- What version of DDEV are you using?
- How do you configure DDEV?
For (4), can you give options for
ddev config
so that we can run it non-interactively? That is easier and more reliable for the tester.I would also like to know whether it makes a difference how you download the code:
composer create-project drupal/recommended-project
ddev start && ddev create drupal/recommended-project
git clone https://git.drupalcode.org/project/drupal.git && cd drupal && git checkout 11.1.0
- other options?
- 🇮🇳India JatinGupta40
Hello @benjifisher
I got this same issue on Drupal v10.4.1 also.Please find the details -
OS - Ubuntu Linux
Browser - Chrome
DDEV Version - v1.24.3Commands for installation -
- composer create-project drupal/recommended-project:11.1.1 "drupal-11.1.1"
- cd drupal-11.1.1
- Configure DDEV -
- ddev config
- project_name
- web
- drupal11
- ddev startI have explored this issue, and my findings are that the batch processes are not getting completed.
@jatingupta40 Is that 10.4.1 or 11.1.1? Your steps to reproduce say both.
- 🇮🇳India JatinGupta40
Hello @cilefen
Using the steps mentioned in #18, I tested multiple Drupal versions to determine if the issue persists. I found that the error occurs specifically in Drupal v10.4.1 and v11.1.1.
I have taken those steps and including selecting British English as suggested in the issue summary. Unfortunately, I too cannot reproduce the bug. I suppose this is something to do with the translations download. Are there any browser console errors?
Because the steps to reproduce need some refinement as or additional information as #17 suggests I am tagging this issue that way.