Magento Asked by EK. on December 2, 2020
If I click “Submit Review” button,
I am getting error :
“We can’t post your review right now.”
Seems this SQL error
Missed data form some REVIEW* tables.
Maybe after cleanup test data :)
Solution - setup fresh & clean Magento 2.
Copy SQL export of data for tables review_status & review_entity,
import to DB of Magento with review bug.
But be carefull with SQL query.
Answered by Alex on December 2, 2020
Need more detail regarding this. This message is custom not actual. So for debugging purpose can you write a core file and update original error message here?
Line 69: add $e->getMessage() which is original exception. Now should looks like:
} catch (Exception $e) {
$this->reviewSession->setFormData($data);
$this->messageManager->addError(__('We can't post your review right now.'.$e->getMessage()));
}
$this->reviewSession->setFormData($data);
if (is_array($validate)) {
foreach ($validate as $errorMessage) {
$this->messageManager->addError($errorMessage);
}
} else {
$this->messageManager->addError(__('We can't post your review right now. --- TEST'));
}
Note: After you got an actual exception, then please undo your core change with the original code. Core file modification is not good.
Answered by Sohel Rana on December 2, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP