Magento2 : Something went wrong while saving the rule data. Please review the error log Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Magento Coupon codes although deleted already, doesn't allow to create coupon with same code againSomething went wrong while installing sample data. Please check var/log/system.log for details during Magento installationMagento2 Something went wrong while saving the pageSomething went wrong while saving the category Magento 2while saving image with other field data getting error in custom module magento 2Cart price rule is not aplying in case of customer segment conditions in magento2 admin order creationSomething went wrong while saving the category in Magento 2Something went wrong while saving the new password Magento 2Something went wrong while saving this configuration Warning: is_file() expects parameter 1 to be a valid path, stringmulti language create store view issue
Do i imagine the linear (straight line) homotopy in a correct way?
What should one know about term logic before studying propositional and predicate logic?
How many time has Arya actually used Needle?
How can I prevent/balance waiting and turtling as a response to cooldown mechanics
By what mechanism was the 2017 UK General Election called?
My mentor says to set image to Fine instead of RAW — how is this different from JPG?
Is a copyright notice with a non-existent name be invalid?
Why can't fire hurt Daenerys but it did to Jon Snow in season 1?
How is the policy gradient calculated in REINFORCE?
Dinosaur Word Search, Letter Solve, and Unscramble
Random body shuffle every night—can we still function?
How to resize main filesystem
Why not use the yoke to control yaw, as well as pitch and roll?
malloc in main() or malloc in another function: allocating memory for a struct and its members
Can two people see the same photon?
How to name indistinguishable henchmen in a screenplay?
Meaning of 境 in その日を境に
How to make triangles with rounded sides and corners? (squircle with 3 sides)
Marquee sign letters
How could a hydrazine and N2O4 cloud (or it's reactants) show up in weather radar?
Fit odd number of triplets in a measure?
Understanding piped commands in GNU/Linux
Why does BitLocker not use RSA?
Determine whether an integer is a palindrome
Magento2 : Something went wrong while saving the rule data. Please review the error log
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Magento Coupon codes although deleted already, doesn't allow to create coupon with same code againSomething went wrong while installing sample data. Please check var/log/system.log for details during Magento installationMagento2 Something went wrong while saving the pageSomething went wrong while saving the category Magento 2while saving image with other field data getting error in custom module magento 2Cart price rule is not aplying in case of customer segment conditions in magento2 admin order creationSomething went wrong while saving the category in Magento 2Something went wrong while saving the new password Magento 2Something went wrong while saving this configuration Warning: is_file() expects parameter 1 to be a valid path, stringmulti language create store view issue
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have Magento2 version 2.1.8, when I tried to create new cart price rules after entering all info it doesn't get saved and shows error.
"Something went wrong while saving the rule data. Please review the
error log."
Kindly guide me I am beginner in Mangeto.
Thanks
magento2 shopping-cart-price-rules coupon-codes
bumped to the homepage by Community♦ 21 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have Magento2 version 2.1.8, when I tried to create new cart price rules after entering all info it doesn't get saved and shows error.
"Something went wrong while saving the rule data. Please review the
error log."
Kindly guide me I am beginner in Mangeto.
Thanks
magento2 shopping-cart-price-rules coupon-codes
bumped to the homepage by Community♦ 21 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
You need to first get the error from the /var/log/exception.log file and post it so we can see what is happening.
– BAF
Dec 12 '17 at 11:01
Post your save >> execute() and die before save()
– Ronak Chauhan
Dec 12 '17 at 11:22
add a comment |
I have Magento2 version 2.1.8, when I tried to create new cart price rules after entering all info it doesn't get saved and shows error.
"Something went wrong while saving the rule data. Please review the
error log."
Kindly guide me I am beginner in Mangeto.
Thanks
magento2 shopping-cart-price-rules coupon-codes
I have Magento2 version 2.1.8, when I tried to create new cart price rules after entering all info it doesn't get saved and shows error.
"Something went wrong while saving the rule data. Please review the
error log."
Kindly guide me I am beginner in Mangeto.
Thanks
magento2 shopping-cart-price-rules coupon-codes
magento2 shopping-cart-price-rules coupon-codes
edited Dec 12 '17 at 12:43
Sarfaraj
405518
405518
asked Dec 12 '17 at 10:54
Awais KhanAwais Khan
6311
6311
bumped to the homepage by Community♦ 21 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 21 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
You need to first get the error from the /var/log/exception.log file and post it so we can see what is happening.
– BAF
Dec 12 '17 at 11:01
Post your save >> execute() and die before save()
– Ronak Chauhan
Dec 12 '17 at 11:22
add a comment |
You need to first get the error from the /var/log/exception.log file and post it so we can see what is happening.
– BAF
Dec 12 '17 at 11:01
Post your save >> execute() and die before save()
– Ronak Chauhan
Dec 12 '17 at 11:22
You need to first get the error from the /var/log/exception.log file and post it so we can see what is happening.
– BAF
Dec 12 '17 at 11:01
You need to first get the error from the /var/log/exception.log file and post it so we can see what is happening.
– BAF
Dec 12 '17 at 11:01
Post your save >> execute() and die before save()
– Ronak Chauhan
Dec 12 '17 at 11:22
Post your save >> execute() and die before save()
– Ronak Chauhan
Dec 12 '17 at 11:22
add a comment |
1 Answer
1
active
oldest
votes
A good trick is to search the GitHub repository for Magento 2 for the error strings which will lead you to the classes - this error string appears in two classes. One related to catalog rules and another related to quote - which I would guess would be what we're looking for).
The error is being generated by a catch all Exception block inside this class:
magento2/app/code/Magento/SalesRule/Controller/Adminhtml/Promo/Quote/Save.php
(or /vendor/magento/module-sales-rule/Controller/Adminhtml/Promo/Quote/Save.php)
Line ~102 depending on version:
} catch (Exception $e)
$this->messageManager->addError(
__('Something went wrong while saving the rule data. Please review the error log.')
);
I know it's forbidden to play with core, but sometimes these things get a bit annoying - and the update should be temporary only for debugging purposes, unless you need to provide a proper error message to an external system, in which case you'd probably override the method. if you're not on a production server you could try to back up the above file, then add an $e->getMessage() to the error output so you can immediately know why this is failing.
(Since you're a beginner - I would suggest checking the log file and reporting back to us instead of doing this)
catch (Exception $e)
$this->messageManager->addError(
__('Something went wrong while saving the rule data. Please review the error log. ERROR: %1', $e->getMessage())
);
A good trick is to search the GitHub repository for Magento 2 for the error strings which will lead you to the classes - this error string appears in two classes. One related to catalog rules and another related to quote - which I would guess would be what we're looking for).
The error is being generated by a catch all Exception block inside this class:
magento2/app/code/Magento/SalesRule/Controller/Adminhtml/Promo/Quote/Save.php
(or /vendor/magento/module-sales-rule/Controller/Adminhtml/Promo/Quote/Save.php)
Line ~102 depending on version:
catch (Exception $e)
$this->messageManager->addError(
__('Something went wrong while saving the rule data. Please review the error log.')
);
I know it's forbidden to play with core, but sometimes these things get a bit annoying - and the update should be temporary only for debugging purposes, unless you need to provide a proper error message to an external system, in which case you'd probably override the method. if you're not on a production server you could try to back up the above file, then add an $e->getMessage() to the error output so you can immediately know why this is failing.
(Since you're a beginner - I would suggest checking the log file and reporting back to us instead of doing this)
catch (Exception $e)
$this->messageManager->addError(
__('Something went wrong while saving the rule data. Please review the error log. ERROR: %1', $e->getMessage())
);
A good trick is to search the GitHub repository for Magento 2 for the error strings which will lead you to the classes - this error string appears in two classes. One related to catalog rules and another related to quote - which I would guess would be what we're looking for).
The error is being generated by a catch all Exception block inside this class:
magento2/app/code/Magento/SalesRule/Controller/Adminhtml/Promo/Quote/Save.php
(or /vendor/magento/module-sales-rule/Controller/Adminhtml/Promo/Quote/Save.php)
Line ~102 depending on version:
catch (Exception $e)
$this->messageManager->addError(
__('Something went wrong while saving the rule data. Please review the error log.')
);
I know it's forbidden to play with core, but sometimes these things get a bit annoying - and the update should be temporary only for debugging purposes, unless you need to provide a proper error message to an external system, in which case you'd probably override the method. if you're not on a production server you could try to back up the above file, then add an $e->getMessage() to the error output so you can immediately know why this is failing.
(Since you're a beginner - I would suggest checking the log file and reporting back to us instead of doing this)
catch (Exception $e) {
$this->messageManager->addError(
__('Something went wrong while saving the rule data. Please review the error log. ERROR: %1', $e->getMessage())
);
edited Dec 12 '17 at 11:28
answered Dec 12 '17 at 11:12
BAFBAF
461415
461415
guys it was permission issue which were causing this error. Thanks for your support
– Awais Khan
Dec 12 '17 at 12:07
add a comment |
guys it was permission issue which were causing this error. Thanks for your support
– Awais Khan
Dec 12 '17 at 12:07
guys it was permission issue which were causing this error. Thanks for your support
– Awais Khan
Dec 12 '17 at 12:07
guys it was permission issue which were causing this error. Thanks for your support
– Awais Khan
Dec 12 '17 at 12:07
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%2f205466%2fmagento2-something-went-wrong-while-saving-the-rule-data-please-review-the-er%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
You need to first get the error from the /var/log/exception.log file and post it so we can see what is happening.
– BAF
Dec 12 '17 at 11:01
Post your save >> execute() and die before save()
– Ronak Chauhan
Dec 12 '17 at 11:22