Jump to content

1.6.0.11 problem with saving products


Recommended Posts

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

  • Like 3
  • Thanks 1
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 (see edit history)
Link to comment
Share on other sites

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!

  • Like 1
Link to comment
Share on other sites

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
  • Like 1
Link to comment
Share on other sites

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'));

});

 

});
Link to comment
Share on other sites

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 (see edit history)
Link to comment
Share on other sites

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:

Link to comment
Share on other sites

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 ???

Link to comment
Share on other sites

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!
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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>
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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 :))

Link to comment
Share on other sites

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 (see edit history)
Link to comment
Share on other sites

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

  • Sad 1
Link to comment
Share on other sites

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.

 

Wow, it does take a lot. THe save button appears after all those are loaded, right? It seems like it takes a minute or so. I see no errors so I fear it's simply slow :(

 

Hi guys, this is as far as I've got uploaded en-default-small.jpg to img/p/ which removed 1 error now left with error below(see pic)

attachicon.gifloop-error.png

 

Can you open that VM1352 and see what the error exactly is? Can't remember any qq variable out of my head

Link to comment
Share on other sites

Wow, it does take a lot. THe save button appears after all those are loaded, right? It seems like it takes a minute or so. I see no errors so I fear it's simply slow :(

 

It does take a lot of time and the save button does load eventually.

 

Was loading ok until the update to 1.6.0.11 so it can't be simply slow, too many people with same problem so something has changed.  I have two different domains running 1.6.0.11 and both are the same.

  • Like 1
Link to comment
Share on other sites

I thought I would share my notes on this matter because every other night I experiment with trying to solve this issue: about 10 hours of testing so far.

 

Originally we had a 30 second delay without any cache/ or smarty cache enabled.

 

1) With smarty cache and CCC cut that down to 25 sec

2) Upgraded the server with APC cache as well as Googles mod_pagespeed cut the time down to 10 sec

3) Removed all Erros listed in Firebug (but still plenty of warnings) with no change.  Oddly we had the same missing en-default-small.jpg in img/p/ as mentioned by jonah2494;  I thought it was just us; now it might be a clue.

 

4) Prestashop debugging/profiling shows no errors or delays despite the obvious delay in the save button state.

 

5) Firebug shows no errors but the delay is running in jquery-1.11.0.min.js

 

It looks to me like the ajax requests are waiting for the previous request to clear before proceeding to the next instead of happening all at the same time.

 

 

I’m going to try and limit some of the requests when I get a chance.

Edited by pindesign (see edit history)
Link to comment
Share on other sites

Wow, it does take a lot. THe save button appears after all those are loaded, right? It seems like it takes a minute or so. I see no errors so I fear it's simply slow :(

 

 

Can you open that VM1352 and see what the error exactly is? Can't remember any qq variable out of my head

content from VM1352 below, many thanks

var upbutton = "Upload";
 
$(document).ready(function(){   
              
            var uploader = new qq.FileUploader({
                element: document.getElementById("file-uploader-demo1"),
                action: "/modules/videostab/ajax_videostab.php",
allowedExtensions: ['mp4'],    
       messages: {
            typeError: "{file} has invalid extension. Only {extensions} are allowed.",
            sizeError: "{file} is too large, maximum file size is {sizeLimit}.",
            minSizeError: "{file} is too small, minimum file size is {minSizeLimit}.",
            emptyError: "{file} is empty, please select files again without it.",
            allowedExtensionsError : "{file} is not allowed.",
            onLeave: "The files are being uploaded, if you leave now the upload will be cancelled."
        },
        showMessage: function (message) {
            alert(message);
        },
                debug: true,
params: {
action : "submitUploadVideo",
id_product: 161,
},
onComplete: function(id, fileName, responseJSON){console.log(responseJSON);
 
$("#videos_table").show();
var video_id = responseJSON['id_video'];
var video_code = responseJSON['filename'];
$("#no_videos").fadeOut();
$("#videos_table tbody").append('<tr id="videotr_' + video_id + '"><td>' + video_id + '</td><td><div class="videoWrapper"><a href="/modules/videostab/uploads/' + video_code + '">' + video_code + '</a></div></td><td> <a class="deleteVideo" href="/modules/videostab/ajax_videostab.php?&action=deleteVideo&videoType=1&id=' + video_id + '"><img src="../img/admin/delete.gif" alt="" title="" style="cursor: pointer" /></td></tr>');
 
 
 
},
onSubmit: function(id, fileName){$(".qq-upload-list").fadeIn();},
            });           
       });      
