AnimalInstinct Posted February 10, 2016 Share Posted February 10, 2016 I have new clear shop installed 1.6.1.4, PHP 5.4, shared hosting When i am trying to add product, i got errors in my console: GET http://anirionline.com/aniriadmin/index.php?controller=AdminProducts&token=…uleTmproductvideos&updateproduct&ajax=1&rand=1455088907252&_=1455088888947 508 (unused) and Uncaught TypeError: Cannot read property 'replace' of undefined pointed on line 177 in products.js current_tab = $(request.responseText).filter('.product-tab').attr('id').replace('product-', ''); I got infinite loading spin Link to comment Share on other sites More sharing options...
NemoPS Posted February 10, 2016 Share Posted February 10, 2016 can you check what the response is in the network tab? Link to comment Share on other sites More sharing options...
AnimalInstinct Posted February 10, 2016 Author Share Posted February 10, 2016 Link to comment Share on other sites More sharing options...
AnimalInstinct Posted February 10, 2016 Author Share Posted February 10, 2016 Link to comment Share on other sites More sharing options...
AnimalInstinct Posted February 10, 2016 Author Share Posted February 10, 2016 It was issue in server config, deal not in Prestashop I have shared hosting and support dont want to tell me what was that Link to comment Share on other sites More sharing options...
mumumat Posted April 17, 2016 Share Posted April 17, 2016 (edited) Hi, I have the same problem (I work on Prestashop 1.6.1.4 too) : I'de like to add new products, the page display but I can't record because the button "Record" remains tipsy and I get infinite loading spin like you... I tried on Chrome, Firefox on different PC but the problem persists. I also emptied the mask. On my console the problem seems to come from the line 177 of the code on "product.js" file : "uncaugh TypeError: cannot read property 'replaces' of undefined. That also posts me an error 503. I'm novice in coding, can you explain to me how you managed to unlock this ? Thank you very much ! Mathieu Edited April 17, 2016 by mumumat (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted April 18, 2016 Share Posted April 18, 2016 Do you have any module hooking there?here is the error('.product-tab').attr('id').replace... It means something is missing the id attribute Link to comment Share on other sites More sharing options...
mumumat Posted April 18, 2016 Share Posted April 18, 2016 Hi Nemo1, Thank you for your answer. I have a module, I tried to deactivate it but my problem remains the same. When I used PS for the first time 4 weeks ago, I managed to add a new product. Since then, I modified nothing on my BO or updated something, so I don't understand why id attribute is missing now. Do you know how I can see where it is missing? ('.product-tab').attr('id').replace... I don't understand which manipulation I have to make.... Link to comment Share on other sites More sharing options...
NemoPS Posted April 20, 2016 Share Posted April 20, 2016 In the bo, you have a list of tabs on the right side, click on each. What appears on the right after clicking is the product-tab thing. One of them is missing the id Link to comment Share on other sites More sharing options...
Harry Posted December 15, 2019 Share Posted December 15, 2019 if someone is still having this problem, hier is what solved mine: Link to comment Share on other sites More sharing options...
selectshop.at Posted December 15, 2019 Share Posted December 15, 2019 @Harry- The best to avoid such old bugs is to install latest version of Prestashop 1.6.x series, or update your shop to the latest 1.6. on where this bug and others more where already debugged. 😉 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