I am getting following error when running Drupal 10.0.3

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /batch?id=308&op=do_nojs&op=do
StatusText: error
ResponseText: The website encountered an unexpected error. Please try again later.Error: Undefined constant "Drupal\migrate_file\Plugin\migrate\process\FILE_STATUS_PERMANENT" in Drupal\migrate_file\Plugin\migrate\process\FileRemoteUrl->transform() (line 72 of modules/contrib/migrate_file/src/Plugin/migrate/process/FileRemoteUrl.php). Drupal\migrate\MigrateExecutable->processPipeline() (Line: 220)
Drupal\migrate\MigrateExecutable->import() (Line: 215)
Drupal\migrate_tools\MigrateBatchExecutable::batchProcessImport() (Line: 295)
_batch_process() (Line: 137)
_batch_do() (Line: 93)
_batch_page() (Line: 55)
Drupal\system\Controller\BatchController->batchPage()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 163)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 74)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 681)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Might be related to https://www.drupal.org/project/migrate_file/issues/3270418

Will try swapping out for FileInterface::STATUS_PERMANENT

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

2dareis2do created an issue. See original summary.

2dareis2do’s picture

Title: I am getting error when running Drupal 10.0.3 » STATUS_PERMANENT constant not found
2dareis2do’s picture

adil_siddiqui’s picture

Status: Active » Reviewed & tested by the community

Patch #3 reviewed and working fine...

akoepke made their first commit to this issue’s fork.

  • drclaw committed 1a7a6058 on 2.1.x authored by 2dareis2do
    Issue #3339613 by 2dareis2do: STATUS_PERMANENT constant not found
    
drclaw’s picture

Status: Reviewed & tested by the community » Fixed

Thanks everyone! Sorry for the delay!!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.