- Issue created by @wattdesigns
- πͺπΈSpain Carlos Romero
Hi wattsesings, maybe u are not configured the roles mapping tab.
Maybe a bug i will resolve, please try configure the roles first and later try again with users.
Thanks for use migrate wizard.
- πΊπΈUnited States wattdesigns
Thanks for the reply. I did configure the roles which is why I thought I got the configuration right. I could see both the roles in the Drupal 7 database and Drupal 10 database (they were named the same so that was easy to match up). This included custom roles.
Thanks for the help!!!!
- πΊπΈUnited States wattdesigns
No, I get that error I posted every time I attempt to click the users tab. Iβve never had access to the users tab. I can see all the other tabs not that one.
- πΊπΈUnited States wattdesigns
OK, extra information. I decided to move on to the node mapping. It pulls up my node types, but when I click on the Manage Fields button, I get to the mapping of the fields. It shows the fields, but doesn't allow me to select something from the pull down menus. They are all empty.
SO, I'm back to looking at my basic database configuration as that's probably the issue now that I can't see the fields or the users.
Here's my configuration:
Migration ID - drupal7
Migration group - drupal7
Key - migrate
Target - default
Database host - localhost
Database name - name but hidden for security
Database username - name but hidden for security
Database password - hidden for security
Database prefix - this is blank as there isn't one.
Database Driver - mysql
Database port - 3306
Database driver namespace - Drupal\mysql\Driver\Database\mysql
Database collation - utf8mb4_unicode_ci
Production URL - left blankSo, my worry is the Namespace. My settings.php file shows it as Drupal\\mysql\\Driver\\Database\\mysql with two \'s but if I put two, I can't get to the wizard at all. It shows an error of Error: Class "Drupal\\mysql\\Driver\\Database\\mysql\Connection" not found. But no error if I only put single \ like normal.
Any feedback on those settings????? Thanks!
- πͺπΈSpain Carlos Romero
In the selectors above you must select the Drupal10 destination, it can be content type, paragraph or vocabulary, then by Ajax the fields of the selected type will be loaded in the selectors of the fields you say.
On the module page description is explained, i will upload a video tutorial and add more documentation.
all the best.
- πΊπΈUnited States wattdesigns
Thank you! That fixed that issue. But I still can't get to the Users tab. Is there anything I can check? Here's the error I get.
TypeError: reset(): Argument #1 ($array) must be of type array, null given in reset() (line 278 of /home/MYSERVER/public_html/MYSITE/modules/contrib/migrate_wizard/src/MWManageFormService.php).
And here's the trace.
#0 /home/MYSERVER/public_html/MYSITE/modules/contrib/migrate_wizard/src/MWManageFormService.php(278): reset(NULL)
#1 /home/MYSERVER/public_html/MYSITE/modules/contrib/migrate_wizard/src/Form/BaseFormFields.php(309): Drupal\migrate_wizard\MWManageFormService->buildFieldsForm(Array, Array, 'user', Array, Array, Array)
#2 /home/MYSERVER/public_html/MYSITE/modules/contrib/migrate_wizard/src/Form/OriginUserFields.php(70): Drupal\migrate_wizard\Form\BaseFormFields->buildForm(Array, Object(Drupal\Core\Form\FormState), Object(stdClass))
#3 [internal function]: Drupal\migrate_wizard\Form\OriginUserFields->buildForm(Array, Object(Drupal\Core\Form\FormState), 'user')
#4 /home/MYSERVER/public_html/MYSITE/core/lib/Drupal/Core/Form/FormBuilder.php(536): call_user_func_array(Array, Array)
#5 /home/MYSERVER/public_html/MYSITE/core/lib/Drupal/Core/Form/FormBuilder.php(284): Drupal\Core\Form\FormBuilder->retrieveForm('manage_origin_u...', Object(Drupal\Core\Form\FormState))
#6 /home/MYSERVER/public_html/MYSITE/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\migrate_wizard\Form\OriginUserFields), Object(Drupal\Core\Form\FormState))
#7 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#8 /home/MYSERVER/public_html/MYSITE/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#9 /home/MYSERVER/public_html/MYSITE/core/lib/Drupal/Core/Render/Renderer.php(638): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#10 /home/MYSERVER/public_html/MYSITE/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#11 /home/MYSERVER/public_html/MYSITE/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#12 /home/MYSERVER/public_html/MYSITE/vendor/symfony/http-kernel/HttpKernel.php(181): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#13 /home/MYSERVER/public_html/MYSITE/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#14 /home/MYSERVER/public_html/MYSITE/core/lib/Drupal/Core/StackMiddleware/Session.php(53): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#15 /home/MYSERVER/public_html/MYSITE/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#16 /home/MYSERVER/public_html/MYSITE/core/lib/Drupal/Core/StackMiddleware/ContentLength.php(28): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#17 /home/MYSERVER/public_html/MYSITE/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\ContentLength->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#18 /home/MYSERVER/public_html/MYSITE/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /home/MYSERVER/public_html/MYSITE/modules/contrib/cleantalk/src/EventSubscriber/BootSubscriber.php(206): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /home/MYSERVER/public_html/MYSITE/modules/contrib/advban/src/AdvbanMiddleware.php(57): Drupal\cleantalk\EventSubscriber\BootSubscriber->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /home/MYSERVER/public_html/MYSITE/core/modules/ban/src/BanMiddleware.php(50): Drupal\advban\AdvbanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /home/MYSERVER/public_html/MYSITE/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /home/MYSERVER/public_html/MYSITE/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /home/MYSERVER/public_html/MYSITE/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /home/MYSERVER/public_html/MYSITE/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /home/MYSERVER/public_html/MYSITE/core/lib/Drupal/Core/DrupalKernel.php(741): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#27 /home/MYSERVER/public_html/MYSITE/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#28 {main}Thanks again! Your module looks amazing, and I really want to be able to use it.
- πΊπΈUnited States wattdesigns
I just can't find anything that would cause this isolated error. Any help would be appreciated. The import won't work without access to users.
- πͺπΈSpain abarrio
I have been checking the error code part:
if ($this->currentConfig !== 0) { $reset_current_config = reset($this->currentConfig); } if ($reset_current_config !== 0 && isset($reset_current_config[$field['field_name']]['dependencies'][$key])) { $current_value = $reset_current_config[$field['field_name']]['dependencies'][$key]; }
I think that the correct way of those ifs should be checking if variable is empty because the currentConfig property is defined as array and comparing it to zero is not checking if at any case the variable is null.
The correct way should be:
if (!empty($this->currentConfig)) {....