MsrLeloup Posted November 28, 2010 Share Posted November 28, 2010 Hi all!I was almost done with my shop and template modifications when all of a sudden I stumbled into a "Fatal"-Error situation. I guess it has something to do with my products in the DB since if I delete every single one of them the site correctly displays (just with the expected and correct "No products available" message); If I just add one single product I stumble into an error, that I can't solve after hours trying to clean the database, settings and so on; judging from the Smarty Debug message I also don't have a clue where I could start searching;Does anybody have a clue why this might happen and what I could do to correct this?The site is currently running under xxxSmarty Debugging is onYour help is very much appreciated; I need this up and running for the XMas business!ChristianPS: running the latest Prestashop 1.3.2update: the same problem persists in the backoffice module where I don't see the "products of this category" dialogue anymore Link to comment Share on other sites More sharing options...
Yann - Prestaplugins Posted November 28, 2010 Share Posted November 28, 2010 You probably have a problem with your primary key in the database if you have deleted manually some products.You probably forgot some tables working with the product table, so your product id now start at position 1, because table is empty, whereas other table are probably not... Link to comment Share on other sites More sharing options...
razaro Posted November 28, 2010 Share Posted November 28, 2010 Did you tried to turn PrestaShop debug mode on by changing this code in config/config.inc.php /* Debug only */ @ini_set('display_errors', 'on'); So not smarty debug.And what was full text of that Fatal error. Link to comment Share on other sites More sharing options...
Yann - Prestaplugins Posted November 28, 2010 Share Posted November 28, 2010 You should turn on mysql_errors too. Link to comment Share on other sites More sharing options...
MsrLeloup Posted November 28, 2010 Author Share Posted November 28, 2010 I did turn error displays in config.inc on but it didn't change anything in the error message; still and just "fatal error"as for the primary key: is there a way to completely reset the DB into virgin state without necessarily losing all settings? i.e. I already tried emptying tables like addresses, carriers, taxes and so on but at no avail Link to comment Share on other sites More sharing options...
MsrLeloup Posted November 28, 2010 Author Share Posted November 28, 2010 if mysql errors are displayed via define('_PS_DEBUG_SQL_', true); in config.inc.php than its done Link to comment Share on other sites More sharing options...
Yann - Prestaplugins Posted November 28, 2010 Share Posted November 28, 2010 search for module "RAZ", with it you can empty table you want. Link to comment Share on other sites More sharing options...
MsrLeloup Posted November 28, 2010 Author Share Posted November 28, 2010 installed the RAZ module and did empty the tables with it; I could restart building categories and alike but as soon as I added the first product it broke again Link to comment Share on other sites More sharing options...
MsrLeloup Posted November 28, 2010 Author Share Posted November 28, 2010 got it back up and running but only after a new, clean install. Looks like that you were right and some manual corrections messed up the primary keys; tried long to "repair" the tables but re-install finally got me back onlinethanks anyhow for all of your help .... PS: ... now I am having another problem of another thing that already worked before ;-( 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