Jump to content

How to increase the size limit of the product long description


patrmich

Recommended Posts

My shop is built with Prestashop 1.5.6.2.

I have a few products with a rather long description (I am talking about the product "description", not the product "short description")

For such products, I meet the following problem :
- In Control Panel > Product > I make an amendment in the description
- Then, I click on the Save and Stay button
- Instead of remaining on the product page, the product list displays
- When I go back to the product page, I can see that the amendment has not been taken into account.

An indirect way that I use to solve the matter, is making the amendment in the data base itself. But this is not very convenient.
The amendment remains possible in the data base. Therefore, I think that there is no limit in the description field of the ps_product_lang table.

I tried to see whether there was some length limitation either in the AdminProductsController.php file or in the Product.php, but was unable to find such limitation.

Would you know how to increase the size limit of the long description ?

Thank you in advance for any reply.

Patrick

Link to comment
Share on other sites

Thank you Rocky for your kind reply.

1- The problem occurs with last version of both Chrome and Firefox.
But it occurred also months ago with previous browsers versions.
My shop is built with Prestashop 1.5.6.2.
I made many customizations in my shop. Therefore I cannot easily migrate to the last version of Prestashop.

2- Currently, some of my php settings are the following :
max_execution_time = 3000
memory_limit = 3000M
suhosin.post.max_vars = 10000
suhosin.request.max_vars = 6000
post_max_size = 400M
upload_max_filesize = 400M
output_buffering = 16384

So, do you think that post_max_size at 400 could be too low ?


3- My hoster will no longer offer my current hosting option.
Therefore, the hoster offers to migrate with a new hosting server with similar specifications in terms of Ram and CPU.
But some php settings will be limited as follows :
max_execution_time = 180
memory_limit = 256
post_max_size = 128M
upload_max_filesize = 128M
output_buffering = 8192

A priori, would you think that such settings are high enough to run a Prestashop 1.5.6.2 shop ?

Thank you again for any reply.

Patrick

Link to comment
Share on other sites

Those numbers look plenty big enough for PrestaShop to save products, but it's been a long time since I worked with PrestaShop v1.5, so I can't be certain.

 

It's usually the max_input_vars and post_max_size that you need to check to make sure you can change translations.

Link to comment
Share on other sites

Thank you again Rocky.

 

1- To deal with the Prestashop translations, I am using the "Traduisez Prestashop" (Prestashop Translation) module, made Samdha.

This module allows the splitting of translations by module and by templates.

 

2- When you wrote "Those numbers look plenty big enough for PrestaShop to save products", did you think at my current settings data or to the new limited settings data proposed by my hoster ?

 

3- There would be also another difference between my current server and the new one :

- current server : no Varnish cache

- new possible server : Varnish cache set by default

Would you have anything in mind regarding Prestashop and Varnish compatibility ?

 

Thank you very much in advance.

 

Patrick

Link to comment
Share on other sites

I think both will be alright, but to be honest, I don't have a lot of experience installing PrestaShop in different server configurations, only on Just Host.

I remember reading other topics about Varnish. It may take some extra work to get working. You'll have to search on the forums.

Link to comment
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
×
×
  • Create New...