Mark Posted May 16, 2019 Posted May 16, 2019 (edited) Im unable to add new products or edit exisiting ones. I have a new installation of thirtybees. On the Catalog/ Products page upon submit of editted or new product I get: 2 errors Products must be in at least one category. This product must be in the default category. Edited May 16, 2019 by Mark
1 datakick Posted May 17, 2019 Posted May 17, 2019 7 hours ago, Mark said: Everything went well yesterday, however today it's not good @wakabayashi Ive cleared the entire cache/history everything, tried a totally unused browser. Still it will not work, same issues as yesterday before it was fixed. (fixing things as I did yesterday does not work today) EDIT Using Firebug I get these two errors ReferenceError: show_new_orders is not defined (notifications.js:57:3) ReferenceError: $ is not defined (dashgoals.js:163) There is really something very wrong with your site. More precisely, there is some cache somewhere that is returning non-thirtybees files. 1) Thirtybees contains notification.js file, but this file does not contains references to show_new_orders at all 2) thirtybees version of dashgoals.js javascript file contains this content on line 163: $months = $this->setMonths($year); As you can see, there is no reference to $, so the error can't be trigger. The only explanation is that something somewhere is returning old/prestashop versions of these files. Please make sure to 1) clear browser cache 2) clear server cache 3) clear any proxy server cache (nginx, cloudflare, or any other service that might be between your server and your browser) 1
1 wakabayashi Posted May 16, 2019 Posted May 16, 2019 Then threre could be an issue with your browser. Have you tried to delete your browser cache? You could also try to check browser console: https://kb.mailster.co/how-can-i-open-the-browsers-console/ If the console has errors, please make a screenshot of it. 1
1 Traumflug Posted May 16, 2019 Posted May 16, 2019 Also turn off the adblocker for the back office page. Can't do any good there.
0 wakabayashi Posted May 16, 2019 Posted May 16, 2019 @Mark do you use multistore feature? If yes, select the switch on the top, to update all fields...
0 Mark Posted May 16, 2019 Author Posted May 16, 2019 (edited) OK, I cant see where to edit/add categories. For a new user, its wee bit disconcerting to find a terminal issue in the Add Product basics section. It is awesome though to have two super fast responses thanks, no I havent yet enabled multistore @wakabayashi Edited May 16, 2019 by Mark Thank forum users
0 wakabayashi Posted May 16, 2019 Posted May 16, 2019 Dont you have the categories tab on the left side?
0 Mark Posted May 16, 2019 Author Posted May 16, 2019 (edited) Nope, this is what I'm seeing, Don't panic about the object in the middle of the page, that's just the screenshot software, its not in the middle of the page Edited May 16, 2019 by Mark image comment
0 wakabayashi Posted May 16, 2019 Posted May 16, 2019 Oh thats not how it should look like. Have you already created a category? You can do that in the main menu on the left side... Maybe that helps.
0 Mark Posted May 16, 2019 Author Posted May 16, 2019 1 minute ago, wakabayashi said: Oh thats not how it should look like. Have you already created a category? You can do that in the main menu on the left side... Maybe that helps. No, I can't see where to add categories @wakabayashi Here's a better picture
0 Mark Posted May 16, 2019 Author Posted May 16, 2019 (edited) Oh right, no there's nothing expanded at all under the Catalog menu. If I click on Catalog I just get this (In fact no left hand menus expand) Edited May 16, 2019 by Mark Noticed something else
0 Mark Posted May 16, 2019 Author Posted May 16, 2019 (edited) Removed debug code Edited May 16, 2019 by Mark Removed debug code as issue was found
0 Mark Posted May 16, 2019 Author Posted May 16, 2019 I think I might have solved the problem @wakabayashi Before I installed thirtybees I was using prestashop on exactly the same folder. Then I removed prestashop and installed thirtybees I suspect that's created a number of issues with cache, cookies etc. I did what you suggested and cleared the cache and now I can see many more items. I'll try this for a bit to make sure, but I think that was the problem 1
0 wakabayashi Posted May 16, 2019 Posted May 16, 2019 10 minutes ago, Mark said: I think I might have solved the problem @wakabayashi Before I installed thirtybees I was using prestashop on exactly the same folder. Then I removed prestashop and installed thirtybees I suspect that's created a number of issues with cache, cookies etc. I did what you suggested and cleared the cache and now I can see many more items. I'll try this for a bit to make sure, but I think that was the problem Yep thats likely to issue... Please dont' forget to update this thread later...
0 Mark Posted May 16, 2019 Author Posted May 16, 2019 (edited) Everything went well yesterday, however today it's not good @wakabayashi Ive cleared the entire cache/history everything, tried a totally unused browser. Still it will not work, same issues as yesterday before it was fixed. (fixing things as I did yesterday does not work today) EDIT Using Firebug I get these two errors ReferenceError: show_new_orders is not defined (notifications.js:57:3) ReferenceError: $ is not defined (dashgoals.js:163) Edited May 17, 2019 by Mark Clarification
0 Mark Posted May 17, 2019 Author Posted May 17, 2019 Top marks @datakick I never thought of cloudflare. Thanks! everything seems fine again.
0 datakick Posted May 17, 2019 Posted May 17, 2019 This gave me an idea for simple module to flush cloudflare cache (via api call) when store cache is cleared. 2
0 Mark Posted May 17, 2019 Author Posted May 17, 2019 5 minutes ago, datakick said: This gave me an idea for simple module to flush cloudflare cache (via api call) when store cache is cleared. Great idea. It would have saved me hours of trying to figure out the problem if I'd seen it. Is it possible to also flush the browser's cache?
Question
Mark
Im unable to add new products or edit exisiting ones. I have a new installation of thirtybees.
On the Catalog/ Products page upon submit of editted or new product I get:
2 errors
19 answers to this question
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