M2: Issue with setup multilanguage on second domainMagento 2 multi Store issueMagento 2 Multi-site second site domain not workingCan't get customerId when magento tried to retrieveGetting 404 Error on Second Domain - Magento 2 Multi-StoreBuilding multi stores with multi domains but get 500Not able to add/update magento2 category post upgrade from 1.9 to 2.1.0magento 2 multiple store views with sub domain urlMagento Core doesnt work after transferMagento 2 connection after movingMagento 2.2.3 cron Errors how to solve?
Is there any easy technique written in Bhagavad GITA to control lust?
Generic lambda vs generic function give different behaviour
Is this Spell Mimic feat balanced?
Is it correct to write "is not focus on"?
Hostile work environment after whistle-blowing on coworker and our boss. What do I do?
Increase performance creating Mandelbrot set in python
Was the picture area of a CRT a parallelogram (instead of a true rectangle)?
Can somebody explain Brexit in a few child-proof sentences?
Student evaluations of teaching assistants
Is the destination of a commercial flight important for the pilot?
How can I use the arrow sign in my bash prompt?
There is only s̶i̶x̶t̶y one place he can be
How does residential electricity work?
What is the opposite of 'gravitas'?
Stereotypical names
How will losing mobility of one hand affect my career as a programmer?
Is there a good way to store credentials outside of a password manager?
Is there a problem with hiding "forgot password" until it's needed?
Is there an Impartial Brexit Deal comparison site?
Teaching indefinite integrals that require special-casing
How can I get through very long and very dry, but also very useful technical documents when learning a new tool?
If you attempt to grapple an opponent that you are hidden from, do they roll at disadvantage?
How do I define a right arrow with bar in LaTeX?
Do there exist finite commutative rings with identity that are not Bézout rings?
M2: Issue with setup multilanguage on second domain
Magento 2 multi Store issueMagento 2 Multi-site second site domain not workingCan't get customerId when magento tried to retrieveGetting 404 Error on Second Domain - Magento 2 Multi-StoreBuilding multi stores with multi domains but get 500Not able to add/update magento2 category post upgrade from 1.9 to 2.1.0magento 2 multiple store views with sub domain urlMagento Core doesnt work after transferMagento 2 connection after movingMagento 2.2.3 cron Errors how to solve?
We have created multilanguage for multi website.
On main domain work correct, but after set second domain then impossible open website (on main domain everything is ok).
An error has happened during application run. See exception log for details. Could not write error message to log. Please use developer mode to see the message.
log:
[2019-03-22 14:18:04] main.CRITICAL: No such entity. "exception":"[object] (Magento\Framework\Exception\NoSuchEntityException(code: 0): No such entity. at /home/zabezcen/domains/zabezcen.pl/public_html/vendor/magento/module-store/Model/WebsiteRepository.php:80)" [] [2019-03-22 14:18:21] main.CRITICAL: No such entity. "exception":"[object] (Magento\Framework\Exception\NoSuchEntityException(code: 0): No such entity. at /home/zabezcen/domains/zabezcen.pl/public_html/vendor/magento/module-store/Model/WebsiteRepository.php:80)" []
update:
.htaccess
SetEnvIf Host zabezcen.com MAGE_RUN_CODE=en
SetEnvIf Host zabezcen.com MAGE_RUN_TYPE=website
update2:
For test I deleted from .htaccess
SetEnvIf Host zabezcen.com MAGE_RUN_CODE=en
SetEnvIf Host zabezcen.com MAGE_RUN_TYPE=website
Now, when I enter:
mywebsite.com then redirect to main domain mywebsite.pl ?SID=tc7cmm5bc6t884j77i1gcbdu17
But when I enter mywebsite.com/en/ Then everything works correctly
So now, how to set after open website mywebsite.com redirect to mywebsite.com/en/
magento2
add a comment |
We have created multilanguage for multi website.
On main domain work correct, but after set second domain then impossible open website (on main domain everything is ok).
An error has happened during application run. See exception log for details. Could not write error message to log. Please use developer mode to see the message.
log:
[2019-03-22 14:18:04] main.CRITICAL: No such entity. "exception":"[object] (Magento\Framework\Exception\NoSuchEntityException(code: 0): No such entity. at /home/zabezcen/domains/zabezcen.pl/public_html/vendor/magento/module-store/Model/WebsiteRepository.php:80)" [] [2019-03-22 14:18:21] main.CRITICAL: No such entity. "exception":"[object] (Magento\Framework\Exception\NoSuchEntityException(code: 0): No such entity. at /home/zabezcen/domains/zabezcen.pl/public_html/vendor/magento/module-store/Model/WebsiteRepository.php:80)" []
update:
.htaccess
SetEnvIf Host zabezcen.com MAGE_RUN_CODE=en
SetEnvIf Host zabezcen.com MAGE_RUN_TYPE=website
update2:
For test I deleted from .htaccess
SetEnvIf Host zabezcen.com MAGE_RUN_CODE=en
SetEnvIf Host zabezcen.com MAGE_RUN_TYPE=website
Now, when I enter:
mywebsite.com then redirect to main domain mywebsite.pl ?SID=tc7cmm5bc6t884j77i1gcbdu17
But when I enter mywebsite.com/en/ Then everything works correctly
So now, how to set after open website mywebsite.com redirect to mywebsite.com/en/
magento2
add a comment |
We have created multilanguage for multi website.
On main domain work correct, but after set second domain then impossible open website (on main domain everything is ok).
An error has happened during application run. See exception log for details. Could not write error message to log. Please use developer mode to see the message.
log:
[2019-03-22 14:18:04] main.CRITICAL: No such entity. "exception":"[object] (Magento\Framework\Exception\NoSuchEntityException(code: 0): No such entity. at /home/zabezcen/domains/zabezcen.pl/public_html/vendor/magento/module-store/Model/WebsiteRepository.php:80)" [] [2019-03-22 14:18:21] main.CRITICAL: No such entity. "exception":"[object] (Magento\Framework\Exception\NoSuchEntityException(code: 0): No such entity. at /home/zabezcen/domains/zabezcen.pl/public_html/vendor/magento/module-store/Model/WebsiteRepository.php:80)" []
update:
.htaccess
SetEnvIf Host zabezcen.com MAGE_RUN_CODE=en
SetEnvIf Host zabezcen.com MAGE_RUN_TYPE=website
update2:
For test I deleted from .htaccess
SetEnvIf Host zabezcen.com MAGE_RUN_CODE=en
SetEnvIf Host zabezcen.com MAGE_RUN_TYPE=website
Now, when I enter:
mywebsite.com then redirect to main domain mywebsite.pl ?SID=tc7cmm5bc6t884j77i1gcbdu17
But when I enter mywebsite.com/en/ Then everything works correctly
So now, how to set after open website mywebsite.com redirect to mywebsite.com/en/
magento2
We have created multilanguage for multi website.
On main domain work correct, but after set second domain then impossible open website (on main domain everything is ok).
An error has happened during application run. See exception log for details. Could not write error message to log. Please use developer mode to see the message.
log:
[2019-03-22 14:18:04] main.CRITICAL: No such entity. "exception":"[object] (Magento\Framework\Exception\NoSuchEntityException(code: 0): No such entity. at /home/zabezcen/domains/zabezcen.pl/public_html/vendor/magento/module-store/Model/WebsiteRepository.php:80)" [] [2019-03-22 14:18:21] main.CRITICAL: No such entity. "exception":"[object] (Magento\Framework\Exception\NoSuchEntityException(code: 0): No such entity. at /home/zabezcen/domains/zabezcen.pl/public_html/vendor/magento/module-store/Model/WebsiteRepository.php:80)" []
update:
.htaccess
SetEnvIf Host zabezcen.com MAGE_RUN_CODE=en
SetEnvIf Host zabezcen.com MAGE_RUN_TYPE=website
update2:
For test I deleted from .htaccess
SetEnvIf Host zabezcen.com MAGE_RUN_CODE=en
SetEnvIf Host zabezcen.com MAGE_RUN_TYPE=website
Now, when I enter:
mywebsite.com then redirect to main domain mywebsite.pl ?SID=tc7cmm5bc6t884j77i1gcbdu17
But when I enter mywebsite.com/en/ Then everything works correctly
So now, how to set after open website mywebsite.com redirect to mywebsite.com/en/
magento2
magento2
edited yesterday
Sylvester
asked yesterday
SylvesterSylvester
739216
739216
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
Make sure you've set values for $MAGE_RUN_TYPE
and $MAGE_RUN_CODE
in your vhost file.
It depends on your website/store
configuration, but it could be for example:
$MAGE_RUN_TYPE = "website"
$MAGE_RUN_CODE = "my_second_website_code_from_store_website_table"
yes I think you have right and correct way. Can you please check my topic update? I have configured it this way. What should the code look like in .hta?
– Sylvester
yesterday
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f267303%2fm2-issue-with-setup-multilanguage-on-second-domain%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Make sure you've set values for $MAGE_RUN_TYPE
and $MAGE_RUN_CODE
in your vhost file.
It depends on your website/store
configuration, but it could be for example:
$MAGE_RUN_TYPE = "website"
$MAGE_RUN_CODE = "my_second_website_code_from_store_website_table"
yes I think you have right and correct way. Can you please check my topic update? I have configured it this way. What should the code look like in .hta?
– Sylvester
yesterday
add a comment |
Make sure you've set values for $MAGE_RUN_TYPE
and $MAGE_RUN_CODE
in your vhost file.
It depends on your website/store
configuration, but it could be for example:
$MAGE_RUN_TYPE = "website"
$MAGE_RUN_CODE = "my_second_website_code_from_store_website_table"
yes I think you have right and correct way. Can you please check my topic update? I have configured it this way. What should the code look like in .hta?
– Sylvester
yesterday
add a comment |
Make sure you've set values for $MAGE_RUN_TYPE
and $MAGE_RUN_CODE
in your vhost file.
It depends on your website/store
configuration, but it could be for example:
$MAGE_RUN_TYPE = "website"
$MAGE_RUN_CODE = "my_second_website_code_from_store_website_table"
Make sure you've set values for $MAGE_RUN_TYPE
and $MAGE_RUN_CODE
in your vhost file.
It depends on your website/store
configuration, but it could be for example:
$MAGE_RUN_TYPE = "website"
$MAGE_RUN_CODE = "my_second_website_code_from_store_website_table"
edited yesterday
St3phan
1,9901236
1,9901236
answered yesterday
dudziodudzio
1138
1138
yes I think you have right and correct way. Can you please check my topic update? I have configured it this way. What should the code look like in .hta?
– Sylvester
yesterday
add a comment |
yes I think you have right and correct way. Can you please check my topic update? I have configured it this way. What should the code look like in .hta?
– Sylvester
yesterday
yes I think you have right and correct way. Can you please check my topic update? I have configured it this way. What should the code look like in .hta?
– Sylvester
yesterday
yes I think you have right and correct way. Can you please check my topic update? I have configured it this way. What should the code look like in .hta?
– Sylvester
yesterday
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f267303%2fm2-issue-with-setup-multilanguage-on-second-domain%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown