TripalCultivate / TripalCultivate-Phenotypes

Provides generic support for large scale phenotypic data and traits with importers, content pages and visualizations.
GNU General Public License v3.0
1 stars 0 forks source link

[Bug] Homepage WSOD Chado Schema error on Drupal 10.0.x and 8.1 #31

Closed laceysanderson closed 1 year ago

laceysanderson commented 1 year ago

Drupal Version

10.0

Tripal Version

4.x dev (most recent commit)

Module Version

4.x dev (most recent commit)

Site Operating System

Debian Linux

Installation Method

Docker image built from this module

Browsers

Firefox, Safari

Observations

The docker was able to build with no error, however, when I load the homepage it is a WSOD with the following error message:

Screenshot 2023-07-06 at 4 34 49 PM

Expected Behaviour

I would expect to see the home page with no errors. Tripal Core works on this Drupal and PHP version and this is the only additional module installed. Furthermore, this docker image is based off Tripal Docker with the only real addition being using testchado instead of chado and enabling these modules.

Steps to Reproduce

  1. Clone this repository
    git clone https://github.com/TripalCultivate/TripalCultivate-Phenotypes.git trpcultpheno-g0.31-wsod
  2. Build the docker image as follows:
    docker build --tag=tripalcultivate-phenotype:local --build-arg drupalversion="10.0.x-dev" ./
  3. Create a container from the docker image:
    docker run --publish=80:80 --name=phenog0.31 -tid --volume=$(pwd):/var/www/drupal9/web/modules/contrib/TripalCultivate-Phenotypes tripalcultivate-phenotype:local
  4. Start the database:
    docker exec phenog0.31 service postgresql restart
  5. Load up http://localhost in the browser... you will see the following:
    Drupal\tripal\TripalDBX\Exceptions\SchemaException: Invalid or unsupported Chado schema version ''. in Drupal\tripal_chado\Database\ChadoSchema->getSchemaDef() (line 56 of modules/contrib/tripal/tripal_chado/src/Database/ChadoSchema.php).

Relevant log output

Drupal\tripal\TripalDBX\Exceptions\SchemaException: Invalid or unsupported Chado schema version ''. in Drupal\tripal_chado\Database\ChadoSchema->getSchemaDef() (line 56 of modules/contrib/tripal/tripal_chado/src/Database/ChadoSchema.php).

Drupal\tripal\TripalDBX\TripalDbxSchema->getTableDef('analysis', Array) (Line: 110)
Drupal\tripal_chado\Plugin\Field\FieldType\ChadoStringTypeItem::tripalTypes(Object) (Line: 301)
Drupal\tripal\TripalField\TripalFieldItemBase::schema(Object) (Line: 461)
Drupal\field\Entity\FieldStorageConfig->getSchema() (Line: 498)
Drupal\field\Entity\FieldStorageConfig->getColumns() (Line: 322)
views_field_default_views_data(Object) (Line: 195)
views_views_data() (Line: 236)
Drupal\views\ViewsData->Drupal\views\{closure}(Object, 'views') (Line: 388)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('views_data', Object) (Line: 244)
Drupal\views\ViewsData->getData() (Line: 154)
Drupal\views\ViewsData->get('node_field_data') (Line: 85)
Drupal\views\Plugin\ViewsHandlerManager->getHandler(Array, NULL) (Line: 898)
Drupal\views\Plugin\views\display\DisplayPluginBase->getHandlers('sort') (Line: 1055)
Drupal\views\ViewExecutable->_initHandler('sort', Array) (Line: 913)
Drupal\views\ViewExecutable->initHandlers() (Line: 2328)
Drupal\views\Plugin\views\display\DisplayPluginBase->preExecute() (Line: 1707)
Drupal\views\ViewExecutable->preExecute(Array) (Line: 1642)
Drupal\views\ViewExecutable->executeDisplay('page_1', Array) (Line: 81)
Drupal\views\Element\View::preRenderViewElement(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725', 'exception', 'Drupal\Core\Render\Element\RenderCallbackInterface') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, ) (Line: 238)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 239)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object) (Line: 128)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object) (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
call_user_func(Array, Object, 'kernel.view', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'kernel.view') (Line: 168)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 191)
Drupal\page_cache\StackMiddleware\PageCache->fetch(Object, 1, 1) (Line: 128)
Drupal\page_cache\StackMiddleware\PageCache->lookup(Object, 1, 1) (Line: 82)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 692)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
reynoldtan commented 1 year ago

Able to reproduce WSOD Chado Schema error... I will look into this Screen Shot 2023-07-06 at 2 48 17 PM

laceysanderson commented 1 year ago

This is related to the recent change where we removed chado and then installed testchado. Luckily I am also a core developer so I will fix this from the Tripal core side of things in Issue https://github.com/tripal/tripal/issues/1572.