Jump to content
  • 0
donscalos

I can't save changes to my products in Prestashop 1.7

Question

IHi,


I have  PrestaShop : 1.7.0.6     .

I can sort out my products categories but changes are not applied. I cannot move my products from one category to the other or update their names.

There's a fix on the 1.6 changing form.tpl in the admin folder but the 1.7 structure is different !

Thank you for your help !

Edited by donscalos

Share this post


Link to post
Share on other sites

65 answers to this question

Recommended Posts

  • 0

Hi, i've ps 1.7.1.1 and the same big problem. Does anyone fix it? I can't find any solution.

Hello Cate.88, could you please make a new ticket as mentioned above? It would be very helpful for us. Thank you. :)

Share this post


Link to post
Share on other sites
  • 0

Hi this is from this post and it worked for so many including me...

 

rdubill, on 01 Aug 2017 - 6:22 PM, said:snapback.png

To anyone who might be following this - late yesterday afternoon (7/31/17) I went into Advanced Parameters>Performance and changed the following.

1) Left SMARTY alone - that is left caching type at file system and checked never recompile template files.

Towards the bottom you will see a heading of CACHING...

I set use cache to no.

I'm not sure how the setting works in conjunction (if at all) SMARTY - or what impact (if any) this will have on my site's response times.

Since I made this change everything I save is updating instantly.

I'll watch this as I move forward with development.

thanks to all for your input...

https://www.prestashop.com/forums/topic/621979-prestashop-saving-changes-in-back-office/page-2?do=findComment&comment=2591451

 

 

 

Share this post


Link to post
Share on other sites
  • 0

Can someone advise a path for official fix? I cannot find such path in prestashop 1.7.2 install-dev/data/xml/configuration.xml . Seems that issue still exists on new version. I have tried all browsers and no solution. Basically if I copy existing product and change some info , it says updated successfully however no changes are visible on product page.

Share this post


Link to post
Share on other sites
  • 0

i have the same problem on Prestashop 1.7.2.2 (fresh install)

 

Tested on Chrome / Firefox / Edge, when i save any product in Backoffice, it shows a green message "updated", but no changes on the product.

 

I can create a product perfectly, but once it is created, it cannot be edited.

 

I can't see any error on javascript console or debug mode.

 

How can i fix this?

 

Best Regards,

 

 

 

 

 

Share this post


Link to post
Share on other sites
  • 0

Yup, Im having this issue as well. Clean install. Disabling cache did not work (though not good idea for production). configuration.xml doesnt exist in my prestashop installation at all.

Is there anyone who solved this issue on 1.7.2? More precisely Im on 1.7.2.2

Edited by Rail Balco

Share this post


Link to post
Share on other sites
  • 0

Is it that simple?? How long is too long? What is the maximum size? (oh I see, 160 characters).

 

I'm having the same problem with a customer!!! But he didn't fill SEO Meta description.

He did fill meta title, suggested 70 characters, he sometimes overfills this field.

 

Can this cause the 'data not saved' error???

Edited by schot

Share this post


Link to post
Share on other sites
  • 0

Are you aware that you can change the max. length of the product description in the backoffice? Change that for example into a large number. Than check again if products save. Otherwise try to save a product without text/description.

Share this post


Link to post
Share on other sites
  • 0

Dear All,

I have opened an other thread but maybe it's related. I get an error: SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data,  main.bundle.js:56382:9 on Prestashop 1.7.2.1 when saving (after change) or activating/deactivating a product.

Thread: 

Unfortunatelly, I have no solution so far as I do not see what is wrong with the code. But there's a but... it's the section throwing an error that comes right after the Firefox part.

Kind regards,
PR

Share this post


Link to post
Share on other sites
  • 0

Looks like this issue has many different reasons, i suggest to look for what is causing your exact problems. Mine was solved by installing presta on better hosting. Have a look on BOOM-3901 on forge.

Share this post


Link to post
Share on other sites
  • 0

By each problem, like site freezes, cannot save changes, please also activate debug mode. Most of theses problems are due to server problems (not correct configured, or not suitable for to run Prestashop).

 

How to activate debug mode: https://www.prestashop.com/forums/topic/224525-how-to-turn-on-error-reporting-for-debug-information-blank-page-500-internal-server-error/

 

Share this post


Link to post
Share on other sites
  • 0

i think i found a possible problem.

Products that you cant save have any videos in description?

I noticed that the only products i cant save are the ones with youtube videos in description page.

I activated iframes in HTML fields  from Shop Parameters - > General.

Please try and let me know if this solution works to you also.

Thank you.

 

Share this post


Link to post
Share on other sites
  • 0

Hi,

my prestashop is from version 1.7.2

if you have to have that row in the configuration table

go to the configuration table and list for 500

then in the top search engine look for this:  PS_PRODUCT_SHORT_DESC_LIMIT

you will see how it appears.

Send screenshot.

I do not use video on products

Best Regards,

table.png

Share this post


Link to post
Share on other sites
  • 0

Related the "unable to update settings" problem that does not let you save product modifications.

Go to Catalog -> Products -> Open a product -> go to Description tab -> Make sure 6000 character limit is not exceeded -> Click Save ==> https://i.imgur.com/jOTEhzR.png

After that i was able to save any modification made to that product!

Selection_150.png

Share this post


Link to post
Share on other sites
  • 0

I'm using Prestashop 1.7.2.4 in multistore mode, using a product importer to populate and update DB from csv file.

Certain products didn't want to save any of the changes to any field, whilst others had no issues at all. Checked all suggestions above, with little luck.

