n13design Posted December 19, 2014 Share Posted December 19, 2014 After I edit a product I chose Save and Stay. However it does not stay. It takes me to the main product list in the back office. Then when I attempt to search for the product it does not display in the search. The page still exists for the product though. It just doesn't show up in search or the store's product list. So I went back into the product and tried to re-save it. I then relieve two errors: Products must be in at least one category. This product must be in the default category. But categories have been chosen for the product and are checked. I clicked on the dropdown for the default category and clicked save-stay and it stayed after saving. Then it shows back up in the search. What's going on? Link to comment Share on other sites More sharing options...
El Patron Posted December 19, 2014 Share Posted December 19, 2014 login to your hosting control panel look for 'logs' find error_log I suspect that there is error, maybe mod_security.... if you do not see error that might be related then follow this then repeat save and see if error produced. Link to comment Share on other sites More sharing options...
n13design Posted December 30, 2014 Author Share Posted December 30, 2014 (edited) I've been doing more troubleshooting. I think it has something to do with the tabs. Here's the information I have so far. The only repeating error I see in the cpanel is for tinymice about a missing image. I'm testing this on my local server too. I have a javascript error on the page only in Local server. I don't have any of these javascript errors on the live site. TypeError: undefined is not a functionIn localhost admin directory: index.php?controller=AdminProducts&id_product=381&updateproduct&token=db9cc925382ce7b08431a359ca19ac55:1119:24In localhost admin directory: index.php?controller=AdminProducts&id_product=381&updateproduct&token=db9cc925382ce7b08431a359ca19ac55:1119:24In localhost main directory: js/jquery/jquery-1.11.0.min.js:3:8066 n.event.dispatch()In localhost main directory: js/jquery/jquery-1.11.0.min.js:3:4774 r.handle() When we click save/stay the page sometimes does not stay and takes us to the product list. When this happens the product is not searchable. It is still listed in the category lists. In the Database the only difference I see is that the column "index" is set to 0 when before it was 1. We sometimes get a pop up error that says some Tabs have not been loaded correctly. If we click cancel then try to save we recieve an error stating link_rewrite is required at least in English. If we click OK then try to save we receive two errors: Products must be in at least one category. and This product must be in the default category. The links are in English. The products already have categories selected. The only way I've been able to force it to save is by hitting save and stay a few times Edited December 30, 2014 by n13design (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted December 30, 2014 Share Posted December 30, 2014 I've seen this issue and sometimes it can be resolved as follows http://screencast.com/t/J9EbcGVlf note: not all hosting will honor this directive (which gets put into the .htaccess file), but from forum the tab issue has generally been related to mod_security. Link to comment Share on other sites More sharing options...
n13design Posted December 30, 2014 Author Share Posted December 30, 2014 (edited) I selected yes to disable and the issue persists. We have hostgator. When I logged into the WHM it offered on the start screen to enable or not ModSecurity. I selected no thanks. But I can see the ModSecurity and ModSecurity Tools in the options. I don't see an enable/disable option exactly. I'm not sure if I can confirm it's turned off. EDIT: I found the list of features and I can confirm it's not selected but I can still access the tool and see current data. Not sure if it's completely off. QUESTION: 1. In the ModSecurity section of the WHM it lists some attacks. If ModSecurity was stopping this then shouldn't I keep it active? I see PHPMyadmin script attacks and PHP attacks 2. If ModSecurity was the issue shouldn't it work on my local host? Edited December 30, 2014 by n13design (see edit history) Link to comment Share on other sites More sharing options...
n13design Posted December 30, 2014 Author Share Posted December 30, 2014 In the PrestaShop Error Log it says: Severity: 1 Message: Production edition Object type: Product Object ID: 9 Error Code 0x 0 There's over 5000 errors. How can I clear them out? Link to comment Share on other sites More sharing options...
cille5 Posted December 30, 2014 Share Posted December 30, 2014 I got that same problem but, not always. Maybe 1/15 product I add. Link to comment Share on other sites More sharing options...
El Patron Posted December 31, 2014 Share Posted December 31, 2014 I selected yes to disable and the issue persists. We have hostgator. When I logged into the WHM it offered on the start screen to enable or not ModSecurity. I selected no thanks. But I can see the ModSecurity and ModSecurity Tools in the options. I don't see an enable/disable option exactly. I'm not sure if I can confirm it's turned off. EDIT: I found the list of features and I can confirm it's not selected but I can still access the tool and see current data. Not sure if it's completely off. QUESTION: 1. In the ModSecurity section of the WHM it lists some attacks. If ModSecurity was stopping this then shouldn't I keep it active? I see PHPMyadmin script attacks and PHP attacks 2. If ModSecurity was the issue shouldn't it work on my local host? what is your exact ps version, I agree with you one item 2, if also on localhost then sounds like native issue. with ps version possible we can find fix in forge Link to comment Share on other sites More sharing options...
n13design Posted December 31, 2014 Author Share Posted December 31, 2014 We are using 1.6.0.6. I noticed a fix for the tab loading in the latest release. Unfortunately the site has been seriously customized and upgrading will not be easy. I'm working on creating the site properly. The previous developer did not use overrides and instead directly edited the PS files. Link to comment Share on other sites More sharing options...
El Patron Posted December 31, 2014 Share Posted December 31, 2014 We are using 1.6.0.6. I noticed a fix for the tab loading in the latest release. Unfortunately the site has been seriously customized and upgrading will not be easy. I'm working on creating the site properly. The previous developer did not use overrides and instead directly edited the PS files. ave maria pues (OMG in ColOmbian Spanish), sorry about your version. it's a mess...upgrading even without native changes can be very challenging. If you can find specific fixes for 1606 then you can apply. Or you can hire 'hot shot' to fix, that is what I would do in job offers. There are some 'very' excellent developers that work for very reasonable fee. Note: I don't do all the work required for ps, sometimes I hire it out. My understanding is that next release is going to help address PrestaShop playing nicely with mod_expires which is all the rage now for hosting companies, simply because of all the hacking going on. Link to comment Share on other sites More sharing options...
n13design Posted December 31, 2014 Author Share Posted December 31, 2014 I'm going to work on upgrading to the latest version. There's some other issues we are having and hopefully that will fix them. 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