Cash Posted November 2, 2008 Share Posted November 2, 2008 As far as I know I am entering everything correctly. Upon trying to save a new product, I get the message:“1 error an error occurred while creating object product”I am not told why I am getting this error. I searched through these forums and found one other people who received this message. They had a problem when updating their prestashop, but I believe I have the latest version. I prepared for an update following the steps in the wiki for updating, but then I realized I had 1.0.0 and there was nothing to update to. I need to have this store up and running asap, but without being able to save products I'm stuck here. All help is greatly appreciated.Thanks,Jon Link to comment Share on other sites More sharing options...
Cash Posted November 4, 2008 Author Share Posted November 4, 2008 Does anyone know of a reason? I would love to use prestashop for my new store, I think the back office design is magnificent, but if I can't manage to fix this problem I will be trying magento next. Link to comment Share on other sites More sharing options...
rawkinrich Posted December 3, 2008 Share Posted December 3, 2008 I'll be surprised if you get a reply mate Link to comment Share on other sites More sharing options...
Gregory Roussac Posted December 3, 2008 Share Posted December 3, 2008 Well because it s hard to tell without debugging. Somewhere in the code is a instance of a product that receives not expeted data. The error message is not very explicit I agree, and saving a product is a crucial point.If you need it running asap, well give a try to beta 3 ! Regards Link to comment Share on other sites More sharing options...
jhnstcks Posted December 4, 2008 Share Posted December 4, 2008 I had the same problem when I installed beta3 and was told my database wasnt not up-to-date, so I reinstalled everything. Link to comment Share on other sites More sharing options...
dtbaker Posted February 25, 2009 Share Posted February 25, 2009 Found the problem!my customer has been trying for a week to insert a product called "Cacsade Bonsai Pot" and it has been throwing this cryptic error message: " an error occurred while creating object product "I upgraded his version of prestashop, and it was still causing issues.Finally tracked the problem down It's in prestashops query blacklist checker: private static $_blacklist = 'UNION|LOAD_FILE|OUTFILE|DUMPFILE|ESCAPED|TERMINATED|CASCADE|INFILE|X509|TRIGGER|REVOKE'; public static function blacklist(&$query) { return eregi(self::$_blacklist, $query) ? true : false; } It thinks the "Cascade" in the product name & description is a harmful SQL query! The solution is:* SHRUG *I've just removed "CASCADE" from the blacklist checker so my customer can create this product, hopefully newer versions of prestashop will have a nicer sql parser, possibly something that strips out all user values between "[^"]*" or '[^']*' before checking the query. ? Dave Link to comment Share on other sites More sharing options...
she Posted June 15, 2011 Share Posted June 15, 2011 on what file can i get this blacklist? 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