Noticed the products that failed to save had tags with HTML entities (like ') in them.

Removing the HTML entities from the tags was the solution for me, the product now saves correctly.

Share this post


Link to post
Share on other sites
  • 0
On 17/01/2018 at 6:34 PM, prestavanilla said:

I had the same issue in 1.7.2.0. After import I could not edit the products. Take a look at the categories for the product that you have imported. A main category should be selected, if not you cannot edit the product. This was the problem in my case.

Hope this helps.

I had the same.

But keep in mind that it doesn't limit the problem to the product without the category. Actually all depends of its position in the database :

Products that are read sequentially before that product will save. Products after won't.

To help you find the faulty product, you can use dichotomy search :

Let say you have 1000 products and the 800 is not working.

Prestashop IDs are stored in database biggest number first.

So the faulty problem is between 1000 and 800.

1000-800=200

200/2 = 100

1000-100 = 900

You test product ID 900.

If can save, means faulty product ID is between 800 and 900. If cannot, between 1000 and 900.

Then you start again checking at the midpoint. Works fast even with very large databases ;)

 

Share this post


Link to post
Share on other sites
  • 0

I had the same issue with ps 1.7.
Problem for me was, I had iframes in the product descriptions, videos.
So setting "allow iframes" in the general settings, did the trick for me.
Took me hours to find out.

Share this post


Link to post
Share on other sites
  • 0

Hello phantom309,

 

In a previous post about "When I Hit the Save Button My changes don't save" I saw that is necesssary to change the php version to 7.0 at least.

You can try that!

Share this post


Link to post
Share on other sites
  • 0
On 17. 1. 2018 at 11:34 AM, prestavanilla said:

I had the same issue in 1.7.2.0. After import I could not edit the products. Take a look at the categories for the product that you have imported. A main category should be selected, if not you cannot edit the product. This was the problem in my case.

Hope this helps.

Solved this issue for me on prestashop 1.7.2.4, PHP 7.1.15

Thanks prestavanilla

 

But it is holly crap

Share this post


Link to post
Share on other sites
  • 0

This isn't marked as solved, and I dislike resurrecting old threads, but I am having the same issue even still.

Tags will save, if I take symbols out of the tag,

This seems a little odd.

Edited by BrianClough_eire

Share this post


Link to post
Share on other sites
  • 0

i already have PHP version 7.0 and PS 1.7.3.0 and it started to happen to me today :(

changing to other versions doesn't solve it.

 

EDIT: I've tested and found it's related with combinations. if i create a simple product i have no problems. if i change it to product with combinations i start getting this error. this error is so stupid. i didn't have the problem when i started. only started very recently.

Edited by patuga

Share this post


Link to post
Share on other sites
  • 0

Finally I've sold my problem.
I could not update f.e. reference in product description. After save, the old reference still left.
It is because limitations in php and database. In my case it was reference length set to 32 in php and also in database
Open classes/Product.php and change:
'reference' => array('type' => self::TYPE_STRING, 'validate' => 'isReference', 'size' => 32
to f.e. 64
'reference' => array('type' => self::TYPE_STRING, 'validate' => 'isReference', 'size' => 64

Then open phpMyAdmin, navigate to table ps_product and select correct line (in my case is reference). Then change varchar length from 32 to 64.
Save and it is done!

Share this post


Link to post
Share on other sites
  • 0
On 11/11/2017 at 10:48 PM, lanterneled said:

i think i found a possible problem.

Products that you cant save have any videos in description?

I noticed that the only products i cant save are the ones with youtube videos in description page.

I activated iframes in HTML fields  from Shop Parameters - > General.

Please try and let me know if this solution works to you also.

Thank you.

 

That was my problem. Youtube videos. When i enabled Iframes everything gets saved. PS 1.7.3.0. Custom theme.

Thanks lanterneled for your info. You made my day.

Share this post


Link to post
Share on other sites
  • 0

Sorry for second post in a row, but I've found solution for me.

This problem showed after update from 1.7.2.4 to 1.7.4.3 and solution was: to switch off manualy all custom modules, and then switch them on, and now everything works!

Share this post


Link to post
Share on other sites
  • 0

Hello, for all of those who didn't manage to fix this issue, here is one more solution that worked for me:

In the options tab -> tags you must not enter any keyword that contains special characters -> in my case I had a keyworkd that contained the "%" character. After removing that specific keyword, everything worked fine for the product.

Share this post


Link to post
Share on other sites
  • 0

This could also be the answer for some:

If you use foreign characters in you link_rewrite (SEO) and you have not activated the function Accented URL then the product is not saved allthough it says it is:

BackOffice => Shop Parameters => Traffic & SEO, in the "SET UP URLS" part,  you need to check if the Accented URL is enabled

Share this post


Link to post
Share on other sites
  • 0

Hi, i have fresh install of 1.7.5.0

Forse the First month everithing works, now i can't modify a product (price, quantity, ....) and i can't make a new product.

I try All the suggestion above but no works.

Any solution?

Thanks

Share this post


Link to post
Share on other sites
  • 0

Hi
I have the same problem in PrestaShop 1.7.5.0 
unable to modify and update anything in the product page

I check the chrome inspect page and see this problem 

  1. Request URL:
    *****/index.php/sell/catalog/products/496?_token=pScofxR0VybG-yEVaY-8sEZlAHNYf1sAbDbDW_mzKjU
  2. Request Method:
    POST
  3. Status Code:
    500

how i can solve this problem?

this problem just occurs in some my old product page that I want to update them.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

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