Error: Class 'Tramasec\Util\EvalMath\EvalMath' not found in

Created on 25 June 2020, over 4 years ago
Updated 30 August 2023, about 1 year ago

Hello, whenever a math field is added to a view the view breaks, and in the error log I can see this error:

Error: Class 'Tramasec\Util\EvalMath\EvalMath' not found in Drupal\views_simple_math_field\Plugin\views\field\SimpleMathField->getValue() (line 334 of /var/www/html/d8acquarium/web/modules/contrib/views_simple_math_field/src/Plugin/views/field/SimpleMathField.php)
#0 /var/www/html/d8acquarium/web/core/modules/views/src/Plugin/views/field/NumericField.php(152): Drupal\views_simple_math_field\Plugin\views\field\SimpleMathField->getValue()
#1 /var/www/html/d8acquarium/web/core/modules/views/src/Plugin/views/field/FieldPluginBase.php(1155): Drupal\views\Plugin\views\field\NumericField->render()
#2 /var/www/html/d8acquarium/web/core/modules/views/views.theme.inc(238): Drupal\views\Plugin\views\field\FieldPluginBase->advancedRender()
#3 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Theme/ThemeManager.php(287): template_preprocess_views_view_field()
#4 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Render/Renderer.php(431): Drupal\Core\Theme\ThemeManager->render()
#5 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Render/Renderer.php(200): Drupal\Core\Render\Renderer->doRender()
#6 /var/www/html/d8acquarium/web/core/modules/views/src/Plugin/views/field/FieldPluginBase.php(1746): Drupal\Core\Render\Renderer->render()
#7 /var/www/html/d8acquarium/web/core/modules/views/src/Plugin/views/style/StylePluginBase.php(770): Drupal\views\Plugin\views\field\FieldPluginBase->theme()
#8 [internal function]: Drupal\views\Plugin\views\style\StylePluginBase->elementPreRenderRow()
#9 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(100): call_user_func_array()
#10 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Render/Renderer.php(781): Drupal\Core\Render\Renderer->doTrustedCallback()
#11 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Render/Renderer.php(372): Drupal\Core\Render\Renderer->doCallback()
#12 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Render/Renderer.php(200): Drupal\Core\Render\Renderer->doRender()
#13 /var/www/html/d8acquarium/web/core/modules/views/src/Plugin/views/style/StylePluginBase.php(709): Drupal\Core\Render\Renderer->render()
#14 /var/www/html/d8acquarium/web/core/modules/views/src/Plugin/views/style/StylePluginBase.php(576): Drupal\views\Plugin\views\style\StylePluginBase->renderFields()
#15 /var/www/html/d8acquarium/web/core/modules/views/src/Plugin/views/style/StylePluginBase.php(468): Drupal\views\Plugin\views\style\StylePluginBase->renderGrouping()
#16 /var/www/html/d8acquarium/web/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php(2170): Drupal\views\Plugin\views\style\StylePluginBase->render()
#17 /var/www/html/d8acquarium/web/core/modules/views/src/ViewExecutable.php(1533): Drupal\views\Plugin\views\display\DisplayPluginBase->render()
#18 /var/www/html/d8acquarium/web/core/modules/views/src/Plugin/views/display/Block.php(138): Drupal\views\ViewExecutable->render()
#19 /var/www/html/d8acquarium/web/core/modules/views/src/ViewExecutable.php(1630): Drupal\views\Plugin\views\display\Block->execute()
#20 /var/www/html/d8acquarium/web/core/modules/views/src/Element/View.php(77): Drupal\views\ViewExecutable->executeDisplay()
#21 /var/www/html/d8acquarium/web/core/modules/views/src/Plugin/Block/ViewsBlock.php(59): Drupal\views\Element\View::preRenderViewElement()
#22 /var/www/html/d8acquarium/web/core/modules/block/src/BlockViewBuilder.php(171): Drupal\views\Plugin\Block\ViewsBlock->build()
#23 [internal function]: Drupal\block\BlockViewBuilder::preRender()
#24 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Security/DoTrustedCallbackTrait.php(100): call_user_func_array()
#25 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Render/Renderer.php(781): Drupal\Core\Render\Renderer->doTrustedCallback()
#26 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Render/Renderer.php(372): Drupal\Core\Render\Renderer->doCallback()
#27 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Render/Renderer.php(444): Drupal\Core\Render\Renderer->doRender()
#28 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Render/Renderer.php(200): Drupal\Core\Render\Renderer->doRender()
#29 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Template/TwigExtension.php(501): Drupal\Core\Render\Renderer->render()
#30 /var/www/html/d8acquarium/web/sites/default/files/php/twig/5ef4cf7610961_page.html.twig_0qOts9m6NAALPk5bzHNrtR8wk/FNx8QaBaiggVuLtAMnKSE1zFHwfkF_NaFIeoW3fPBRg.php(341): Drupal\Core\Template\TwigExtension->escapeFilter()
#31 /var/www/html/d8acquarium/vendor/twig/twig/src/Template.php(216): __TwigTemplate_f2f4bbb286ca3e9e03b592bb0623a80071b09bde30bf0dfd258bf374a208ee2b->block_content()
#32 /var/www/html/d8acquarium/web/sites/default/files/php/twig/5ef4cf7610961_page.html.twig_0qOts9m6NAALPk5bzHNrtR8wk/FNx8QaBaiggVuLtAMnKSE1zFHwfkF_NaFIeoW3fPBRg.php(268): Twig\Template->displayBlock()
#33 /var/www/html/d8acquarium/vendor/twig/twig/src/Template.php(216): __TwigTemplate_f2f4bbb286ca3e9e03b592bb0623a80071b09bde30bf0dfd258bf374a208ee2b->block_main()
#34 /var/www/html/d8acquarium/web/sites/default/files/php/twig/5ef4cf7610961_page.html.twig_0qOts9m6NAALPk5bzHNrtR8wk/FNx8QaBaiggVuLtAMnKSE1zFHwfkF_NaFIeoW3fPBRg.php(75): Twig\Template->displayBlock()
#35 /var/www/html/d8acquarium/vendor/twig/twig/src/Template.php(455): __TwigTemplate_f2f4bbb286ca3e9e03b592bb0623a80071b09bde30bf0dfd258bf374a208ee2b->doDisplay()
#36 /var/www/html/d8acquarium/vendor/twig/twig/src/Template.php(422): Twig\Template->displayWithErrorHandling()
#37 /var/www/html/d8acquarium/vendor/twig/twig/src/Template.php(434): Twig\Template->display()
#38 /var/www/html/d8acquarium/web/core/themes/engines/twig/twig.engine(64): Twig\Template->render()
#39 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template()
#40 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Render/Renderer.php(431): Drupal\Core\Theme\ThemeManager->render()
#41 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Render/Renderer.php(200): Drupal\Core\Render\Renderer->doRender()
#42 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Template/TwigExtension.php(501): Drupal\Core\Render\Renderer->render()
#43 /var/www/html/d8acquarium/web/sites/default/files/php/twig/5ef4cf7610961_html.html.twig_xrQDGyVfZsI54jed9WdyBH4oU/X-TMfSW5erxS-w4Dgt_8UfqnRAPvq_X5izxOtu1ULpE.php(102): Drupal\Core\Template\TwigExtension->escapeFilter()
#44 /var/www/html/d8acquarium/vendor/twig/twig/src/Template.php(455): __TwigTemplate_38acb033918ae34198ebe3b783ba052ab3615dfcbc70e350aed9c9cf6f863980->doDisplay()
#45 /var/www/html/d8acquarium/vendor/twig/twig/src/Template.php(422): Twig\Template->displayWithErrorHandling()
#46 /var/www/html/d8acquarium/vendor/twig/twig/src/Template.php(434): Twig\Template->display()
#47 /var/www/html/d8acquarium/web/core/themes/engines/twig/twig.engine(64): Twig\Template->render()
#48 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Theme/ThemeManager.php(384): twig_render_template()
#49 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Render/Renderer.php(431): Drupal\Core\Theme\ThemeManager->render()
#50 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Render/Renderer.php(200): Drupal\Core\Render\Renderer->doRender()
#51 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(147): Drupal\Core\Render\Renderer->render()
#52 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Render/Renderer.php(573): Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
#53 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/Render/MainContent/HtmlRenderer.php(148): Drupal\Core\Render\Renderer->executeInRenderContext()
#54 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/EventSubscriber/MainContentViewSubscriber.php(90): Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse()
#55 [internal function]: Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
#56 /var/www/html/d8acquarium/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func()
#57 /var/www/html/d8acquarium/vendor/symfony/http-kernel/HttpKernel.php(156): Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch()
#58 /var/www/html/d8acquarium/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw()
#59 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle()
#60 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle()
#61 /var/www/html/d8acquarium/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle()
#62 /var/www/html/d8acquarium/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass()
#63 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle()
#64 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle()
#65 /var/www/html/d8acquarium/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle()
#66 /var/www/html/d8acquarium/web/core/lib/Drupal/Core/DrupalKernel.php(708): Stack\StackedHttpKernel->handle()
#67 /var/www/html/d8acquarium/web/index.php(19): Drupal\Core\DrupalKernel->handle()
#68 {main}

Can you please help?

🐛 Bug report
Status

Closed: works as designed

Component

Miscellaneous

Created by

🇮🇹Italy Skin Italy

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇳🇱Netherlands rvanlaak

    After having composer uninstalled tramasec, and updated to views_simple_math_field 3.x the error still seems to occur after resubmitting the view field. Creating a new view field and removing the old one also does lead to the same error.

    Is there some buggy cache somewhere that does still cause this error ?

Production build 0.71.5 2024