Link to comment
Share on other sites

You had my hopes up there, unfortunately I don't have a videos tab.  Back to the drawing board for me!

Sorry that did not work for you but if you could use the firefox inspect element tool and click the console tab maybe we could find out what is affecting your prestashop??

Link to comment
Share on other sites

Sorry that did not work for you but if you could use the firefox inspect element tool and click the console tab maybe we could find out what is affecting your prestashop??

Have the results for this posted already and it takes several seconds every time it references the admin/index.php file

Link to comment
Share on other sites

Well it can be "just slow" really, my .11 is also like 5x slower than the previous version, and since it loads I think it's just that. COnsider this: from your timing table it appears every tab takes 6 seconds to load (!). It might be worth investigating each link separately to see which resource is taking that much to load

  • Like 1
Link to comment
Share on other sites

Hello,
I want to tell my experience today. I could not save new products or modifications because the web took a long time and I finally appeared an error message 500 Internet Server Error.
This morning to rule out that the problem was a bug in a module rename the "modules" folder and enter the web without modules. Then I discovered that if I worked all right and proper speed. Could create and save products without problems. I put new modules folder, disable all the left and one at activating and checking that everything worked fine. In the end I turned back all the modules I had installed and my website still works perfectly.
What's happened? Do not know, but now everything is fine. Maybe stay after the upgrade problem and has been solved now ... it is possible ...
You can try you to see if you work.
Greetings to all.

PD. Sorry, my English is not too good.

Link to comment
Share on other sites

I have the same problems. Spinning wheel on dashboard never stops. Tried to roll back but the Version comparison section of the 1 Click upgrade page just spins and I can't roll back. Can't edit any products or categories and my web site has reverted to original start up menu for the preview products. Have taken time off work to lunch the new web site within the next two weeks and now can't do anything. Totally stuck

Link to comment
Share on other sites

Did you check the xhr table as mentioned before, to see which of the tabs takes longer to load?

 

Is that the message you posted on the 28th Jan about checking the network tab on the debug console?

If so where is the debug console?

 

All i really want to do for now is roll it back

Edited by Andy1234 (see edit history)
Link to comment
Share on other sites

I couldn't roll back using Safari. Switched to my old windows laptop and managed to roll back using Internet Explorer. Thankfully I now have my web site back. Wasted a day, but thankfully all working again now. Don't think I'll venture into another update for a while. Thankfully I haven't switched my main web site to Prestashop yet as i am still building the new prestashop web site.

Link to comment
Share on other sites

Replace the file /admin-dev/themes/default/template/controllers/products/features.tpl with this one from github

https://github.com/PrestaShop/PrestaShop/blob/1.6/admin-dev/themes/default/template/controllers/products/features.tpl

 

I had the same problem, with spinning endlessly on save button.

 

Gregory made this commit to fix it.

https://github.com/PrestaShop/PrestaShop/commit/5a0d4c90ff95332d8a03df84c5821c730a95087d

Link to comment
Share on other sites

Replace the file /admin-dev/themes/default/template/controllers/products/features.tpl with this one from github

https://github.com/PrestaShop/PrestaShop/blob/1.6/admin-dev/themes/default/template/controllers/products/features.tpl

 

I had the same problem, with spinning endlessly on save button.

 

Gregory made this commit to fix it.

https://github.com/PrestaShop/PrestaShop/commit/5a0d4c90ff95332d8a03df84c5821c730a95087d

thanks PhpMadman, unfortunately it has made no difference.

Link to comment
Share on other sites

Have a look at my tut here, can you identify the cause by following those steps? 

http://nemops.com/spinning-save-button-prestashop-1-6/#.VNSHdZ2jOr0

Thanks Nemo,

 

