en Jump to content
  • 0
Vitalij Kazakevic

1.6.0.11 problem with saving products

Question

Hello,

 

after I upgraded my Prestashop v. 1.6.0.9 to v. 1.6.0.11, I fount problem - the button for saving (only in products) don't load (pls.find attached preview).

Maybe somebody know how can I solve these problem?

 

Thanks.

post-706990-0-27008400-1420792235_thumb.jpg

Share this post


Link to post
Share on other sites

387 answers to this question

Recommended Posts

  • 0

Important notice : 

 

Our awesome Jérôme just found the reason why this "Save" button was not working or taking forever to load. He is adding the fix in version 1.6.0.12 which will be released this week.

 

Please note that after you update to 1.6.0.12, saving your product might take 12 seconds for some of you who have "Evasive mode" activated on your server. The reason is: when you save your product, you send 12 requests (one for each tab of your product page) to your server and to prevent mod_evasiv DOSPageInterval to block your requests we must slip 1s between each call. If you want, you can contact your server administrator in order to change DOSPageInterval.

Share this post


Link to post
Share on other sites
  • 1

I'd suggest you to download the .11 package manually, grab all files under controllers/admin and re-upload them as fresh. See if it works. If not, try uploading the img folder as well, and the admin/themes as last resource as well

Share this post


Link to post
Share on other sites
  • 0

Having the same problem since upgrade.

 

Adding a product or changing the details of a previously saved product and the save&stay/save buttons take so long, approx. 1 min each time.

 

Uploaded and admin/controllers and made no difference, very frustrating.

Share this post


Link to post
Share on other sites
  • 0

still having very slow save time.

 

Have cleared the smarty cache etc but has made no difference, take so long now to add or update products.

 

Have currently only 435 products so this can't be the issue.

Share this post


Link to post
Share on other sites
  • 0

I am manually uploading img/, controllers/admin and admin/themes, but I have same problem - long time loading buttons in product. I have only 115 products.

In PS 1.6.0.9 buttons immediately loading.

Share this post


Link to post
Share on other sites
  • 0

I have same problem. I am new to prestashop. Since I was tired of many buggy e-commerce solutions, I switched

to prestashop. Till now everything worked fine and I could not believe that there is at last the product which really works.

After making some changes, I switched to adding products, but what I see is disabled save button. IS THAT JOKE?

Share this post


Link to post
Share on other sites
  • 0

Temporary solution is to place following code in any js file which is loaded in product edit page:

$('#product-informations .panel-footer .pull-right').prop( "disabled", false );

For example, I put code at the end of /admin262btyanm/themes/default/js/admin-theme.js

Share this post


Link to post
Share on other sites
  • 0

Hello,

 

Same here after Update from 1.5.6.0 to 1.6.0.11.

 

Buttons appears in product BO but does nothing when clicked :/

 

Quite annoying !

Share this post


Link to post
Share on other sites
  • 0

rytiz2873

 

I have turned on the debugging, as I am not a programmer, what am I looking for.

 

When I load a product it will take 1min 12secs for save or save and stay buttons to become active.  Looking at the results with the debug on nothing stands out as being particularly slow to load. I have a load time of 950ms

 

When I do eventually hit save it will take a further 54secs to return to the list of products. Here the load time goes up to 16161ms

Share this post


Link to post
Share on other sites
  • 0

In the Chrome java console :

 

 

 

Failed to load resource: net::ERR_CACHE_MISS

 

/adminFolder/index.php?controller=AdminProducts&id_product=xxx&updateproduct&token=xxxxxxxxxxxxx

 

I would guess that it's related to our problem somehow. But no clue what this means and how to fix.

 

Anyone ?

Edited by Guiom

Share this post


Link to post
Share on other sites
  • 0

Hi,

 

