Magento 2 - setup troubleshoot

  1. Make sure you have the latest version of the plugin.
    We recommend installing the plugin using Composer, as it will always be the latest version available.
    Click here for setup instructions using Composer.
  2. If you got the latest plugin version installed and while trying to connect the store to Remarkety you are getting "Request failed. Could not connect to store" error, that means that Remarkety is not able to connect to your store API.
    1. Make sure your domain is publicly available, Remarkety will try to connect the store's domain to read from it's API endpoints.
    2. If you are using Apache as your web server, it might be stripping some HTTP headers from incoming requests, especially the "Authorization" header which is required for Magento 2 API authentication.
      To solve this please edit the .htaccess file found on your Magento's root folder, and add the following lines:

      RewriteCond %{HTTP:Authorization} ^(.*)
      RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
      You should add these lines before Magento's rewrite rules, so it should look something like this:

      <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /

      #Prevent Apache from removing Authorization header
      RewriteCond %{HTTP:Authorization} ^(.*)
      RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

      #Magento
      RewriteRule ^index\.php$ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]
      </IfModule>

If you still having any issues please don't hesitate to contact us.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.