magento2 – Magento 2 Redirect and display error in all admin page after click on “sign in”

I am trying to login in admin but it display “There has been an error processing your request”.

It generate error in like “Undefined offset: 2 in C:xampphtdocsm24libinternalMagentoFrameworkEncryptionEncryptor.php on line 591”

Also try to create new user and login but that solution is not working in my case. Note that I am using magento 2.4. Thanks in advance.

Admin > Customers > All Customers > Edit Customer: > left hand tab "Account Information"

How can I populate this field so it’s filled in when a customer creates an account?

enter image description here

the name is customer[account_number]

I have a field above which is a duplicate but we call it something different and it populates correctly.

The name of that input is name="customer[parent_customer_id]"

Even know it’s redundant I want both fields to populate. What file and where should i be editing to populate customer[account_number] in it’s respective field.

php – How to link directly to custom customer tab in admin

I’ve created a custom tab that displays some information in the Customer Admin section. I’m just curious if there’s a way to link directly to this tab so it’s opened on page load.

I don’t want it the default active tab, but just a way to link directly to it and it would be active on page load.

Here’s how I created the tab:

MyCompany/MyModule/view/adminhtml/layout/customer_index_edit.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  <head>
    <css src="https://magento.stackexchange.com/MyCompany_MyModule::css/styles.css"/>
  </head>
  <body>
    <referenceBlock name="customer_form">
      <block class="MyCompanyMyModuleBlockAdminCustomerTabCustomTab" name="customer_custom_tab" cacheable="false">
        <arguments>
          <argument name="tab_label" xsi:type="string" translate="true">Custom Tab</argument>
          <argument name="sort_order" xsi:type="number">50</argument>
        </arguments>
      </block>
    </referenceBlock>
  </body>
</page>

MyCompany/MyModule/Block/Admin/Customer/Tab/CustomTab.php

<?php

namespace MyCompanyMyModuleBlockAdminCustomerTab;

class CustomTab extends MagentoBackendBlockTemplate implements MagentoUiComponentLayoutTabsTabInterface
{
  protected $_template = 'customer/customtab.phtml';

  public function __construct(
    MagentoBackendBlockTemplateContext $context,
    MagentoFrameworkRegistry $registry,
    array $data = ()
  ) {
    $this->_coreRegistry = $registry;
    parent::__construct($context, $data);
  }

  public function getCustomerId()
  {
    return $this->_coreRegistry->registry(MagentoCustomerControllerRegistryConstants::CURRENT_CUSTOMER_ID);
  }

  public function getTabLabel()
  {
    return __('Custom Tab');
  }

  public function getTabTitle()
  {
    return __('Custom Tab');
  }

  public function canShowTab()
  {
    if ($this->getCustomerId()) {
      return true;
    }
    return false;
  }

  public function isHidden()
  {
    if ($this->getCustomerId()) {
      return false;
    }
    return true;
  }

  public function getTabClass()
  {
    return '_active';
  }

  public function getTabUrl()
  {
    return '';
  }

  public function isAjaxLoaded()
  {
    return false;
  }

}

This correctly displays my custom customer tab with content from customtab.phtml file. Just not sure how to set this tab as active via direct url.

Server Trafficweb :- 2x Intel Xeon CPU | 8 User MAX | 64 GB RAM | 1 Gbps Full Duplex | Admin Encoding RDP | Storage RDP

Live Chat:- https://www.servertrafficweb.com/
Contact Us:- contact@servertrafficweb.com
Stay Connected with Skype:-
live: servertrafficweb

{
“lightbox_close”: “Close”,
“lightbox_next”: “Next”,
“lightbox_previous”: “Previous”,
“lightbox_error”: “The requested content cannot be loaded. Please try again later.”,
“lightbox_start_slideshow”: “Start slideshow”,
“lightbox_stop_slideshow”: “Stop slideshow”,
“lightbox_full_screen”: “Full screen”,
“lightbox_thumbnails”: “Thumbnails”,
“lightbox_download”: “Download”,
“lightbox_share”: “Share”,
“lightbox_zoom”: “Zoom”,
“lightbox_new_window”: “New window”,
“lightbox_toggle_sidebar”: “Toggle sidebar”
}

FVgsoId.jpg



Live Chat:- https://www.servertrafficweb.com/
Contact Us:- (COLOR=rgb(65…(/B)

Read more