So we checked, double-checked and triple-checked and the save button is not buggy. We had two different opportunities to test shops that had the same issue as you : for the first one, the issue was fixed as soon as we deactivated an external module (can't remember which one, sorry) and for the second one it was a matter of poorly set up server. If you have a "nginx 502 bad gateway", it's very likely that it comes from your server and I suggest you contact your hosting provider or adminsys.

 

Hope that helps!

Share this post


Link to post
Share on other sites
  • 0

All non prestashop modules desactivated but problem is still here


 


Server : mutualisé OVH : Type d'offre : perf2014x1


Share this post


Link to post
Share on other sites
  • 0

Here is chrome console output:

Uncaught SyntaxError: Unexpected identifier
admin-products.js:690 Uncaught ReferenceError: languages is not defined
/admin262btyanm/index.php?controller=AdminProducts&addproduct&token=71ecb05a219a54f7f8585f70fd66c2c9 Failed to load resource: net::ERR_CACHE_MISS

Share this post


Link to post
Share on other sites
  • 0

Check the admin folder, this path:

 

 

\themes\default\template\controllers\products\helpers\form\form.tpl

 

Open the file and make sure you have var languages = new Array(); somewhere

Share this post


Link to post
Share on other sites
  • 0
Hello, yes I do (see below in red).

 

 

// if the tab has not already been loaded, load it now

tabs_manager.display(id, true);

 

tabs_manager.onLoad(id, function(){

$("#product-tab-content-"+id).show(0, function(){

$(this).trigger('displayed');

});

$("#link-"+id).addClass('active');

});

 

var languages = new Array();

if (btn_name == "Combinations")

{

$('#desc-product-new').hide();

$('#desc-product-newCombination').show();

populate_attrs();

}

else if (btn_name == "Attachments")

{

handleSaveButtons();

}

else

{

$('#desc-product-newCombination').hide();

// if pack is enabled, save button are visible only if pack is valid

if ($("input[name=id_product]").val() != 0 || btn_name != 'Informations')

handleSaveButtons();

}

 

$('.label-tooltip').tooltip();

});

 

$(".productTabs a.active").click();

 

// disable save if Associations tab is not loaded

if ($('#product-tab-content-Associations').hasClass('not-loaded'))

disableSave();

 

tabs_manager.onLoad('Associations', function(){

if ($("input[name=id_product]").val() != 0)

handleSaveButtons();

});

 

$('.confirm_leave').live('click', function(){

// Double quotes are necessary when the translated string has single quotes

return confirm("{l s='You will lose all unsaved modifications. Are you sure that you want to proceed?' js=1}");

});

 

$('#toolbar-footer').appendTo($('#product-tab-content-Informations').children('.product-tab'));

 

$('.product-tab-content').on('displayed', function(e) {

$('#toolbar-footer').appendTo($(this).children('.product-tab'));

});

 

});

Share this post


Link to post
Share on other sites
  • 0

Chrome java console output :

 

-- ON LOAD -- :
Resource interpreted as Script but transferred with MIME type text/html: "http://www.youradexchange.com/ad/display.php?r=32796".
VM44114:2
GET http://www.coeurdefoyer.fr/ThMs2010/image/png;base64,iVBORw0KGgoAAAANSUhEUg…X7Ovs1iDPMmFdrTlE6R5VOUZT5UaVTFGV+VOkURZmf/wCzLhL9F3cKDQAAAABJRU5ErkJggg== 403 (Forbidden)
wCzLhL9F3cKDQAAAABJRU5ErkJggg==:1
------------
-- ON Click (save) -- :
GET http://www.coeurdefoyer.fr/ThMs2010/image/png;base64,iVBORw0KGgoAAAANSUhEUg…X7Ovs1iDPMmFdrTlE6R5VOUZT5UaVTFGV+VOkURZmf/wCzLhL9F3cKDQAAAABJRU5ErkJggg== 403 (Forbidden)

------------

 

Edit : sorry this was related to a specific product with content image missing.

Else there's just no output.

 

Edit2 : On ie buttons are endlessly spinning.

