Feeds log Entity/field definitions error & WSOD

Created on 21 August 2024, 3 months ago
Updated 13 September 2024, 2 months ago

Hi,

I have an error with the FEEDS LOG module. I can't uninstall, I get a WSOD error.

Under status report I have this info:

Entity/field definitions
Mismatched entity and/or field definitions
The following changes were detected in the entity type and field definitions.
Feed: The Log field needs to be installed.
Feeds Import Log: The Feeds Import Log entity type needs to be installed.

The WSOD I get sometimes due to this:

Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'feeds_log' in 'where clause': SELECT 1 AS "expression" FROM "e4gk_feeds_feed" "t" WHERE "feeds_log" IS NOT NULL LIMIT 1 OFFSET 0; Array ( ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->countFieldData() (line 1794 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
Drupal\Core\Database\StatementWrapperIterator->execute() (Line: 851)
Drupal\Core\Database\Connection->query() (Line: 524)
Drupal\Core\Database\Query\Select->execute() (Line: 1794)
Drupal\Core\Entity\Sql\SqlContentEntityStorage->countFieldData() (Line: 125)
Drupal\Core\Field\FieldStorageDefinitionListener->onFieldStorageDefinitionDelete() (Line: 241)
Drupal\Core\Entity\EntityDefinitionUpdateManager->uninstallFieldStorageDefinition() (Line: 492)
Drupal\Core\Extension\ModuleInstaller->uninstall() (Line: 91)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->uninstall() (Line: 182)
Drupal\system\Form\ModulesUninstallConfirmForm->submitForm()
call_user_func_array() (Line: 129)
Drupal\Core\Form\FormSubmitter->executeSubmitHandlers() (Line: 67)
Drupal\Core\Form\FormSubmitter->doSubmitForm() (Line: 597)
Drupal\Core\Form\FormBuilder->processForm() (Line: 326)
Drupal\Core\Form\FormBuilder->buildForm() (Line: 73)
Drupal\Core\Controller\FormController->getContentResult()
call_user_func_array() (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 638)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext() (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 53)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->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: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 741)
Drupal\Core\DrupalKernel->handle() (Line: 19)

Thanks for the help!

💬 Support request
Status

Fixed

Component

Code

Created by

🇧🇪Belgium Ananda

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

Comments & Activities

  • Issue created by @Ananda
  • Status changed to Fixed 3 months ago
  • 🇳🇱Netherlands megachriz

    Can it be that you installed this module first?
    https://www.drupal.org/project/feeds_log

    In that case you would be missing the necessary database tables for uninstalling the Feeds Log module that comes with Feeds.

    If it is the case that you had https://www.drupal.org/project/feeds_log installed first, then I think the easiest fix would be the following:

    1. Temporary remove the log module that comes with feeds: feeds/modules/log
    2. (re)download https://www.drupal.org/project/feeds_log
    3. Uninstall Feeds Log
    4. Remove contributed Feeds Log module from the file system.
    5. Put back the Feeds Log that comes with Feeds.

    If that doesn't help, you could perhaps fix the error by manually adding the feeds_log column to the in your case 'e4gk_feeds_feed' table. The column is of type 'tinyint'.
    If uninstall still doesn't work because of missing tables, it is possible that just creating the tables 'feeds_import_log', 'feeds_import_log_entry' and 'feeds_import_log__sources' with a dummy column would work. If not, you could try to install a fresh Drupal, Feeds and Feeds Log on an other site and then copy the mentioned tables from there.

  • 🇧🇪Belgium Ananda

    Thanks a lot , that fixed my problem :)

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

Production build 0.71.5 2024