Coming soon, fast templates with an unlimited number of modules for 1 UAH/order

What if not works or you get the error "username not found" in the module "data Sharing" for an online store

Before reading further, please upgrade to module data Exchange version 87, which includes several treatments such a situation and the problem will go away. If You already version 87 or higher, read on.

Often the problem arises in the result of php in CGI mode. In this mode, there are problems with data transfer HTTP authorization in php. The problem can be circumvented, but it is necessary that the server was handling is enabled .htaccess support and mod_rewrite.

So we find in the root of your site file .htaccess find in it the line RewriteEngine on and add after it the following statement:

RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]

If you find the following lines in the same file, then salmeterola them, they turn off mod_rewrite, and we do not need.

# # RewriteEngine Off #

If you still do not want work authorization, then you need to contact the hoster and ask him to see what's wrong. For details you can refer to this article.

If your hosting provider requires you to details that you can't provide, you can always use the paid technical support.

There is another way.

In the beginning of the file /export/exchange1c.php add the following code to get the following:

<?php $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); // Version define('VERSION', '1.5.4.1');

Next, at the end of the .htaccess file located in the root of the store, add the line:

RewriteRule. * - [E = HTTP_AUTHORIZATION:% {HTTP: Authorization}, L]

This will allow you to organize HTTP authorization, even if it is disabled on the host.

Related products