Edited by Guiom

Share this post


Link to post
Share on other sites
  • 0

Hi. Thx for solution. I only replaced content of controlers/admin/ and it was OK. Only i have the same problem with saving time. But i have one idea - can be a problem with Max_execution_time? I have 30 sec now and presta show me it is not enough. I try tomorrow, what happens, if it will be more. I have not another idea then, it can be problem with script (...db) - and this is something what i absolutely dont understand.  :lol:

Share this post


Link to post
Share on other sites
  • 0

Updated my dev install from1.6.09 to 1.6.0.11 and there I have the endlessly spinning buttons in chrome ...

So for me it looks like problem is on both server prod. and dev but with slightly different effect on the buttons. Anyway the issue is the sema ... no product saving.

 

As Xavier said and since the symptome are slightly different from one person (install) to another I would accept that this could be a server problem/missconfiguration. But then what to check, what is required on server side dealing with those buttons method ???

Share this post


Link to post
Share on other sites
  • 0

Same problem here. 

Upgraded from 1.6.0.9 -> 1.6.0.11. 1-click upgrade.

 

"Save" and "Save and stay" buttons are disabled and spinning.

They spin very long -> about 30 seconds. So its very problematic to update hundreds of products. I have ca 4000 variations.

 

Reuploaded the folders - did not work.

 

Chrome says:

Failed to load resource: net::ERR_CACHE_MISS (Controller AdminProducts)

 

Firefox says:

mutating the [[Prototype]] of an object will cause your code to run very slowly; instead create the object with the correct initial [[Prototype]] value using Object.create d3.v3.min.js:3
 
Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help http://xhr.spec.whatwg.org/ jquery-1.11.0.min.js:4
 
Any help is appreciated!

Share this post


Link to post
Share on other sites
  • 0

Exact same problem here as well.

Upgraded from 1.6.0.9 > 1.6.0.11 with 1-click upgrade.  — could 1-click upgrade have caused the problem?

 

Save and Stay buttons disabled for 30 seconds — However, I cut the delay time down to 15 seconds by rebuilding my server with APC cache and enabling it.  We also implemented google mod_pagespeed at the same time.

 

Ran all the debugging modes and nothing stood out.

Share this post


Link to post
Share on other sites
  • 0

Still no solution for the Sava and Stay button delay but  !! Important note for those installing mod_pagespeed with Prestashop.  I had to edit my .htaccess file with the following to prevent page speed from rewriting the path to thumbnails in the product back office; image not available:

 

<IfModule pagespeed_module>

  ModPagespeed on
ModPagespeedDisableFilters inline_images,resize_images,trim_urls,rewrite_style_attributes_with_url,recompress_images,extend_cache,convert_meta_tags, 
ModPagespeedEnableFilters remove_comments,collapse_whitespace,rewrite_images,outline_javascript,remove_quotes,make_google_analytics_async,combine_javascript,inline_css,resize_mobile_images,pedantic,
</IfModule>

Share this post


Link to post
Share on other sites
  • 0

It's the same on a fresh install. It keeps spinning until all tabs are loaded, so open the console as soon as the product page is reached and tab to network. See how much it takes to load all tabs and which one eventually hangs. I'm pretty sure it's a measure taken to prevent the missing seo meta fields issue

Share this post


Link to post
Share on other sites
  • 0

Getting very frustrating using this now.

 

Have opened the console and tabbed to network. It took 2min 4 secs to load before the save become available.

 

I am no expert so don't know what it all means but every time it references the adminproductcontroller it take approx. 6 secs, this doesn't matter if it is for product_id, images, quantities etc.

 

Has anybody rolled back to 1.6.0.9 to see if there is any difference?

Share this post


Link to post
Share on other sites
  • 0

Hi guys,

anyone found a fix/workaround for this yet?? I have three subdomains 2 with upgrades 1.6.0.11 and 1 with fresh install 1.6.0.11.  I have created their individual db and imported, everything looks fine but I can not in any shop save a product after editing??  (save and save&stay button stuck in cont loop) no option to save edited product.

 

