rapasoft Posted November 1, 2011 Share Posted November 1, 2011 Hello, I am using 1.3 version of Prestashop to manage e-shop with more than 90 000 books. I am having problem editing product in back office - after clicking on "save" i get broken page (see attachement) and changes are not saved. I checked error log and there were no php errors (php error displaying is on), it just freezes in this state. Does anyone know where can be the problem? Thanks in advance. Link to comment Share on other sites More sharing options...
rapasoft Posted November 2, 2011 Author Share Posted November 2, 2011 please, anyone? i am desperate here, i don't know what to do or what can I try to sort this out.. Link to comment Share on other sites More sharing options...
rapasoft Posted November 29, 2011 Author Share Posted November 29, 2011 I've done some digging in code and found out something... When I press "Save" in Back Office, these lines of code (in AdminProducts.php) are executed: public function submitAddproduct($token = NULL) { global $currentIndex; $className = 'Product'; $rules = call_user_func(array($this->className, 'getValidationRules'), $this->className); ... ... ... After the call_user_func is called, the function ObjectModel.php class is executed static public function getValidationRules($className = __CLASS__) { $object = new $className(); return array( 'required' => $object->fieldsRequired, 'size' => $object->fieldsSize, 'validate' => $object->fieldsValidate, 'requiredLang' => $object->fieldsRequiredLang, 'sizeLang' => $object->fieldsSizeLang, 'validateLang' => $object->fieldsValidateLang); } And right after creating instance of $className it just dies, I don't know why, but it fails to create a new instance of Product. If someone knows any hints please fill free to write them, I am being really desperate... Link to comment Share on other sites More sharing options...
razaro Posted November 29, 2011 Share Posted November 29, 2011 Try to turn debug mode on by changing this line in config/config.inc.php to @ini_set('display_errors', 'on'); Then check if some error appears when you save products. If you maybe get similar error like in this post try to set memory_limit and max_execution_time. Link to comment Share on other sites More sharing options...
rapasoft Posted December 25, 2011 Author Share Posted December 25, 2011 Try to turn debug mode on by changing this line in config/config.inc.php to @ini_set('display_errors', 'on'); Then check if some error appears when you save products. If you maybe get similar error like in this post try to set memory_limit and max_execution_time. Thanks for reply! I tried to turn on every debugging there is in the shop (even SQL errors), but there aren't any errors or even warnings, I've checked the error.log and nothing is there... I've already have the highest possible memory and execution time limits set that my hosting provides. I'll try to dig up more if possible 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