πŸ‡ΊπŸ‡ΈUnited States @wattdesigns

Account created on 17 February 2008, almost 17 years ago
#

Recent comments

πŸ‡ΊπŸ‡Έ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.

πŸ‡ΊπŸ‡Έ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

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 blank

So, 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!

πŸ‡ΊπŸ‡Έ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

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

Mandclu,

Sorry for going off scope there a bit. You're right.

However, I didn't see a patch that passed? I just followed the merge request you had and see a patch in that one. I can give that a try. If it works, that would be awesome!

πŸ‡ΊπŸ‡ΈUnited States wattdesigns

OK, so I made a menu called Tabsmenu that included no links in it. I used the default menu tab (with a parent link of Already Exists). Then I made another page display that's identical, but changed to a normal menu tab with a parent of the Tabsmenu.

That still didn't work. No menu tab. So I'm still missing something. 8-( I'm sure it's staring me right in the face.

HOWEVER, you may have given me an idea. I actually don't NEED it to be a tab. If I can use a token in the normal menu link, I can display the menu in a block on that content type, with the contextual filter, and be just fine. Looks like there's an alpha release of menu_token module which appears to allow tokens in the menu link address. If that works out, I should be able to do what I need. I'll try it tonight when I have access to my Composer terminal.

πŸ‡ΊπŸ‡ΈUnited States wattdesigns

OK, got some questions from that. Thanks so much for leading me down the right path!

Indents....so on the file you supplied, there's a small indent in each of the lines past the first one. Just checking that should be there.

Contrib as package..... updated to custom which seems better. Glad you noticed that.

The menu item. I think this is where I'm messing up. So, I don't have a normal menu item because I wasn't sure how to do that with a view that changes for every content type. So would I make a parent menu item (I know how to make menu items, so that's easy) called say Tabsmenu would I then add a menu under that parent named Signin? What would the path for that menu item be as it's something tagged onto every content type of training? Is it OK to put the % like in the contextual filter?

This is probably what I'm messing up.

Thanks for explaining! I'm not a coder at all, but I've been Lego'ing Drupal for a long time.

πŸ‡ΊπŸ‡ΈUnited States wattdesigns

UGGGGGG! Now I can't flush the cache without a Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[40001]: Serialization failure: white screen of death.

πŸ‡ΊπŸ‡ΈUnited States wattdesigns

OK! EUREKA! I got the module to be able to be enabled! I updated the info file to be the following:

name: Views Tab Signin
type: module
description: Views Tab for Signin
package: Contrib
core_version_requirement: ^9 || ^10

# Information added by Drupal.org packaging script on 2023-12-11
version: '1.0.0'
project: 'viewstabsignin'
datestamp: 1702287967

NOW, can I get the tab to show up????

πŸ‡ΊπŸ‡ΈUnited States wattdesigns

OK, so more details. I have a view with contexual filters that makes a signin sheet for a registration content type. Everything about the view works like a champ. The content type is referenced using /training/%/main and the view that I have has a path of /training/%/main/signin with the % being the node ID for the filter. Originally, I made a page display (that works) and use the path /training/%/main/signin and then made a default menu tab for it. Next, I copied that display and kept the same path, but made a menu tab for it. So if I go to /training/169/main I see no tabs, and if I go to /training/169/main/signin I get to see my view filtered by node 169 PLUS it has two menu tabs at the top. That's my best case so far.

So, next I made a module called viewstabsignin to allow for other modules for other tabs. I created a directory and called it it viewtabsignin. Next I created a file called viewstabsignin.info.yml and put it in the directory. That file is pasted below:

name: Views Tab Signin
type: module
description: My custom module for Drupal 10 to add a views tab parent menu
package: Custom
version: 1.x
core: 10.x
dependencies:
- drupal:views

Next I made a file called viewstabsignin.links.menu.yml in that directory. It includes this:

viewstabsignin.link_id:
title: Sign-in
route_name: view.registration_lists.sign-in
menu_name: signin
weight: 99

I updated the title, the route_name to match my view, the menu_name to be what I wanted it to say, and left the Weight for now.

When I upload that to my modules directory, I get white screens when trying to view modules.

That's where I'm stuck. I'll look around for a better sample info file.

πŸ‡ΊπŸ‡ΈUnited States wattdesigns

This was so much easier in Drupal 7. Sigh. I'm sure there's a super cool reason they changed this, but it's sure frustrating.

πŸ‡ΊπŸ‡ΈUnited States wattdesigns

I got a WSOD when I uploaded my module. Looks like my error is The 'core_version_requirement' key must be present???

πŸ‡ΊπŸ‡ΈUnited States wattdesigns

Thank you so much for the SUPER Quick reply. Could you please build it out a bit? So, I can create a file named that, with the code you posted (altered to fit my titles), but what do I do with it then? Thank you so much!

πŸ‡ΊπŸ‡ΈUnited States wattdesigns

So, here's my problem. I'm having the exact same issue as above except I don't know how to fix it. I have a page view and have tried numerous configurations on the menu tabs/default menu tabs and I can make the page show up if I manually type in the menu link. However, the tabs do NOT appear on the main parent page, but they DO show up on the direct loading of the view page. So, basically, my menu tabs show up on the view that I am viewing, but not on the page before that (the one I want a link to take me to the view).

Summary, my menu tabs show up on the page that if clicked, they would go to, but not the page before that so you don't have to manually put in the view link.

Hopefully that makes sense as my brain is all fuzzy trying numerous configurations for days now. Please help!!!!

Production build 0.71.5 2024