• Resolved erikture

    (@erikture)


    I would like to know how many areas that is possible to have in the free version.
    I have defined 177 areas with only a title. Then I have exported that areas and programatically added the description fore each area.

    Then I import it to another site for test purpose. Sometimes all 177 areas are visible after import but I have asigned an image and don an update only 135 areas are left.

    I get the same behaviour when I import the unmodified string that I got when doing the export.

    The 177 areas works fine in site number one were I did the definition of them.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Draw Attention Support

    (@wpdrawattention)

    Hello @erikture

    The Draw Attention plugin does not have a limit for the max number of areas that you can create.

    It seems like you’ve run into a server issue which is a limitation of your hosting company’s PHP configuration. This is a common problem for images with lots of areas.

    Basically, PHP has a setting for max_input_vars which is probably set to 1000 on your server. Basically this controls how much data your PHP configuration will read when a page is submitted. Anything beyond that is cut off. Unfortunately there is nothing in our code that can read this data, because it never reaches WordPress at all – it gets truncated before the page even starts to load.

    The easiest solution would be to contact your hosting company and ask:

    “Can you please increase the PHP max_input_vars to 5000 for my installation? I have an application that is failing because the limit is set too low (it looks like 1000 right now)”

    They should be able to accommodate this request. If you have access to php.ini or depending on your configuration you might be able to do the increase yourself. This is the documentation page for a different WordPress product affected by the same issue that has some good details and instructions:

    https://sevenspark.com/docs/ubermenu-menu-item-limit

    I hope this helps, unfortunately the script just requires more resources to run with that many shapes so there’s just a limit by the server it’s installed on right now.

    Let us know if that helps.

    Thread Starter erikture

    (@erikture)

    Thank you very much for your answer.
    The proposed solution did work.
    I tested on a server hosted by my self so changing the php.ini was easy.
    Now I have verified that it works and now I will try it on the real site. If it does not work I know how to solve it.

    Thanks again!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Max no of areas’ is closed to new replies.