Baby Moon Posted July 24, 2010 Share Posted July 24, 2010 Anybody can tell me that in v1.3.1.1, if (!is_object($cart)) die(Tools::displayError()); in Tax.php, getApplicableTax function, if the $cart is null, it will display "Hack Attempt", what's this purpose to do? because in MassUpdate, it displays "Hack Attempt". After I trace the program, it because when MassUpdate get product properties, it will check the $cart, but the $cart is null, because in back office there is no cart. so the error message ocurred.When I change the die statement to return false; it worked. So, the team can explain the usage of the code above, what purpose it does? in other occasion. Link to comment Share on other sites More sharing options...
My IT Guy Posted August 26, 2010 Share Posted August 26, 2010 Hi Chen,I suspect you might be having a similar problem as I did - a stored value is trying to look up an ID that no longer exists in the database.Hope that helps!Adam Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now