• loopforever

    (@loopforever)


    Hi,
    I’m trying to save data to the option table from the admin panel. The data comes from the selection of the select option. Multiple selections can be made.
    The problem is that I can’t save more than 996 data.
    I checked the database. The relevant option is up to 996 (a:996).

    After saying save, sometimes I get the line “The link you followed has expired”. Sometimes the page reloads without getting the “saved” warning.

    I’ve reviewed this and similar topics: https://stackoverflow.com/questions/51599249/the-link-you-followed-has-expired-please-try-again-in-wordpress

    I increased the constants such as post max size, upload max file size, max exution time. However, I still couldn’t solve the problem. Is there a solution to this?

    PHP : 7.4.28 FPM application

Viewing 2 replies - 1 through 2 (of 2 total)
  • Dion

    (@diondesigns)

    You’re probably hitting the limit for the max_input_vars directive in php.ini. The default is 1000, so if that is your current setting, the value should be increased. Note that increasing this value will slow down PHP, so do some experimenting to find the lowest setting that will allow your application to work correctly.

    Thread Starter loopforever

    (@loopforever)

    Thank you for your answer.
    I solved the problem by increasing the value as you said.

    I have now set the value to 1450. Do you think this is too high a value for WordPress?
    I searched but couldn’t find a definitive explanation. I would be glad if you help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem save data into Option table’ is closed to new replies.