-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
impossible to assign products to category when error_reporting(0); #17
Comments
here's a proposal to solve this bug:
config.xml
EcomDev_UrlRewrite_Model_Observer:
what do you think? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've discovered a bug in this module: when error_reporting is set to false, aka
error_reporting(0);
in the index.php file and Catalog URL Rewrites index set as "Update on Save", it is impossible to assign or unassign products to category.Steps to reproduce:
Actual result:
the "Please Wait" loading div never disappear. Firebug console indicates:
Expected result:
the "Please Wait" loading div should disappear and the page should reload (native Magento behavior)
Why does this happen?
So far, this is what I have found out: the error is triggered in /lib/Varien/Db/Adapter/Pdo/Mysql.php, line 399:
the code gets there because it performs a truncate on
ecomdev_urlrewrite_root_category
and$this->getTransactionLevel()
returns 2 at this point. This value of 2 is becauseVarien_Db_Adapter_Pdo_Mysql::beginTransaction
is executed twice (first byMage_Catalog_Model_Category::saveAction
and then byMage_Catalog_Model_Category::_afterSave
) andVarien_Db_Adapter_Pdo_Mysql::commit
(which would decrease the_transactionLevel
value) is not executedThe text was updated successfully, but these errors were encountered: