PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

[SOLVED] Features values can't be saved when changed...

39 replies to this topic
#21
Mike Kranzler

    PrestaShop Superstar

  • Members
  • PipPipPipPipPip
  • 8076 posts

View Posthokaro, on 13 March 2012 - 12:38 AM, said:

I host the server myself, and I am the admin too... I have access to the php.ini, but I couldn't find the max_input_vars in this file. I searched through this file using "nano" in my ubuntu server. Where is this value?

Hi hokaro,
First of all, did you already apply my first suggestion about checking the permissions of your tools/smarty directory?

Additionally, can you please place the attached file in the root of your store, and then navigate to www.yoursite.com/phpinfo.php and search for that max_input_vars value in the results that come up?

Attached File  phpinfo.php   19bytes   169 downloads

-Mike
I am no longer PrestaShop's Community Manager. Please direct all PrestaShop Forum requests to Benjamin Utterback or Patric Codron

#22
hokaro

    PrestaShop Apprentice

  • Members
  • PipPip
  • 32 posts

View PostMike Kranzler, on 13 March 2012 - 02:53 PM, said:

Hi hokaro,
First of all, did you already apply my first suggestion about checking the permissions of your tools/smarty directory?

Additionally, can you please place the attached file in the root of your store, and then navigate to www.yoursite.com/phpinfo.php and search for that max_input_vars value in the results that come up?

Attachment phpinfo.php

-Mike

Thanks for the effort. Yes, I did change the chmod to 655 as you wrote.

I put your file, phpinfo.pho, into my root, and here are some the lines:

log_errors_max_len 1024 1024 magic_quotes_gpc Off Off magic_quotes_runtime Off Off magic_quotes_sybase Off Off mail.add_x_header On On mail.force_extra_parameters no value no value mail.log no value no value max_execution_time 30 30 max_file_uploads 20 20 max_input_nesting_level 64 64 max_input_time 60 60 max_input_vars 1000 1000

As you see, the last line is max_input_vars and it's value is 1000... I guess this should be changed, where can i change it?

#23
hokaro

    PrestaShop Apprentice

  • Members
  • PipPip
  • 32 posts

View PostMike Kranzler, on 13 March 2012 - 02:53 PM, said:

Hi hokaro,
First of all, did you already apply my first suggestion about checking the permissions of your tools/smarty directory?

Additionally, can you please place the attached file in the root of your store, and then navigate to www.yoursite.com/phpinfo.php and search for that max_input_vars value in the results that come up?

Attachment phpinfo.php

-Mike

sorry, I try to paste the above line again, as it was pasted into the box in a bad way. Here is the discussed parameter:

max_input_value: 1000 (local value) .... 1000 (master value)

PS: read my previous post too, please

#24
Mike Kranzler

    PrestaShop Superstar

  • Members
  • PipPipPipPipPip
  • 8076 posts
Hi hokaro,
Since you don't seem to have this value in your php.ini file, please back it up and then try adding this line to it:

max_input_vars = 6000

Hopefully, that will allow you to override that error. Please let me know if this works for you.

-Mike
I am no longer PrestaShop's Community Manager. Please direct all PrestaShop Forum requests to Benjamin Utterback or Patric Codron

#25
hokaro

    PrestaShop Apprentice

  • Members
  • PipPip
  • 32 posts
I did what you said, and it worked like a charm :) ... now it adds new values and changes old values as it should. Thanks a lot for your help.

I stay a Prestashop:er :)

#26
Mike Kranzler

    PrestaShop Superstar

  • Members
  • PipPipPipPipPip
  • 8076 posts
Great, I'm glad I could help, even if it was a little more difficult than we would've liked. I'll go ahead and mark this thread as solved for you. Happy selling!

-Mike
I am no longer PrestaShop's Community Manager. Please direct all PrestaShop Forum requests to Benjamin Utterback or Patric Codron

#27
xEpyonx

    PrestaShop Apprentice

  • Members
  • PipPip
  • 27 posts
Hi Hokaro,

I'm really happy this solved it for you! I also ran the phpinfo.php file and also came up with
max_input_vars = 1000

And then I remembered that last month my provider updated the server to php 5.3 and maybe the settings got reset.

I'll mail them tomorrow and see if it's possible for them to set it to 6000 since I probably don't have access to the php.ini file.

Also, Mike, thank you very much for putting in the time and effort to help solve this problem!

#28
Mike Kranzler

    PrestaShop Superstar

  • Members
  • PipPipPipPipPip
  • 8076 posts
It's my pleasure! Please let me know if that works for you as well!

