We cannot log into the Migration tool on admin page

Hi,
We just tried installing your data migration tool according to the readme file and ran into an issue. When we try opening the module in our admin environment we get a login prompt, when logging in with our admin account (same admin account that we use to access the admin panel) we still get the error. Please refer to screenshot.
https://imgur.com/fhbNMjh
Thank you in advance

9 answers

Profile photo of ubdev Staff 97910.00 $tone November 26, 2019
Public

Hi Alex, 
It seems you have bad data record associated with the ‘Vertex_tax’, please consider to follow the similar workaround that you mentioned: 

In a previous migration attempt we managed to get rid of this error by disabling the ‘Vertex_Tax’ module.

Regards,
Ubertheme team

#
Profile photo of Mall Staff 184060.00 $tone November 21, 2019
Public

Hi there,

View post on imgur.com

It seems your server has a special case of settings. Please do steps below:

+ Open the PHP file at: pub/ub-tool/protected/components/UserMenu.php
and find the code lines:

if (!isset($_SERVER['PHP_AUTH_USER'])) {
header('WWW-Authenticate:Basic realm="'.$msg1.'"');
header('HTTP/1.0 401 Unauthorized');
echo $msg2;
//throw new CHttpException(401, $msg2);
Yii::app()->end();
} else {
if (!UserMenu::authenticate($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'])) {
header('WWW-Authenticate:Basic realm="'.$msg1.'"');
header('HTTP/1.0 401 Unauthorized');
echo $msg2;
//throw new CHttpException(401, $msg2);
Yii::app()->end();
}
}

and replace it with:

/* if (!isset($_SERVER['PHP_AUTH_USER'])) {
header('WWW-Authenticate:Basic realm="'.$msg1.'"');
header('HTTP/1.0 401 Unauthorized');
echo $msg2;
//throw new CHttpException(401, $msg2);
Yii::app()->end();
} else {
if (!UserMenu::authenticate($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'])) {
header('WWW-Authenticate:Basic realm="'.$msg1.'"');
header('HTTP/1.0 401 Unauthorized');
echo $msg2;
//throw new CHttpException(401, $msg2);
Yii::app()->end();
}
} */

+ Once done, you can access our module in the backend without authentication as you mentioned.

Regards,
Mall.

#1
Profile photo of Alex Bisaliev 180.00 $tone November 26, 2019
Public

Hi,
It worked! We managed to migrate all of our data without any problems.
However, when we go to:
Stores > Configuration > Sales > Tax
We get the following error:

View post on imgur.com


 
In a previous migration attempt we managed to get rid of this error by disabling the ‘Vertex_Tax’ module. Is this a good idea or is there a better alternative?
 
Thank you!

#2
Profile photo of Mall Staff 184060.00 $tone November 26, 2019
Public

Hi there,

  1. 1 exception(s):
  2. Exception #0 (BadMethodCallException): Missing required argument $options of Magento\Eav\Model\Entity\Attribute\Source\Config.

That issue relates to a custom customer attribute which has ‘frontend_input’ type is ‘select/multiselect’ but the related backend_model/source_model hasn’t ready in your M2 yet. You can recheck this in the custom customer attributes in table eav_attribute in your M2 database. And you should update value of ‘frontend_input’ of these attribute to ‘text’ to get solve the issue.
Regards,
Mall.

#4
Profile photo of ubdev Staff 97910.00 $tone December 5, 2019
Public

Hi Alex, 

does it mean I have to change all ‘frontend_input’ with the value ‘select’ or ‘multiselect’ to ‘text’?

Yes, that’s right, you need to change all ‘fontend_input’, then clean Magento 2 cache. 
Regards,
Ubertheme team

#6
Profile photo of Mall Staff 184060.00 $tone December 18, 2019
Public

Hi Alex,

 as a customer it’s not possible to log into its own account.
Do you know why it’s like that?

Please make sure you did reindex the data after migrating. Also please cross check that you have correct customer credentials.
 
Beside, please check if the migrated customers belong to the default website of your current M2 instance.
 
Regards,
Mall.

#8

Please login or Register to Submit Answer

Written By

Comments