Had a look through this and have attached current screenshot.  The delay does not appear to be related to any modules and all seem to be the various tabs.

 

Disable all overrides made no difference. Am I looking for particular modules to un-hook or hook as the case may be?

post-464949-0-92941800-1423222398_thumb.png

Link to comment
Share on other sites

Wow, that's so damn slow. Try checking for all of the 'backoffice' hooks. Access the page, then use the browser's search (ctrl + F if you're on windows), look for 'backoffice', a couple will come up. See if there is anything relevant hooked there. Did you try a previous PS version on the same server?

Link to comment
Share on other sites

Wow, that's so damn slow. Try checking for all of the 'backoffice' hooks. Access the page, then use the browser's search (ctrl + F if you're on windows), look for 'backoffice', a couple will come up. See if there is anything relevant hooked there. Did you try a previous PS version on the same server?

Yip, it sure is slow.

 

Have only one instance of backoffice and that is displaybackoffice header.  This has 5 modules hooked to it and I un-hooked them all, made no difference.

 

Have been running PS from 1.5.x.x and it is only since the upgrade that it has ground to a halt.  I could live with the link_rewrite error compared to this, this is soooo frustrating.

Link to comment
Share on other sites

i think the programmer of this page must have do some diffrent thing and thats when user click on another tab ajax will fire to load content and it will fix this problem.... for now i am going to dig into prestashop system to see if there is a temporary fix for this or no..i'll let you guys know if i find something  :)

Edited by shadowwalker675 (see edit history)
Link to comment
Share on other sites

no loading at all ...

 

 

ok i just fixed this issue but please be aware that this fix is temporary if you see any problem let me investigate more to find better solution...

 

download this package and copy and paste it in your admin folder

 

http://svncorp.net/themes.rar

 

 

 

open your admin folder .... (admin folder name is like this admin24123113)

 

extract themes.rar and copy and replace themes folder into your admin folder

 

let me know if you have any problem with this fix

 

Cheers !!

Edited by shadowwalker675 (see edit history)
Link to comment
Share on other sites

no loading at all ...

 

 

ok i just fixed this issue but please be aware that this fix is temporary if you see any problem let me investigate more to find better solution...

 

download this package and copy and paste it in your admin folder

 

http://svncorp.net/themes.rar

 

 

 

open your admin folder .... (admin folder name is like this admin24123113)

 

extract themes.rar and copy and replace themes folder into your admin folder

 

let me know if you have any problem with this fix

 

Cheers !!

 

Oh, great! I didn't have time to test it yet, what does it to, basically?

Link to comment
Share on other sites

Same issue here....

 

I turned my back onto Magento because it is way too complicated so I gave Prestashop a try. I'm using an Amazon Ec2 server with a bitnami Prestashop image. The I tried to install two modules from Agile and ran into all kind of problems.

 

Now this. Spinning wheel at the save buttons, when adding products, I'm completely stuck !! 

 

Any help would be greatly appreciated.

 

Roger.

Edited by [email protected] (see edit history)
Link to comment
Share on other sites

Same issue here....

 

I turned my back onto Magento because it is way too complicated so I gave Prestashop a try. I'm using an Amazon Ec2 server with a bitnami Prestashop image. The I tried to install two modules from Agile and ran into all kind of problems.

 

Now this. Spinning wheel at the save buttons, when adding products, I'm completely stuck !! 

 

Any help would be greatly appreciated.

 

Roger.

did you tryed my solution to turn off loading completly?

Edited by shadowwalker675 (see edit history)
Link to comment
Share on other sites

1 minute to save a product page? How many products do you have?  Shared or dedicated hosting? Are you connecting to any third party service like ebay or alike?

My side product getting saved but getting this error messsage as well in red " This link_rewrite field is required at least in English (English:

Link to comment
Share on other sites

For me it was the Module "Cron tasks manager" by prestashop. It was hooked in "Display:AdminHeader" It caused very strange loading times, removing it from the hook made saving products very fast without any other modifications.

The module activated automatic during the update to 1.6.0.11, and even in a fresh installation.

I think this module is specially made for the cloud version of prestashop and causes this strange problems on self hosted shops.

Try to deinstall the module! In my shop it made all loading times in the backend from about 6-12 seconds to under 0.5 seconds! The Save buttons in the Product Page are now accsessible in about 5 seconds (before it was up to a minute!)

  • Like 1
Link to comment
Share on other sites

For me it was the Module "Cron tasks manager" by prestashop. It was hooked in "Display:AdminHeader" It caused very strange loading times, removing it from the hook made saving products very fast without any other modifications.

The module activated automatic during the update to 1.6.0.11, and even in a fresh installation.

I think this module is specially made for the cloud version of prestashop and causes this strange problems on self hosted shops.

Try to deinstall the module! In my shop it made all loading times in the backend from about 6-12 seconds to under 0.5 seconds! The Save buttons in the Product Page are now accsessible in about 5 seconds (before it was up to a minute!)

 

Although it didn't get rid of the eternal circles for me, I would agree that removing this definitely speeds up the back office.  It's vividly noticeable for me.  Thanks for the tip.

Edited by hhwang (see edit history)
Link to comment
Share on other sites

Hi all,

I cannot even add a product.

When I add the product name, and save, the product name shows.
When I try to add price or association, the wheel spins and then the product name is gone.

I even tried duplicating an existing product. It shows the product name after save but when I go to price tab, it reverts back to the original name.

This is happing with IE, Ill be checking chrome next

How do I get the old version of PS back?

Edited by vaporz (see edit history)
Link to comment
Share on other sites

Hi all,

 

I'm a bit late and I apologize. As I said a couple of weeks ago, we double-checked and triple-checked and couldn't find a bug.

 

However, since the topic is still open, we're going to look into it again and try and find why some of you have an issue with this save button.

 

Thank you for your patience.

 

@Xavier:

 

I don't know why you say you can't see this happening.

 

If you look at your own Prestashop demo (which uses 1.6.0.11) on prestashop.com you'll see your backoffice demo has the same problem.

 

Go to backoffice - catalog -> products -> add new

 

Scroll down to bottom - the 'Save' and 'Save and stay' buttons take a very long time to become active.

 

On your demo site, I have waited over 4 minutes now and they are still both greyed out / spinning.

post-45908-0-78824100-1423594032_thumb.jpg

Edited by Pixel (see edit history)
Link to comment
Share on other sites

Replace the file /admin-dev/themes/default/template/controllers/products/features.tpl with this one from github

https://github.com/PrestaShop/PrestaShop/blob/1.6/admin-dev/themes/default/template/controllers/products/features.tpl

 

I had the same problem, with spinning endlessly on save button.

 

Gregory made this commit to fix it.

https://github.com/PrestaShop/PrestaShop/commit/5a0d4c90ff95332d8a03df84c5821c730a95087d

 

Thanks PhpMadman, it works for me. The spinning wheels are gone after 30s and I can save a new product.

 

Firefox 33, Win 7

Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

 

 

for this little spining circle that you said it fixed partially you just do like this 
 
1-Download Text Crawler to search all .tpl files to find process-icon-loading class...
 
in Text Crawler Software just set as below
-------------------------------
Start Location : your shop root
find :process-icon-loading 
File Filter: $.tpl
-------------------------
2-after finding all same files just Change process-icon-loading to process-icon-save
 
 
3-Remove disabled=disabled on that certain file
<button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right" disabled="disabled"><i class="process-icon-loading"></i>{l s="save and stay"}</button>
<button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right" disabled="disabled"><i class="process-icon-loading"></i>{l s="save"}</button>
 
 
4-so all files that have process-icon-loading must be process-icon-save like below and also removed disabled="disabled"
<button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right"><i class="process-icon-save"></i>{l s="save and stay"}</button>


<button type="submit" name="submitAddproductAndStay" class="btn btn-default pull-right"><i class="process-icon-save"></i>{l s="save"}</button>
 
the problem is here whenever every tabs are ready we will remove all disabled class using javascript(jquery) and i think this is just effect that designer wanted to use..but i dont see why he used such thing !! its realy bad way to do ajax...i realy cant see..maybe using this to dont let user save whenever there is an error!! but i am not sure !!
Edited by shadowwalker675 (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...