claybourg Posted November 23, 2013 Share Posted November 23, 2013 (edited) All the sudden I can't add new products in the back office. Add new category works however. I replaced psadmin, controllers>admin and upgraded to 1.5.6.1 and neither works I can't either modify an existing product, the menu does not load. http://screencast.com/t/XRV4euSow Edited November 23, 2013 by claybourg (see edit history) Link to comment Share on other sites More sharing options...
claybourg Posted November 24, 2013 Author Share Posted November 24, 2013 This is killing me. I've spent the whole day working on this issue, still don't understand. I have even restored a backup from a week ago which I'm 100% certain was working and it does not work now. It's not the computer either, it's doing it with my other computer. Adding and changing categories work fine though. this is driving me crazy. Link to comment Share on other sites More sharing options...
vekia Posted November 24, 2013 Share Posted November 24, 2013 if you see white page, please turn on error reporting. then instead of white background you will see error code (what and where doesn't work) Link to comment Share on other sites More sharing options...
claybourg Posted November 24, 2013 Author Share Posted November 24, 2013 Did you mean php error reporting? If so I have it on and it's not showing anything. Or debug console http://screencast.com/t/VB2Q7Q3Xh Which I can't turn on, it won't save. The warning link on top does not open either. Link to comment Share on other sites More sharing options...
vekia Posted November 24, 2013 Share Posted November 24, 2013 check please also browser console log output, in chrome: ctrl+shift+j maybe there you will see some errors (while you trying to add product, or while you're on "add product" page) Link to comment Share on other sites More sharing options...
claybourg Posted November 24, 2013 Author Share Posted November 24, 2013 (edited) What I did now is install a brand new version and I copied the files over my install. Adding product worked again but once I changed the database credentials to access the live db again I can't login to admin anymore. I tried copy/past the hash from a new password and although that worked to connect as a customer it did not to admin. Now I have to figure that one out. Edited November 24, 2013 by claybourg (see edit history) Link to comment Share on other sites More sharing options...
claybourg Posted November 24, 2013 Author Share Posted November 24, 2013 I managed to log back in admin with the live db and again I can't add/modify products. It worked with the exact same install (besides settings.inc.php) and the blank db so there must be something wrong with the db and not the script. Link to comment Share on other sites More sharing options...
claybourg Posted November 25, 2013 Author Share Posted November 25, 2013 The browser console output is as following http://screencast.com/t/ymDKQBC4C7iG The add category button which works shows the following http://screencast.com/t/1XrDoXdavou4 to compare. I replaced gamification module, controllers/admin and js/ still not working Link to comment Share on other sites More sharing options...
vekia Posted November 25, 2013 Share Posted November 25, 2013 no jquery library included, are you able to verify page source, check jquery library (jquery-1.7.2.min.js) there must be code like this (or something very similar)<script type="text/javascript" src="../js/jquery/jquery-1.7.2.min.js"></script> Link to comment Share on other sites More sharing options...
claybourg Posted November 25, 2013 Author Share Posted November 25, 2013 This is all I can see, I don't know if the source is missing or just not displaying http://screencast.com/t/YJzo79hid http://screencast.com/t/hQLteYUuQ0G Link to comment Share on other sites More sharing options...
claybourg Posted November 25, 2013 Author Share Posted November 25, 2013 There is definitely something going on with JS because the stats of the front BO page do not load either. Today I created a 1.5.6.1 version from scratch and hooked up my 1.5.6.0 live db and the all the JS stuff worked. What I don't understand is that even after replacing the JS folder from a fresh install it was still not working. Link to comment Share on other sites More sharing options...
claybourg Posted November 26, 2013 Author Share Posted November 26, 2013 I understand what happened now as I just reproduced it on a fresh install. Module Prestashop Cleaner, click Check/Fix and boom, JS does not work anymore. Link to comment Share on other sites More sharing options...
claybourg Posted November 26, 2013 Author Share Posted November 26, 2013 (edited) OMG, 3 days working on this issue pulling my hair I finally found it. While I maintain the above post about the cleaner and I don't know if it is related or not but I found that when the site URL is set up as it should http://screencast.com/t/blDtnVIz JS then the BO java scripts do not work. When however these settings are set as SITE IP ADDRESS SITE IP ADDRESS PUBLIC FOLDER/PRESTASHOP/ then everything works fine in the back office, not the front office then since there is an htaccess redirect. That's why when I was using a brand new install everything was working until I hooked up the live DB which had the working site URL in it and I thought the DB was damaged somewhere. Now however I don't know why this is happening, neither how to fix it. Edited November 26, 2013 by claybourg (see edit history) Link to comment Share on other sites More sharing options...
claybourg Posted November 26, 2013 Author Share Posted November 26, 2013 What i found out is that anything but my live URL works. For example if I enter "claybourg.com" instead of "www.claybourg.com", then java script works fine in the back office. Front office of course returns a 404 error. Any idea what could cause this issue? I've entered a ticket with my host as well but if it is not server related they won't help. Link to comment Share on other sites More sharing options...
Recommended Posts