az-digital / az_quickstart

UArizona's web content management system built with Drupal 10.
https://quickstart.arizona.edu
GNU General Public License v2.0
30 stars 20 forks source link

AJAX error when importing a large number of courses #3503

Open bberndt-uaz opened 1 week ago

bberndt-uaz commented 1 week ago

Problem/Motivation

Users have encountered problems when trying to use the Quickstart Course module to import large numbers of courses on Pantheon sites.

Describe the bug

When attempting to import a large number of courses using the "Save and Import Courses" button on the Import UA Courses configuration page, the import may end prematurely and display an AJAX error:

Screenshot 2024-06-24 at 2 27 25 PM

To Reproduce

Steps to reproduce the behavior:

  1. Install the Quickstart Course module on a Pantheon site
  2. Install the Quickstart HTTP module to improve the course import performance
  3. Go to /admin/config/az-quickstart/courses
  4. Enter OPTI in the "Courses to Import" text area
  5. Click the "Save and Import Courses" button
  6. Observe the progress of the import eventually stall and an AJAX error message appear

Proposed resolution

@tadean mentioned at least two possible options for addressing this issue:

Expected behavior

The import process should complete successfully or handle any errors that occur.

Additional context

This issue may be related to the PHP settings for max_input_time or max_execution_time. See Timeouts on Pantheon.