How to enable error and exception logging in Magento2?
I am unable to see any type of error in magento2. i am implementing custom payment gateway but when i add a dropdown list in backend admin panel of magento2 At that time its shows blank page and when i console it shows only 500 internal server error.
magento2 error api payment
add a comment |
I am unable to see any type of error in magento2. i am implementing custom payment gateway but when i add a dropdown list in backend admin panel of magento2 At that time its shows blank page and when i console it shows only 500 internal server error.
magento2 error api payment
Have you checked the logs? It's probably invalid XML configuration. Validate your files against the provided schema
– Robbie Averill
Dec 21 '15 at 10:32
from where i can check the logs
– Ayush Mittal
Dec 21 '15 at 10:49
in path : ------- /var/www/html/magento/var/log
– Ayush Mittal
Dec 21 '15 at 10:50
Possible duplicate : magento.stackexchange.com/questions/62405/…
– Abdul
Dec 21 '15 at 13:12
add a comment |
I am unable to see any type of error in magento2. i am implementing custom payment gateway but when i add a dropdown list in backend admin panel of magento2 At that time its shows blank page and when i console it shows only 500 internal server error.
magento2 error api payment
I am unable to see any type of error in magento2. i am implementing custom payment gateway but when i add a dropdown list in backend admin panel of magento2 At that time its shows blank page and when i console it shows only 500 internal server error.
magento2 error api payment
magento2 error api payment
edited Dec 21 '15 at 13:20
Rakesh Jesadiya
28.6k1571119
28.6k1571119
asked Dec 21 '15 at 10:30
Ayush MittalAyush Mittal
1951415
1951415
Have you checked the logs? It's probably invalid XML configuration. Validate your files against the provided schema
– Robbie Averill
Dec 21 '15 at 10:32
from where i can check the logs
– Ayush Mittal
Dec 21 '15 at 10:49
in path : ------- /var/www/html/magento/var/log
– Ayush Mittal
Dec 21 '15 at 10:50
Possible duplicate : magento.stackexchange.com/questions/62405/…
– Abdul
Dec 21 '15 at 13:12
add a comment |
Have you checked the logs? It's probably invalid XML configuration. Validate your files against the provided schema
– Robbie Averill
Dec 21 '15 at 10:32
from where i can check the logs
– Ayush Mittal
Dec 21 '15 at 10:49
in path : ------- /var/www/html/magento/var/log
– Ayush Mittal
Dec 21 '15 at 10:50
Possible duplicate : magento.stackexchange.com/questions/62405/…
– Abdul
Dec 21 '15 at 13:12
Have you checked the logs? It's probably invalid XML configuration. Validate your files against the provided schema
– Robbie Averill
Dec 21 '15 at 10:32
Have you checked the logs? It's probably invalid XML configuration. Validate your files against the provided schema
– Robbie Averill
Dec 21 '15 at 10:32
from where i can check the logs
– Ayush Mittal
Dec 21 '15 at 10:49
from where i can check the logs
– Ayush Mittal
Dec 21 '15 at 10:49
in path : ------- /var/www/html/magento/var/log
– Ayush Mittal
Dec 21 '15 at 10:50
in path : ------- /var/www/html/magento/var/log
– Ayush Mittal
Dec 21 '15 at 10:50
Possible duplicate : magento.stackexchange.com/questions/62405/…
– Abdul
Dec 21 '15 at 13:12
Possible duplicate : magento.stackexchange.com/questions/62405/…
– Abdul
Dec 21 '15 at 13:12
add a comment |
2 Answers
2
active
oldest
votes
Go inside root pub/errors
folder,
Just copy local.xml.sample to local.xml
Also you can enable display_errors
from app/bootstrap.php
file. At line no. 11 remove #
from the start of the line.
Now the final statement displays as ini_set('display_errors', 1);
How we can do the same things at Magento cloud environment as they are write protected.
– Sumit Verma
Oct 26 '18 at 6:39
add a comment |
The techniques provided by magestore to debug https://www.magestore.com/magento-2-tutorial/debug-technique-in-magento-2/
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%2f94530%2fhow-to-enable-error-and-exception-logging-in-magento2%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Go inside root pub/errors
folder,
Just copy local.xml.sample to local.xml
Also you can enable display_errors
from app/bootstrap.php
file. At line no. 11 remove #
from the start of the line.
Now the final statement displays as ini_set('display_errors', 1);
How we can do the same things at Magento cloud environment as they are write protected.
– Sumit Verma
Oct 26 '18 at 6:39
add a comment |
Go inside root pub/errors
folder,
Just copy local.xml.sample to local.xml
Also you can enable display_errors
from app/bootstrap.php
file. At line no. 11 remove #
from the start of the line.
Now the final statement displays as ini_set('display_errors', 1);
How we can do the same things at Magento cloud environment as they are write protected.
– Sumit Verma
Oct 26 '18 at 6:39
add a comment |
Go inside root pub/errors
folder,
Just copy local.xml.sample to local.xml
Also you can enable display_errors
from app/bootstrap.php
file. At line no. 11 remove #
from the start of the line.
Now the final statement displays as ini_set('display_errors', 1);
Go inside root pub/errors
folder,
Just copy local.xml.sample to local.xml
Also you can enable display_errors
from app/bootstrap.php
file. At line no. 11 remove #
from the start of the line.
Now the final statement displays as ini_set('display_errors', 1);
edited Nov 28 '17 at 11:20
7ochem
5,72193668
5,72193668
answered Dec 21 '15 at 13:26
Rakesh JesadiyaRakesh Jesadiya
28.6k1571119
28.6k1571119
How we can do the same things at Magento cloud environment as they are write protected.
– Sumit Verma
Oct 26 '18 at 6:39
add a comment |
How we can do the same things at Magento cloud environment as they are write protected.
– Sumit Verma
Oct 26 '18 at 6:39
How we can do the same things at Magento cloud environment as they are write protected.
– Sumit Verma
Oct 26 '18 at 6:39
How we can do the same things at Magento cloud environment as they are write protected.
– Sumit Verma
Oct 26 '18 at 6:39
add a comment |
The techniques provided by magestore to debug https://www.magestore.com/magento-2-tutorial/debug-technique-in-magento-2/
add a comment |
The techniques provided by magestore to debug https://www.magestore.com/magento-2-tutorial/debug-technique-in-magento-2/
add a comment |
The techniques provided by magestore to debug https://www.magestore.com/magento-2-tutorial/debug-technique-in-magento-2/
The techniques provided by magestore to debug https://www.magestore.com/magento-2-tutorial/debug-technique-in-magento-2/
answered 2 days ago
zuber bandizuber bandi
493
493
add a comment |
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%2f94530%2fhow-to-enable-error-and-exception-logging-in-magento2%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
Have you checked the logs? It's probably invalid XML configuration. Validate your files against the provided schema
– Robbie Averill
Dec 21 '15 at 10:32
from where i can check the logs
– Ayush Mittal
Dec 21 '15 at 10:49
in path : ------- /var/www/html/magento/var/log
– Ayush Mittal
Dec 21 '15 at 10:50
Possible duplicate : magento.stackexchange.com/questions/62405/…
– Abdul
Dec 21 '15 at 13:12