Mac Group Posted May 5, 2015 Share Posted May 5, 2015 Hi Everyone. Im totally new to prestashop. Im using prestashop 1.6.0.14 I cant seem to add a product, each time i try i get this message "An error occurred while creating an object.product I wanted to change to look of my shop, so i bought a template through the add on market place. I installed the demo site files as i wanted it to look exactly the same as the template did. But i just cant seem to add any products, can someone pleaseeeeeee help...i noticed at the bottom of the page it said some files were missing, is this the problem? (please see attached screen shot) Link to comment Share on other sites More sharing options...
NemoPS Posted May 6, 2015 Share Posted May 6, 2015 ignore the missing files. Turn on dev mode as described in my signature, see if you get anything more explanatory when adding a product Link to comment Share on other sites More sharing options...
Mac Group Posted May 6, 2015 Author Share Posted May 6, 2015 Hello Nemo Thanks for the response, ok i manage to do what you asked, please see attached image of what came up. Link to comment Share on other sites More sharing options...
NemoPS Posted May 13, 2015 Share Posted May 13, 2015 It seems the ps_pack table is missing a column, add it as 10 long INT type in phpmyadmin Link to comment Share on other sites More sharing options...
medinattor Posted May 27, 2015 Share Posted May 27, 2015 Hi there.. Nemo1, you are master dude.. Im having similar issue.. can you translate this? Ihopefully you can help me..Regards Unknown column 'last_connection_date' in 'where clause' UPDATE `ps_employee` SET `last_connection_date` = CURRENT_DATE() WHERE `id_employee` = 0 AND `last_connection_date`< CURRENT_DATE() at line 646 in file classes/db/Db.php 641. WebserviceRequest::getInstance()->setError(500, ' '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);642. }643. elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))644. {645. if ($sql)646. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');647. throw new PrestaShopDatabaseException($this->getMsgError());648. }649. }650.651. /** DbCore->displayError - [line 340 - classes/db/Db.php] - [1 Arguments] DbCore->query - [line 480 - classes/db/Db.php] - [1 Arguments] DbCore->execute - [line 460 - classes/Employee.php] - [1 Arguments] EmployeeCore::setLastConnectionDate - [line 2458 - classes/controller/AdminController.php] - [1 Arguments] AdminControllerCore->init - [line 163 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] Link to comment Share on other sites More sharing options...
NemoPS Posted May 29, 2015 Share Posted May 29, 2015 Add this last_connection_date As new column in the database, ps_employee table, type should be datetime Link to comment Share on other sites More sharing options...
sbv Posted October 3, 2016 Share Posted October 3, 2016 I am encountering the same issue. I have succesfully been uploading products up til 157 items. Within this period i have been making necessary setups at the back-end to suit the condition of my website. I am new to prestashop. recently i tried to continue uploading more products but i started getting error (An error occurred while creating an object. product). I practically do not know what to do because i have not even done any backup to restore to an earlier stage. I need this error cleared so that i can continue uploading more products. Link to comment Share on other sites More sharing options...
rocky Posted October 4, 2016 Share Posted October 4, 2016 I guess there's an error in the SQL query when creating the product. Try editing config/defines.inc.php and changing the value of _PS_DEV_MODE_ from false to true and hopefully you'll see the whole SQL query and error message that we can use to debug. Link to comment Share on other sites More sharing options...
servetsarap Posted May 26, 2018 Share Posted May 26, 2018 Hello, I also have same problem. I enabled dev mode and error is this: How can I solve this? Thanks. Link to comment Share on other sites More sharing options...
NemoPS Posted May 30, 2018 Share Posted May 30, 2018 Very odd, it looks like some module called related products or something like that, and likely hooking to the adminproductscontroller, is causing it. Can you try disabling such a module if so? Link to comment Share on other sites More sharing options...
servetsarap Posted June 13, 2018 Share Posted June 13, 2018 Hello, I have solved the problem. Yes the problem was caused by the overrides of a module named Related Products. I deleted those files and it started to work correctly. 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