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
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
Hi there,
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.
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:
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!
Thanks, it works now.
One more problem we’re facing, when we try to ‘edit’ a customer we get the following error message:
https://pastebin.com/xq3V8TUt
Hi there,
- 1 exception(s):
- 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.
Hi,
just to make sure. does it mean I have to change all ‘frontend_input’ with the value ‘select’ or ‘multiselect’ to ‘text’?
Best regards
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
Hallo,
we did the migration again and this time around, as a customer it’s not possible to log into its own account.
Do you know why it’s like that?
Best regards
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.