-Mike
I am no longer PrestaShop's Community Manager. Please direct all PrestaShop Forum requests to Benjamin Utterback or Patric Codron

#29
xEpyonx

    PrestaShop Apprentice

  • Members
  • PipPip
  • 27 posts
Hi Mike,

The solution also worked for me! I used the .htaccess generator in the Prestashop backend to add
php_value max_input_vars 6000
to my .htaccess file to temporarily override the standard value.

Since the problem really is only with the actual saving of the feature values, I delete the line from my .htaccess so the server goes back to it's original setting when I'm done adding features.

My hosting provider also was very helpful in this. They did note that Prestashop really shouldn't need for the max_input_vars to be so high, since it's actually a safety measure of sorts, so maybe this is something that can be addressed in Prestashop v1.5, which I'm really looking forward to by the way!

Still, I'm relieved everything works just fine again!

#30
Mike Kranzler

    PrestaShop Superstar

  • Members
  • PipPipPipPipPip
  • 8076 posts
Great, I'm glad this worked for you too! Happy selling!

-Mike
I am no longer PrestaShop's Community Manager. Please direct all PrestaShop Forum requests to Benjamin Utterback or Patric Codron

#31
Frens

    PrestaShop Fanatic

  • Members
  • PipPipPipPip
  • 1600 posts
Hi


My hosting provider tell its a high risk.. to set the value high : php_value max_input_vars 6000


'hash collisie' attack,on PHP: http://www.php.net/m....max-input-vars


In the next future , he wil make it impossible to set the value high .


I try to change the Languages in the xx.php file , but there are no change in the translation text !

#32
Leonardoeng

    PrestaShop Newbie

  • Members
  • Pip
  • 3 posts
Hi Guys,

I got this issue too ... I had changed the max_input_vars to 6000 and worked fine by two weeks, now I got this issue again. I changed the max to 100000 and persisted the features issue.

Anyone have a different solution?

#33
Uzumaki Naruto

    PrestaShop Apprentice

  • Members
  • PipPip
  • 167 posts
how about you create new file php.ini and put it at admin folder root.
on php.ini put this

suhosin.post.max_vars=4252
suhosin.request.max_vars=4252
max_input_vars = 6000



tell me it's work or not.thx

#34
alarmdanmark.dk

    PrestaShop Newbie

  • Members
  • Pip
  • 4 posts

View Postjesen, on 21 September 2012 - 10:53 AM, said:

how about you create new file php.ini and put it at admin folder root.
on php.ini put this

suhosin.post.max_vars=4252
suhosin.request.max_vars=4252
max_input_vars = 6000



tell me it's work or not.thx

Hi i don't have acces to the server php.ini - but i have the same problem and the host wont set up the max_input_vars limit because he is afraid of DNS attack

does anyone have a solution - i cant use the translation of the shop

#35
dzsar

    PrestaShop Newbie

  • Members
  • Pip
  • 19 posts
create .htaccess file to domain.com/admin/ folder

.htaccess content:

Quote

php_value max_input_vars 10000
or

Quote

php_value max_input_vars 6000


#36
paulmparfum

    PrestaShop Newbie

  • Members
  • Pip
  • 17 posts

View Postdzsar, on 26 October 2012 - 06:26 PM, said:

create .htaccess file to domain.com/admin/ folder .htaccess content: or
thank's a lot, work fine
It is very easy to do something complicated, but it is very difficult to do something
simple. :) - Paul
http://costumebaie.eu
http://puzzle-personalizat.eu

#37
amr.rs

    PrestaShop Newbie

  • Members
  • Pip
  • 22 posts
I also have the same issue. Features are not getting saved. Any help pls? :unsure:
---
Regards,
AMR.

#38
sgtbash

    PrestaShop Apprentice

  • Members
  • PipPip
  • 115 posts
Fixed for me by placing
max_input_vars = 6000

in a new file "php.ini" inside my 'admin' folder.

=)

The .htaccess version of this did not work for me. Must be differences in server set ups as my host allows override php.ini files to be made.

=)
Nineplus USA - Now on Prestashop 1.4.7

#39
imadnl

    PrestaShop Newbie

  • Members
  • Pip
  • 1 posts
I don't know how to do that, can you send me a sample file how i have to paste "max_input_vars =6000"?

#40
jrok

    PrestaShop Newbie

  • Members
  • Pip
  • 4 posts
HI I JUST SOLVED!!!

THE PRODUCT MUST HAVE SOME PROBLEM IN UPC OR EAN13 OR META OR SEO...THATS WHY CANT BE SAVED. AFTER THAT FEATURES WORK AGAIN.

Edited by jrok, 27 April 2013 - 08:48 PM.