Warning: Undefined variable $table_data in Drupal\views\EntityViewsData - drupal-views

With Drupal 9.4.5 I get the following error message on a cache clear:
'''Warning: Undefined variable $table_data in Drupal\views\EntityViewsData->mapFieldDefinition() (line 457 of C:\development\web\core\modules\views\src\EntityViewsData.php)
#0 C:\development\web\core\includes\bootstrap.inc(347): _drupal_error_handler_real(2, 'Undefined varia...', 'C:\development\...', 457)
#1 C:\development\web\core\modules\views\src\EntityViewsData.php(457): _drupal_error_handler(2, 'Undefined varia...', 'C:\development\...', 457)
#2 C:\development\web\core\modules\views\src\EntityViewsData.php(333): Drupal\views\EntityViewsData->mapFieldDefinition('webform_submiss...', 'notes', Object(Drupal\Core\Field\BaseFieldDefinition), Object(Drupal\Core\Entity\Sql\DefaultTableMapping), Array)
#3 C:\development\web\modules\contrib\webform\src\WebformSubmissionViewsData.php(16): Drupal\views\EntityViewsData->getViewsData()
#4 C:\development\web\core\modules\views\views.views.inc(180): Drupal\webform\WebformSubmissionViewsData->getViewsData()
#5 C:\development\web\core\modules\views\src\ViewsData.php(236): views_views_data()
#6 C:\development\web\core\lib\Drupal\Core\Extension\ModuleHandler.php(405): Drupal\views\ViewsData->Drupal\views{closure}(Object(Closure), 'views')
#7 C:\development\web\core\modules\views\src\ViewsData.php(244): Drupal\Core\Extension\ModuleHandler->invokeAllWith('views_data', Object(Closure))
#8 C:\development\web\core\modules\views\src\ViewsData.php(154): Drupal\views\ViewsData->getData()
#9 C:\development\web\core\modules\views\src\Plugin\Derivative\ViewsEntityRow.php(91): Drupal\views\ViewsData->get('block_content')
#10 C:\development\web\core\lib\Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator.php(101): Drupal\views\Plugin\Derivative\ViewsEntityRow->getDerivativeDefinitions(Array)
#11 C:\development\web\core\lib\Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator.php(87): Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDerivatives(Array)
#12 C:\development\web\core\lib\Drupal\Core\Plugin\DefaultPluginManager.php(285): Drupal\Component\Plugin\Discovery\DerivativeDiscoveryDecorator->getDefinitions()
#13 C:\development\web\core\lib\Drupal\Core\Plugin\DefaultPluginManager.php(175): Drupal\Core\Plugin\DefaultPluginManager->findDefinitions()
#14 C:\development\web\core\lib\Drupal\Component\Plugin\Discovery\DiscoveryCachedTrait.php(22): Drupal\Core\Plugin\DefaultPluginManager->getDefinitions()
#15 C:\development\web\core\lib\Drupal\Core\Plugin\Factory\ContainerFactory.php(16): Drupal\Core\Plugin\DefaultPluginManager->getDefinition('data_field')
#16 C:\development\web\core\lib\Drupal\Component\Plugin\PluginManagerBase.php(83): Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('data_field', Array)
#17 C:\development\web\core\modules\views\src\Plugin\views\display\DisplayPluginBase.php(817): Drupal\Component\Plugin\PluginManagerBase->createInstance('data_field')
'''
When I go to line 457 core\modules\views\src\EntityViewsData I see this:
foreach ($field_column_mapping as $field_column_name => $schema_field_name) {
// The fields might be defined before the actual table.
$table_data = $table_data ?: [];

Related

Invalid argument(s): Illegal argument in isolate message: (object extends NativeWrapper - Library:'dart:io' Class: _RandomAccessFileOpsImpl#14069316)

I am trying to do log output to a file in parallel in the Dart language but I get the following error I can't read from the error at all what the error means, does anyone know a solution?
Invalid argument(s): Illegal argument in isolate message: (object extends NativeWrapper - Library:'dart:io' Class: _RandomAccessFileOpsImpl#14069316)
#0 Isolate._spawnFunction (dart:isolate-patch/isolate_patch.dart:395:25)
#1 Isolate.spawn (dart:isolate-patch/isolate_patch.dart:375:7)
#2 _IsolateThread._startImpl (package:async_task/src/async_task_isolate.dart:457:19)
#3 _IsolateThread._start (package:async_task/src/async_task_isolate.dart:445:12)
#4 _AsyncExecutorMultiThread._catchNotFreeThread (package:async_task/src/async_task_isolate.dart:133:24)
#5 _AsyncExecutorMultiThread._catchThread (package:async_task/src/async_task_isolate.dart:125:12)
#6 _AsyncExecutorMultiThread._dispatchTask (package:async_task/src/async_task_isolate.dart:198:18)
#7 _AsyncExecutorMultiThread.execute (package:async_task/src/async_task_isolate.dart:178:7)
#8 AsyncExecutor._executeAlreadyStarted (package:async_task/src/async_task_base.dart:566:28)
#9 AsyncExecutor.execute (package:async_task/src/async_task_base.dart:533:14)
#10 _TaskToExecute.execute (package:async_task/src/async_task_base.dart:695:16)
#11 AsyncExecutor._flushTasksToExecute (package:async_task/src/async_task_base.dart:556:9)
#12 AsyncExecutor.start.<anonymous closure> (package:async_task/src/async_task_base.dart:508:7)
#13 FutureOrExtension.then (package:async_extension/src/async_extension_base.dart:160:21)
#14 AsyncExecutor.start (package:async_task/src/async_task_base.dart:505:29)
#15 AsyncExecutor._executeNotStarted (package:async_task/src/async_task_base.dart:545:5)
#16 AsyncExecutor.execute (package:async_task/src/async_task_base.dart:531:14)
#17 AsyncExecutor.executeAll.<anonymous closure> (package:async_task/src/async_task_base.dart:591:18)
#18 new _GrowableList.generate (dart:core-patch/growable_array.dart:136:28)

Dart migration error: RangeError (index): Invalid value: Not in inclusive range 0..12: 13 #0 List.[] (dart:core-patch/array.dart:268:52)

I started my project when null safety wasn't stable and I did not want to use it back then. Now I'm heading to deployment and I want to upgrade the project to use Null-Safety. I keep getting this error, tried it on both stable and dev channel and Flutter & Dart are both up to date.
Analyzing project...
[-----------------------------------------------------------------------------|]No analysis issues found.
Generating migration suggestions...
[------------------------------------------------------------------------------]
Compiling instrumentation information...
[----------------------------------- ]RangeError (index): Invalid value: Not in inclusive range 0..12: 13
#0 List.[] (dart:core-patch/array.dart:268:52)
#1 BestPracticesVerifier._targetKindsFor (package:analyzer/src/error/best_practices_verifier.dart:1582:38)
#2 BestPracticesVerifier.visitAnnotation (package:analyzer/src/error/best_practices_verifier.dart:250:17)
#3 AnnotationImpl.accept (package:analyzer/src/dart/ast/ast.dart:280:49)
#4 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7611:20)
#5 AnnotatedNodeImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:148:17)
#6 ClassDeclarationImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:1559:11)
#7 RecursiveAstVisitor.visitClassDeclaration (package:analyzer/dart/ast/visitor.dart:707:10)
#8 BestPracticesVerifier.visitClassDeclaration (package:analyzer/src/error/best_practices_verifier.dart:320:13)
#9 ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:1536:49)
#10 NodeListImpl.accept (package:analyzer/src/dart/ast/ast.dart:7611:20)
#11 CompilationUnitImpl.visitChildren (package:analyzer/src/dart/ast/ast.dart:2141:21)
#12 RecursiveAstVisitor.visitCompilationUnit (package:analyzer/dart/ast/visitor.dart:731:10)
#13 CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:2134:49)
#14 LibraryAnalyzer._computeHints (package:analyzer/src/dart/analysis/library_analyzer.dart:281:10)
#15 LibraryAnalyzer.analyzeSync.<anonymous closure> (package:analyzer/src/dart/analysis/library_analyzer.dart:167:9)
#16 _LinkedHashMapMixin.forEach (dart:collection-patch/compact_hash.dart:397:8)
#17 LibraryAnalyzer.analyzeSync (package:analyzer/src/dart/analysis/library_analyzer.dart:166:13)
#18 LibraryAnalyzer.analyze (package:analyzer/src/dart/analysis/library_analyzer.dart:107:12)
#19 AnalysisDriver._computeResolvedLibrary2.<anonymous closure> (package:analyzer/src/dart/analysis/driver.dart:1416:65)
#20 PerformanceLog.run (package:analyzer/src/dart/analysis/performance_logger.dart:32:15)
#21 AnalysisDriver._computeResolvedLibrary2 (package:analyzer/src/dart/analysis/driver.dart:1402:20)
#22 AnalysisDriver._computeResolvedLibrary.<anonymous closure> (package:analyzer/src/dart/analysis/driver.dart:1395:15)
#23 _rootRun (dart:async/zone.dart:1354:13)
#24 _CustomZone.run (dart:async/zone.dart:1258:19)
#25 _runZoned (dart:async/zone.dart:1788:10)
#26 runZoned (dart:async/zone.dart:1710:10)
#27 NullSafetyUnderstandingFlag.enableNullSafetyTypes (package:analyzer/dart/element/null_safety_understanding_flag.dart:42:12)
#28 AnalysisDriver._computeResolvedLibrary (package:analyzer/src/dart/analysis/driver.dart:1394:40)
#29 AnalysisDriver.performWork (package:analyzer/src/dart/analysis/driver.dart:964:22)
#30 AnalysisDriverScheduler._run (package:analyzer/src/dart/analysis/driver.dart:2018:24)
<asynchronous suspension>
You have in a list that has 12 items, you work with item number 13 that you get this error

hello at the time of installation magento show error Installation is incomplete. Check the console log for errors before trying again

Console Log show error
[ERROR] LogicException: Unknown module in the requested list: 'Magento_BundleSampleData' in C:\xampp\htdocs\Magento2\setup\src\Magento\Setup\Model\Installer.php:417 Stack trace: #0 C:\xampp\htdocs\Magento2\setup\src\Magento\Setup\Model\Installer.php(378): Magento\Setup\Model\Installer->readListOfModules(Array, Array, 'enable_modules') #1 C:\xampp\htdocs\Magento2\setup\src\Magento\Setup\Model\Installer.php(325): Magento\Setup\Model\Installer->createModulesConfig(Array) #2 C:\xampp\htdocs\Magento2\setup\src\Magento\Setup\Controller\Install.php(103): Magento\Setup\Model\Installer->install(Array) #3 C:\xampp\htdocs\Magento2\vendor\zendframework\zend-mvc\src\Controller\AbstractActionController.php(82): Magento\Setup\Controller\Install->startAction() #4 [internal function]: Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent)) #5 C:\xampp\htdocs\Magento2\vendor\zendframework\zend-eventmanager\src\EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) #6 C:\xampp\htdocs\Magento2\vendor\zendframework\zend-eventmanager\src\EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #7 C:\xampp\htdocs\Magento2\vendor\zendframework\zend-mvc\src\Controller\AbstractController.php(118): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #8 C:\xampp\htdocs\Magento2\vendor\zendframework\zend-mvc\src\DispatchListener.php(93): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response)) #9 [internal function]: Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent)) #10 C:\xampp\htdocs\Magento2\vendor\zendframework\zend-eventmanager\src\EventManager.php(444): call_user_func(Array, Object(Zend\Mvc\MvcEvent)) #11 C:\xampp\htdocs\Magento2\vendor\zendframework\zend-eventmanager\src\EventManager.php(205): Zend\EventManager\EventManager->triggerListeners('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #12 C:\xampp\htdocs\Magento2\vendor\zendframework\zend-mvc\src\Application.php(314): Zend\EventManager\EventManager->trigger('dispatch', Object(Zend\Mvc\MvcEvent), Object(Closure)) #13 C:\xampp\htdocs\Magento2\setup\index.php(31): Zend\Mvc\Application->run() #14 {main}
You can disable this module by going to "Customize Your Store" "Advanced Modules Configurations" and uncheck "Magento_BundleSampleData"
If you would still like to install with this module i would advise you to try clearing all your cache maybe restart apache and mysql and make sure to be in incognito.

Zend framework 2 Session validation failed

i'm trying to display messages from flashMessenger in view file.
Add them in controller
$status = 'error';
$message = 'Wrong parameters';
$this->flashMessenger()->addMessage($message)->setNamespace($status);
Tried to get messages in .phtml file :
1) Like this $this->flashMessenger()->getPluginFlashMessenger()->getCurrentErrorMessages();
2) Like this
$flash = $this->flashMessenger();
if (count($flash->getMessages())) {
$flash->render('error');
}
And always receive same error Session validation failed
Call stack:
#0 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/Session/AbstractContainer.php(78): Zend\Session\SessionManager->start()
#1 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/Plugin/FlashMessenger.php(120): Zend\Session\AbstractContainer->__construct('FlashMessenger', Object(Zend\Session\SessionManager))
#2 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/Plugin/FlashMessenger.php(447): Zend\Mvc\Controller\Plugin\FlashMessenger->getContainer()
#3 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/Plugin/FlashMessenger.php(525): Zend\Mvc\Controller\Plugin\FlashMessenger->hasCurrentMessages()
#4 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/Mvc/Controller/Plugin/FlashMessenger.php(593): Zend\Mvc\Controller\Plugin\FlashMessenger->getCurrentMessages()
#5 /home/dmitriy/zend/module/Admin/view/admin/category/index.phtml(20): Zend\Mvc\Controller\Plugin\FlashMessenger->getCurrentErrorMessages()
#6 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/View/Renderer/PhpRenderer.php(506): include('/home/dmitriy/z...')
#7 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/View/View.php(205): Zend\View\Renderer\PhpRenderer->render(Object(Zend\View\Model\ViewModel))
#8 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/View/View.php(233): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#9 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/View/View.php(198): Zend\View\View->renderChildren(Object(Zend\View\Model\ViewModel))
#10 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/Mvc/View/Http/DefaultRenderingStrategy.php(102): Zend\View\View->render(Object(Zend\View\Model\ViewModel))
#11 [internal function]: Zend\Mvc\View\Http\DefaultRenderingStrategy->render(Object(Zend\Mvc\MvcEvent))
#12 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(468): call_user_func(Array, Object(Zend\Mvc\MvcEvent))
#13 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/EventManager/EventManager.php(207): Zend\EventManager\EventManager->triggerListeners('render', Object(Zend\Mvc\MvcEvent), Array)
#14 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(355): Zend\EventManager\EventManager->trigger('render', Object(Zend\Mvc\MvcEvent))
#15 /home/dmitriy/zend/vendor/zendframework/zendframework/library/Zend/Mvc/Application.php(330): Zend\Mvc\Application->completeRequest(Object(Zend\Mvc\MvcEvent))
#16 /home/dmitriy/zend/public/index.php(24): Zend\Mvc\Application->run()
#17 {main}
Zend crushing before displaying in view file. Here addMessage($message)
I fixed it by adding "session_start ();" at the beginning of the containers

Zend 2 A plugin by the name "getServiceLocator" was not found in the plugin manager Zend\Mvc\Controller\PluginManager

pls help me this issue :
The link I'm followed : https://framework.zend.com/manual/2.4/en/user-guide/database-and-models.html for project example
I create new project example with zend 2, but at step "database and model", I have a issue:
An error occurred
An error occurred during execution; please try again later.
Additional information:
Zend\ServiceManager\Exception\ServiceNotFoundException
File:
D:\HungVT\Projects\zend\vendor\zendframework\zend-servicemanager\src\AbstractPluginManager.php:133
Message:
A plugin by the name "getServiceLocator" was not found in the plugin
manager Zend\Mvc\Controller\PluginManager
Stack trace:
#0 D:\HungVT\Projects\zend\vendor\zendframework\zend-mvc\src\Controller\PluginManager.php(98): Zend\ServiceManager\AbstractPluginManager->get('getServiceLocat...', NULL)
#1 D:\HungVT\Projects\zend\vendor\zendframework\zend-mvc\src\Controller\AbstractController.php(258): Zend\Mvc\Controller\PluginManager->get('getServiceLocat...', NULL)
#2 D:\HungVT\Projects\zend\vendor\zendframework\zend-mvc\src\Controller\AbstractController.php(273): Zend\Mvc\Controller\AbstractController->plugin('getServiceLocat...')
#3 D:\HungVT\Projects\zend\module\Album\src\Album\Controller\AlbumController.php(38): Zend\Mvc\Controller\AbstractController->__call('getServiceLocat...', Array)
#4 D:\HungVT\Projects\zend\module\Album\src\Album\Controller\AlbumController.php(38): Album\Controller\AlbumController->getServiceLocator()
#5 D:\HungVT\Projects\zend\module\Album\src\Album\Controller\AlbumController.php(18): Album\Controller\AlbumController->getAlbumTable()
#6 D:\HungVT\Projects\zend\vendor\zendframework\zend-mvc\src\Controller\AbstractActionController.php(78): Album\Controller\AlbumController->indexAction()
#7 D:\HungVT\Projects\zend\vendor\zendframework\zend-eventmanager\src\EventManager.php(271): Zend\Mvc\Controller\AbstractActionController->onDispatch(Object(Zend\Mvc\MvcEvent))
#8 D:\HungVT\Projects\zend\vendor\zendframework\zend-eventmanager\src\EventManager.php(151): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#9 D:\HungVT\Projects\zend\vendor\zendframework\zend-mvc\src\Controller\AbstractController.php(105): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#10 D:\HungVT\Projects\zend\vendor\zendframework\zend-mvc\src\DispatchListener.php(119): Zend\Mvc\Controller\AbstractController->dispatch(Object(Zend\Http\PhpEnvironment\Request), Object(Zend\Http\PhpEnvironment\Response))
#11 D:\HungVT\Projects\zend\vendor\zendframework\zend-eventmanager\src\EventManager.php(271): Zend\Mvc\DispatchListener->onDispatch(Object(Zend\Mvc\MvcEvent))
#12 D:\HungVT\Projects\zend\vendor\zendframework\zend-eventmanager\src\EventManager.php(151): Zend\EventManager\EventManager->triggerListeners(Object(Zend\Mvc\MvcEvent), Object(Closure))
#13 D:\HungVT\Projects\zend\vendor\zendframework\zend-mvc\src\Application.php(332): Zend\EventManager\EventManager->triggerEventUntil(Object(Closure), Object(Zend\Mvc\MvcEvent))
#14 D:\HungVT\Projects\zend\public\index.php(40): Zend\Mvc\Application->run()
#15 {main}
Thank so much,
Try another tutorial https://docs.zendframework.com/tutorials/getting-started/database-and-models. If i'm not mistaken, getServiceLocator() does not exist anymore.