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

Marquee sign letters

How to infer difference of population proportion between two groups when proportion is small?

Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?

Where did Ptolemy compare the Earth to the distance of fixed stars?

Why did Bronn offer to be Tyrion Lannister's champion in trial by combat?

Is the time—manner—place ordering of adverbials an oversimplification?

.bashrc alias for a command with fixed second parameter

Flight departed from the gate 5 min before scheduled departure time. Refund options

Why are current probes so expensive?

How to achieve cat-like agility?

malloc in main() or malloc in another function: allocating memory for a struct and its members

How does TikZ render an arc?

Weaponising the Grasp-at-a-Distance spell

Are there any irrational/transcendental numbers for which the distribution of decimal digits is not uniform?

Besides transaction validation, are there any other uses of the Script language in Bitcoin

Why do C and C++ allow the expression (int) + 4*5?

How to make an animal which can only breed for a certain number of generations?

Diophantine equation 3^a+1=3^b+5^c

Keep at all times, the minus sign above aligned with minus sign below

How do you cope with tons of web fonts when copying and pasting from web pages?

Random body shuffle every night—can we still function?

Is there a spell that can create a permanent fire?

Table formatting with tabularx?

Can gravitational waves pass through a black hole?



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;








1















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










share|improve this question
















bumped to the homepage by Community 3 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

















1















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










share|improve this question
















bumped to the homepage by Community 3 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













1












1








1








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










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 3 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 3 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

















  • 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










1 Answer
1






active

oldest

votes


















0














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())

);





share 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())

);





share 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)  










0












0








0







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())

);





share 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())

);






share|improve this answer














share|improve this answer



share|improve this answer








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

















  • 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

















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Magento 2 duplicate PHPSESSID cookie when using session_start() in custom php scriptMagento 2: User cant logged in into to account page, no error showing!Magento duplicate on subdomainGrabbing storeview from cookie (after using language selector)How do I run php custom script on magento2Magento 2: Include PHP script in headerSession lock after using Cm_RedisSessionscript php to update stockMagento set cookie popupMagento 2 session id cookie - where to find it?How to import Configurable product from csv with custom attributes using php scriptMagento 2 run custom PHP script

Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

How to solve knockout JS error in Magento 2 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?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2