TypeError: Unsupported operand types

Created on 15 March 2024, 3 months ago

Problem/Motivation

An error was triggered when I was configuring a View of Reference Content Items that have been migrated from Biblio on Drupal 7. It seems to happen when the Citation field is added to the Fields to render in the View. These are the details from a "Recent Log Messages" entry.

TypeError: Unsupported operand types: string / int in AcademicPuma\CiteProc\Number->ordinal() (line 57 of /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Number.php).

I'll post the trace log in a comment below so that it doesn't take up too much space here.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States gaelicmichael

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

Comments & Activities

  • Issue created by @gaelicmichael
  • πŸ‡ΊπŸ‡ΈUnited States gaelicmichael

    #0 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Number.php(40): AcademicPuma\CiteProc\Number->ordinal()
    #1 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Group.php(48): AcademicPuma\CiteProc\Number->render()
    #2 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/RenderingElement.php(35): AcademicPuma\CiteProc\Group->render()
    #3 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Choose.php(33): AcademicPuma\CiteProc\RenderingElement->render()
    #4 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/RenderingElement.php(35): AcademicPuma\CiteProc\Choose->render()
    #5 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Macros.php(38): AcademicPuma\CiteProc\RenderingElement->render()
    #6 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/CiteProc.php(117): AcademicPuma\CiteProc\Macros->render_macro()
    #7 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Text.php(66): AcademicPuma\CiteProc\CiteProc->render_macro()
    #8 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Group.php(48): AcademicPuma\CiteProc\Text->render()
    #9 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/RenderingElement.php(35): AcademicPuma\CiteProc\Group->render()
    #10 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Macros.php(38): AcademicPuma\CiteProc\RenderingElement->render()
    #11 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/CiteProc.php(117): AcademicPuma\CiteProc\Macros->render_macro()
    #12 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Text.php(66): AcademicPuma\CiteProc\CiteProc->render_macro()
    #13 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/RenderingElement.php(35): AcademicPuma\CiteProc\Text->render()
    #14 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Choose.php(33): AcademicPuma\CiteProc\RenderingElement->render()
    #15 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/RenderingElement.php(35): AcademicPuma\CiteProc\Choose->render()
    #16 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Macros.php(38): AcademicPuma\CiteProc\RenderingElement->render()
    #17 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/CiteProc.php(117): AcademicPuma\CiteProc\Macros->render_macro()
    #18 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Text.php(66): AcademicPuma\CiteProc\CiteProc->render_macro()
    #19 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Group.php(48): AcademicPuma\CiteProc\Text->render()
    #20 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/RenderingElement.php(35): AcademicPuma\CiteProc\Group->render()
    #21 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Choose.php(33): AcademicPuma\CiteProc\RenderingElement->render()
    #22 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/RenderingElement.php(35): AcademicPuma\CiteProc\Choose->render()
    #23 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Choose.php(33): AcademicPuma\CiteProc\RenderingElement->render()
    #24 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Group.php(48): AcademicPuma\CiteProc\Choose->render()
    #25 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/RenderingElement.php(35): AcademicPuma\CiteProc\Group->render()
    #26 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Macros.php(38): AcademicPuma\CiteProc\RenderingElement->render()
    #27 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/CiteProc.php(117): AcademicPuma\CiteProc\Macros->render_macro()
    #28 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Text.php(66): AcademicPuma\CiteProc\CiteProc->render_macro()
    #29 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Group.php(48): AcademicPuma\CiteProc\Text->render()
    #30 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/RenderingElement.php(35): AcademicPuma\CiteProc\Group->render()
    #31 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Choose.php(33): AcademicPuma\CiteProc\RenderingElement->render()
    #32 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Group.php(48): AcademicPuma\CiteProc\Choose->render()
    #33 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/RenderingElement.php(35): AcademicPuma\CiteProc\Group->render()
    #34 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Macros.php(38): AcademicPuma\CiteProc\RenderingElement->render()
    #35 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/CiteProc.php(117): AcademicPuma\CiteProc\Macros->render_macro()
    #36 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Text.php(66): AcademicPuma\CiteProc\CiteProc->render_macro()
    #37 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Group.php(48): AcademicPuma\CiteProc\Text->render()
    #38 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Group.php(48): AcademicPuma\CiteProc\Group->render()
    #39 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Layout.php(42): AcademicPuma\CiteProc\Group->render()
    #40 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/Bibliography.php(54): AcademicPuma\CiteProc\Layout->render()
    #41 /var/www/html/impact10/vendor/academicpuma/citeproc-php/src/CiteProc.php(110): AcademicPuma\CiteProc\Bibliography->render()
    #42 /var/www/html/impact10/modules/contrib/bibcite/src/Plugin/BibCiteProcessor/CiteprocPhp.php(67): AcademicPuma\CiteProc\CiteProc->render()
    #43 /var/www/html/impact10/modules/contrib/bibcite/src/CitationStyler.php(92): Drupal\bibcite\Plugin\BibCiteProcessor\CiteprocPhp->render()
    #44 /var/www/html/impact10/modules/contrib/bibcite/bibcite.module(41): Drupal\bibcite\CitationStyler->render()
    #45 [internal function]: bibcite_preprocess_bibcite_citation()
    #46 /var/www/html/impact10/core/lib/Drupal/Core/Theme/ThemeManager.php(261): call_user_func_array()
    #47 /var/www/html/impact10/core/lib/Drupal/Core/Render/Renderer.php(480): Drupal\Core\Theme\ThemeManager->render()
    #48 /var/www/html/impact10/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender()
    #49 /var/www/html/impact10/core/modules/views/src/Plugin/views/field/FieldPluginBase.php(1198): Drupal\Core\Render\Renderer->render()
    #50 /var/www/html/impact10/core/modules/views/views.theme.inc(238): Drupal\views\Plugin\views\field\FieldPluginBase->advancedRender()
    #51 [internal function]: template_preprocess_views_view_field()
    #52 /var/www/html/impact10/core/lib/Drupal/Core/Theme/ThemeManager.php(261): call_user_func_array()
    #53 /var/www/html/impact10/core/lib/Drupal/Core/Render/Renderer.php(480): Drupal\Core\Theme\ThemeManager->render()
    #54 /var/www/html/impact10/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender()
    #55 /var/www/html/impact10/core/modules/views/src/Plugin/views/field/FieldPluginBase.php(1790): Drupal\Core\Render\Renderer->render()
    #56 /var/www/html/impact10/core/modules/views/src/Plugin/views/style/StylePluginBase.php(765): Drupal\views\Plugin\views\field\FieldPluginBase->theme()
    #57 [internal function]: Drupal\views\Plugin\views\style\StylePluginBase->elementPreRenderRow()
    #58 /var/www/html/impact10/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(111): call_user_func_array()
    #59 /var/www/html/impact10/core/lib/Drupal/Core/Render/Renderer.php(859): Drupal\Core\Render\Renderer->doTrustedCallback()
    #60 /var/www/html/impact10/core/lib/Drupal/Core/Render/Renderer.php(421): Drupal\Core\Render\Renderer->doCallback()
    #61 /var/www/html/impact10/core/lib/Drupal/Core/Render/Renderer.php(240): Drupal\Core\Render\Renderer->doRender()
    #62 /var/www/html/impact10/core/lib/Drupal/Core/Render/Renderer.php(165): Drupal\Core\Render\Renderer->render()
    #63 /var/www/html/impact10/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}()
    #64 /var/www/html/impact10/core/lib/Drupal/Core/Render/Renderer.php(166): Drupal\Core\Render\Renderer->executeInRenderContext()
    #65 /var/www/html/impact10/core/modules/views/src/Plugin/views/style/StylePluginBase.php(707): Drupal\Core\Render\Renderer->renderPlain()
    #66 /var/www/html/impact10/core/modules/views/src/Plugin/views/style/StylePluginBase.php(570): Drupal\views\Plugin\views\style\StylePluginBase->renderFields()
    #67 /var/www/html/impact10/core/modules/views/src/Plugin/views/style/StylePluginBase.php(461): Drupal\views\Plugin\views\style\StylePluginBase->renderGrouping()
    #68 /var/www/html/impact10/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(2174): Drupal\views\Plugin\views\style\StylePluginBase->render()
    #69 /var/www/html/impact10/core/modules/views/src/ViewExecutable.php(1548): Drupal\views\Plugin\views\display\DisplayPluginBase->render()
    #70 /var/www/html/impact10/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(2464): Drupal\views\ViewExecutable->render()
    #71 /var/www/html/impact10/core/modules/views/src/ViewExecutable.php(1677): Drupal\views\Plugin\views\display\DisplayPluginBase->preview()
    #72 /var/www/html/impact10/core/modules/views_ui/src/ViewUI.php(612): Drupal\views\ViewExecutable->preview()
    #73 /var/www/html/impact10/core/modules/views_ui/src/ViewPreviewForm.php(62): Drupal\views_ui\ViewUI->renderPreview()
    #74 /var/www/html/impact10/core/lib/Drupal/Core/Entity/EntityForm.php(107): Drupal\views_ui\ViewPreviewForm->form()
    #75 /var/www/html/impact10/core/modules/views_ui/src/ViewFormBase.php(41): Drupal\Core\Entity\EntityForm->buildForm()
    #76 [internal function]: Drupal\views_ui\ViewFormBase->buildForm()
    #77 /var/www/html/impact10/core/lib/Drupal/Core/Form/FormBuilder.php(536): call_user_func_array()
    #78 /var/www/html/impact10/core/lib/Drupal/Core/Form/FormBuilder.php(375): Drupal\Core\Form\FormBuilder->retrieveForm()
    #79 /var/www/html/impact10/core/lib/Drupal/Core/Form/FormBuilder.php(633): Drupal\Core\Form\FormBuilder->rebuildForm()
    #80 /var/www/html/impact10/core/lib/Drupal/Core/Form/FormBuilder.php(325): Drupal\Core\Form\FormBuilder->processForm()
    #81 /var/www/html/impact10/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm()
    #82 /var/www/html/impact10/core/modules/layout_builder/src/Controller/LayoutBuilderHtmlEntityFormController.php(39): Drupal\Core\Controller\FormController->getContentResult()
    #83 [internal function]: Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult()
    #84 /var/www/html/impact10/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array()
    #85 /var/www/html/impact10/core/lib/Drupal/Core/Render/Renderer.php(627): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
    #86 /var/www/html/impact10/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext()
    #87 /var/www/html/impact10/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext()
    #88 /var/www/html/impact10/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
    #89 /var/www/html/impact10/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
    #90 /var/www/html/impact10/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle()
    #91 /var/www/html/impact10/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle()
    #92 /var/www/html/impact10/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
    #93 /var/www/html/impact10/core/modules/big_pipe/src/StackMiddleware/ContentLength.php(32): Drupal\Core\StackMiddleware\ContentLength->handle()
    #94 /var/www/html/impact10/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\big_pipe\StackMiddleware\ContentLength->handle()
    #95 /var/www/html/impact10/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
    #96 /var/www/html/impact10/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle()
    #97 /var/www/html/impact10/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle()
    #98 /var/www/html/impact10/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
    #99 /var/www/html/impact10/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
    #100 /var/www/html/impact10/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle()
    #101 /var/www/html/impact10/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle()
    #102 /var/www/html/impact10/index.php(19): Drupal\Core\DrupalKernel->handle()
    #103 {main}

  • πŸ‡ΊπŸ‡ΈUnited States gaelicmichael
Production build 0.69.0 2024