STATUS_PERMANENT constant not found

Created on 6 February 2023, over 1 year ago
Updated 8 February 2023, over 1 year ago

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

🐛 Bug report
Status

RTBC

Version

2.1

Component

Code

Created by

🇬🇧United Kingdom 2dareis2do

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024