Not able to access the extension in CMS

Getting the error with popup asking for user/pass:
AUTHENTICATION REQUIRED:
You must sign in with your Magento 2 admin credentials to use our UB Data Migration Pro tool.
Please press F5 or tab UB Data Migration Pro icon on the Admin sidebar to proceed to the log in form.
——--
I tried the solution mentioned in https://www.ubertheme.com/question/login-doesnt-work/ but it is still showing the popup asking for user/pass.

4 answers

Profile photo of ubdev Staff 98150.00 $tone July 26, 2020
Public

Hi there, 
So, that’s is strange. Please help to provide us the following credentials, we will check and get back to you then: 

  • URL and admin credentials of your M2 instance
  • SSH credentials of your M2 instance
  • Let us know the path to your M2 folder

Please make sure you mark your ticket private, or simply switch this ticket to the private mode. Then it’s safe to share your info here, only you and our technical team can access it. 
Regards,
Ubertheme team
 

#1
Profile photo of Mall Staff 184060.00 $tone July 27, 2020
Public

Hi there,
To save your time, please try with the 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();
}
}
*/

And then check the issue you mentioned again. And let me know how it goes then.

Regards,
Mall.

#2
Profile photo of ubdev Staff 98150.00 $tone July 27, 2020
Public

Hi there, 
Yes, please move forward with the migration process at your end. 
If possible, please proceed with the official migration to save your time. In case you run across any issue, please do let us know we will work closely with you. 
Regards,
Ubertheme team

#4

Please login or Register to Submit Answer

Written By

Comments