I have replaced all appropriate files as required(controllers, admin, img, overides ect) tried every combination can't get a product to save on any domain.  

 

Server information Linux #1 SMP Thu Dec 18 00:59:53 EST 2014 x86_64

Server software version Apache

PHP version 5.4.36

Memory limit 64M

Max execution time 60

 

Any help in this matter would be most appreciated as I am stumped!!!!!!!!!!!!

 

Cheers Dean0

Share this post


Link to post
Share on other sites
  • 0

I'm also having trouble with this version, but only in Chrome. IE is working fine.

Front page of admin panel is not loading properly (statistics and right side PS info),

 

2 errors in Chrome console:

 

 Uncaught TypeError: Cannot read property 'get' of undefined
jquery-1.11.0.min.js:2 Uncaught TypeError: Cannot read property 'length' of undefined
 
Also rollback will not work in "1-click upgrade"
 
 
Can anyone please explain how too fix

Share this post


Link to post
Share on other sites
  • 0

Tried ie and firefox and both the same.

 

Adding 1 product with 5 combinations is taking me over 10mins to do.

 

Anybody any ideas for a fix, running 2 different sites on this and it is frustrating to say the least.

Share this post


Link to post
Share on other sites
  • 0

For those of you having the endless spinning issue, can you check the network tab on the debug console and see if all tabs on the page are loading? If you can, provide screenshots of it with loading times (see attachment)

 

post-228329-0-47906900-1422436286_thumb.jpg

Share this post


Link to post
Share on other sites
  • 0

Hello,

 

For me it's fixed !

 

I would say that 1.6.0.11 is not the problem. For me was ovverides and modified tables in the DB ...

 

Then once I understood that I did not go into details and made a fresh install. Then copying datas from the tables I wanted to keep (products, transport,cms,delivery,orders,customers ...).

 

SO, i'm not giving solution here, but fresh install works just fine for me. Check your modifications if they are 1.6.0.11 compatible and also your DB.

 

Then this does not mean that there's no problem with update ? But at least I have a 1.6.0.11 working with my previous data.

 

In case you choose this way don't forget to keep your old settings.inc for password encryption purpose.

 

(sorry for poor english, I'm french :))

Share this post


Link to post
Share on other sites
  • 0

Have attached screenshot although can't widen the tabs to give a full description.

 

Can let you know what each one is if you need them.

post-464949-0-53787900-1422439524_thumb.png

Share this post


Link to post
Share on other sites
  • 0

Hi all, I have the same problem. Whenever you want to save a change waits until it exhausts the runtime server and get the error message "500 Internal Server Error", more than 1 minute. Before upgrading, in version 1.6.0.9, the process took just five seconds. Has anyone been able to fix it?

Edited by Yanddros

Share this post


Link to post
Share on other sites
  • 0

Hi guys,

anyone found a fix/workaround for this yet?? I have three subdomains 2 with upgrades 1.6.0.11 and 1 with fresh install 1.6.0.11.  I have created their individual db and imported, everything looks fine but I can not in any shop save a product after editing??  (save and save&stay button stuck in cont loop) no option to save edited product.

 

I have replaced all appropriate files as required(controllers, admin, img, overides ect) tried every combination can't get a product to save on any domain.  

 

Server information Linux #1 SMP Thu Dec 18 00:59:53 EST 2014 x86_64

Server software version Apache

PHP version 5.4.36

Memory limit 64M

Max execution time 60

 

Any help in this matter would be most appreciated as I am stumped!!!!!!!!!!!!

 

Cheers Dean0

Hi guys, any updates on this issue yet?? save and save/stay button still not working. Any possible changes to try would be most appreciated.  I can't move forward on my project till I find a solution.

 

many thanks

 

Dean

Share this post


Link to post
Share on other sites

×

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More