jQuery not working after upgrade to 5.0.3

Your software
My Mautic version is: 5.0.3
My PHP version is: 8.1
My Database type and version is: Current

Your problem
My problem is:
jQuery not functioning, charts not showing, menus not working after update to version 5.0.3.

These errors are showing in the log:
[2024-04-01T10:29:03.802847-07:00] mautic.WARNING: Command mautic:assets:generate exited with status code 1 {“hostname”:“iad1-shared-e1-06”,“pid”:388359}
[2024-04-01T10:39:56.034946-07:00] mautic.WARNING: Command mautic:update:apply exited with status code 1 {“hostname”:“iad1-shared-e1-06”,“pid”:487195}

[2024-04-01T03:02:23.050653+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\RuntimeError: “An exception has been thrown during the rendering of a template (“Mautic\CoreBundle\Twig\Extension\AssetExtension::makeLinks(): Argument #1 ($text) must be of type string, null given, called in /home/username/domainname.com/mautic5/var/tmp/twig/ef/ef6787421501ecc99158046e98ee62ae.php on line 124”).” at /home/username/domainname.com/mautic5/app/bundles/ReportBundle/Resources/views/Graph/Table.html.twig line 37 {“exception”:“[object] (Twig\Error\RuntimeError(code: 0): An exception has been thrown during the rendering of a template ("Mautic\CoreBundle\Twig\Extension\AssetExtension::makeLinks(): Argument #1 ($text) must be of type string, null given, called in /home/username/domainname.com/mautic5/var/tmp/twig/ef/ef6787421501ecc99158046e98ee62ae.php on line 124"). at /home/username/domainname.com/mautic5/app/bundles/ReportBundle/Resources/views/Graph/Table.html.twig:37)\n[previous exception] [object] (TypeError(code: 0): Mautic\CoreBundle\Twig\Extension\AssetExtension::makeLinks(): Argument #1 ($text) must be of type string, null given, called in /home/username/domainname.com/mautic5/var/tmp/twig/ef/ef6787421501ecc99158046e98ee62ae.php on line 124 at /home/username/domainname.com/mautic5/app/bundles/CoreBundle/Twig/Extension/AssetExtension.php:166)”} {“hostname”:“iad1-shared-e1-06”,“pid”:426226}
[2024-04-01T03:02:33.174084+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\RuntimeError: “An exception has been thrown during the rendering of a template (“Mautic\CoreBundle\Twig\Extension\AssetExtension::makeLinks(): Argument #1 ($text) must be of type string, null given, called in /home/username/domainname.com/mautic5/var/tmp/twig/ef/ef6787421501ecc99158046e98ee62ae.php on line 124”).” at /home/username/domainname.com/mautic5/app/bundles/ReportBundle/Resources/views/Graph/Table.html.twig line 37 {“exception”:“[object] (Twig\Error\RuntimeError(code: 0): An exception has been thrown during the rendering of a template ("Mautic\CoreBundle\Twig\Extension\AssetExtension::makeLinks(): Argument #1 ($text) must be of type string, null given, called in /home/username/domainname.com/mautic5/var/tmp/twig/ef/ef6787421501ecc99158046e98ee62ae.php on line 124"). at /home/username/domainname.com/mautic5/app/bundles/ReportBundle/Resources/views/Graph/Table.html.twig:37)\n[previous exception] [object] (TypeError(code: 0): Mautic\CoreBundle\Twig\Extension\AssetExtension::makeLinks(): Argument #1 ($text) must be of type string, null given, called in /home/username/domainname.com/mautic5/var/tmp/twig/ef/ef6787421501ecc99158046e98ee62ae.php on line 124 at /home/username/domainname.com/mautic5/app/bundles/CoreBundle/Twig/Extension/AssetExtension.php:166)”} {“hostname”:“iad1-shared-e1-06”,“pid”:426226}
[2024-04-01T07:35:51.242210-07:00] mautic.WARNING: Command mautic:assets:generate exited with status code 1 {“hostname”:“iad1-shared-e1-06”,“pid”:218314}
[2024-04-01T16:02:36.546937+00:00] mautic.CRITICAL: Uncaught PHP Exception Twig\Error\LoaderError: “The “/home/username/domainname.com/mautic5/plugins/GrapesJsBuilderBundle/Resources/views” directory does not exist (”/home/username/domainname.com/mautic5/plugins/GrapesJsBuilderBundle/Resources/views")." at /home/username/domainname.com/mautic5/vendor/twig/twig/src/Loader/FilesystemLoader.php line 92 {“exception”:“[object] (Twig\Error\LoaderError(code: 0): The "/home/username/domainname.com/mautic5/plugins/GrapesJsBuilderBundle/Resources/views" directory does not exist ("/home/username/domainname.com/mautic5/plugins/GrapesJsBuilderBundle/Resources/views"). at /home/username/domainname.com/mautic5/vendor/twig/twig/src/Loader/FilesystemLoader.php:92)”} {“hostname”:“iad1-shared-e1-06”,“pid”:491606}
[2024-04-01T16:02:36.550725+00:00] mautic.WARNING: PHP Warning - include(/home/username/domainname.com/mautic5/vendor/composer/…/…/plugins/GrapesJsBuilderBundle/Integration/GrapesJsBuilderIntegration.php): Failed to open stream: No such file or directory - in file /home/username/domainname.com/mautic5/vendor/composer/ClassLoader.php - at line 576 {“hostname”:“iad1-shared-e1-06”,“pid”:491606}
[2024-04-01T16:02:36.550804+00:00] mautic.WARNING: PHP Warning - include(): Failed opening ‘/home/username/domainname.com/mautic5/vendor/composer/…/…/plugins/GrapesJsBuilderBundle/Integration/GrapesJsBuilderIntegration.php’ for inclusion (include_path=‘.:’) - in file /home/username/domainname.com/mautic5/vendor/composer/ClassLoader.php - at line 576 {“hostname”:“iad1-shared-e1-06”,“pid”:491606}
[2024-04-01T16:02:36.876775+00:00] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\ClassNotFoundError: “Attempted to load class “GrapesJsBuilderIntegration” from namespace “MauticPlugin\GrapesJsBuilderBundle\Integration”. Did you forget a “use” statement for another namespace?” at /home/username/domainname.com/mautic5/var/cache/prod/ContainerPd0yAr9/AppKernelProdContainer.php line 8166 {“exception”:“[object] (Symfony\Component\ErrorHandler\Error\ClassNotFoundError(code: 0): Attempted to load class "GrapesJsBuilderIntegration" from namespace "MauticPlugin\GrapesJsBuilderBundle\Integration".\nDid you forget a "use" statement for another namespace? at /home/username/domainname.com/mautic5/var/cache/prod/ContainerPd0yAr9/AppKernelProdContainer.php:8166)”} {“hostname”:“iad1-shared-e1-06”,“pid”:491606}
[2024-04-01T16:02:36.877963+00:00] mautic.CRITICAL: Exception thrown when handling an exception (Twig\Error\LoaderError: The “/home/username/domainname.com/mautic5/plugins/GrapesJsBuilderBundle/Resources/views” directory does not exist (“/home/username/domainname.com/mautic5/plugins/GrapesJsBuilderBundle/Resources/views”). at /home/username/domainname.com/mautic5/vendor/twig/twig/src/Loader/FilesystemLoader.php line 92) {“exception”:“[object] (Twig\Error\LoaderError(code: 0): The "/home/username/domainname.com/mautic5/plugins/GrapesJsBuilderBundle/Resources/views" directory does not exist ("/home/username/domainname.com/mautic5/plugins/GrapesJsBuilderBundle/Resources/views"). at /home/username/domainname.com/mautic5/vendor/twig/twig/src/Loader/FilesystemLoader.php:92)”} {“hostname”:“iad1-shared-e1-06”,“pid”:491606}
[2024-04-01T16:02:48.168638+00:00] mautic.WARNING: PHP Warning - include(/home/username/domainname.com/mautic5/vendor/composer/…/…/plugins/GrapesJsBuilderBundle/Integration/GrapesJsBuilderIntegration.php): Failed to open stream: No such file or directory - in file /home/username/domainname.com/mautic5/vendor/composer/ClassLoader.php - at line 576 {“hostname”:“iad1-shared-e1-06”,“pid”:491606}
[2024-04-01T16:02:48.168819+00:00] mautic.WARNING: PHP Warning - include(): Failed opening ‘/home/username/domainname.com/mautic5/vendor/composer/…/…/plugins/GrapesJsBuilderBundle/Integration/GrapesJsBuilderIntegration.php’ for inclusion (include_path=‘.:’) - in file /home/username/domainname.com/mautic5/vendor/composer/ClassLoader.php - at line 576 {“hostname”:“iad1-shared-e1-06”,“pid”:491606}
[2024-04-01T16:02:48.500116+00:00] mautic.CRITICAL: Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\ClassNotFoundError: “Attempted to load class “GrapesJsBuilderIntegration” from namespace “MauticPlugin\GrapesJsBuilderBundle\Integration”. Did you forget a “use” statement for another namespace?” at /home/username/domainname.com/mautic5/var/cache/prod/ContainerPd0yAr9/AppKernelProdContainer.php line 8166 {“exception”:“[object] (Symfony\Component\ErrorHandler\Error\ClassNotFoundError(code: 0): Attempted to load class "GrapesJsBuilderIntegration" from namespace "MauticPlugin\GrapesJsBuilderBundle\Integration".\nDid you forget a "use" statement for another namespace? at /home/username/domainname.com/mautic5/var/cache/prod/ContainerPd0yAr9/AppKernelProdContainer.php:8166)”} {“hostname”:“iad1-shared-e1-06”,“pid”:491606}
[2024-04-01T16:02:48.501802+00:00] mautic.CRITICAL: Exception thrown when handling an exception (Twig\Error\LoaderError: The “/home/username/domainname.com/mautic5/plugins/GrapesJsBuilderBundle/Resources/views” directory does not exist (“/home/username/domainname.com/mautic5/plugins/GrapesJsBuilderBundle/Resources/views”). at /home/username/domainname.com/mautic5/vendor/twig/twig/src/Loader/FilesystemLoader.php line 92) {“exception”:“[object] (Twig\Error\LoaderError(code: 0): The "/home/username/domainname.com/mautic5/plugins/GrapesJsBuilderBundle/Resources/views" directory does not exist ("/home/username/domainname.com/mautic5/plugins/GrapesJsBuilderBundle/Resources/views"). at /home/username/domainname.com/mautic5/vendor/twig/twig/src/Loader/FilesystemLoader.php:92)”} {“hostname”:“iad1-shared-e1-06”,“pid”:491606}

Steps I have tried to fix the problem:
Reinstalled entirely using CLI, problem persists

Turns out, my problems stemmed from not having NPM and NVM installed on my shared hosting before updating. Once I did that, the update completed correctly.

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.