Hello, I try to configure the connection between 1C 8.3.9 enterprise with the configuration 11.2 trade management (empty training configuration) and ocStore 2.1.0.1 with the module Data exchange with 1C v8.x. Stopped already at the stage of creating an exchange node in 1C. I enter the domain and the path to the exchang.php file in the address field. I also enter the login and password (I can’t understand - this is the password and the login that you specified when accessing the admin panel or the one you registered in the exchange module itself). When I try to test the connection I get an error that could not establish a connection. An error has occurred. Failed to get data from server. Check the correctness of the server address, port, user name, password, as well as the settings for connecting to the Internet. Authorization failed. Check username and password. As a start, at least configure the connection. With 1C sign superficially. In which direction should you dig and where you can view connection errors in 1C.
|
1 answer
Solutions can be many. But the following helped me:
Add an authorization string to .htaccess
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]Check the file in the export directory at the beginning of the code for the presence of lines:
$remote_user = $_SERVER["REMOTE_USER"] ? $_SERVER["REMOTE_USER"] : $_SERVER["REDIRECT_REMOTE_USER"]; $strTmp = base64_decode(substr($remote_user,6)); if ($strTmp) list($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW']) = explode(':', $strTmp);
|