• Hi guys,

    I’ve been encountering an error when having too many options in a drop down. It simply freezes if there are over 222 options.

    I’m running on PHP 5.3.5, but this also happens when running on PHP 5.3.13. Curiously, this issue DOES NOT happen when using 5.2.27.

    I’ve been trying to back trace the error, and I believe it’s got something to do with the preg_replace_callback() function called inside do_shortcode () in /includes/shortcodes.php on row 62.

    Has any of you encountered the same issue, and do you happen to know how to solve it?

    Thanks

    https://www.ads-software.com/extend/plugins/contact-form-7/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    I don’t think it’s PHP’s restriction. In the first place, why do you need such more than 200 options? I don’t think average person would like to choose from such a lot of options.

    Thread Starter bokordani

    (@bokordani)

    I do believe it’s due to some server settings, but not sure if it actually depends if it’s PHP 5.2.x or 5.3.x, however it does work when using php 5.2.27.

    As for the reason for having over 200 options, the client desires a drop down containing a list of all the countries in the world, where the average user would select his/her country.

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Isn’t it just a memory shortage? Have you checked the error log?

    Thread Starter bokordani

    (@bokordani)

    I’ve checked the error log but it’s empty.

    Were you able to reproduce the error?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Contact form 7 – drop down issue due to too many options’ is closed to new replies.