WordPress.org

Support

Support » Plugins and Hacks » New Dropdown field – Fatal Error

New Dropdown field – Fatal Error

  • I am having trouble creating a new Field that uses a Dropdown. I continually get the following error:

    Fatal error: Call to undefined function str_getcsv() in …/wp-content/plugins/wp-members/admin/tab-fields.php on line 206

    I deactivated and deleted the version I was using and installed the latest version, 2.8.1, and still have the problem. Text fields are not problem.
    Any ideas?
    thanks

    http://wordpress.org/extend/plugins/wp-members/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chad Butler

    @cbutlerjr

    I deactivated and deleted the version I was using and installed the latest version, 2.8.1, and still have the problem.

    This is only an issue in 2.8.1. That version introduced some improvements to the custom dropdown field so that comas could be used in the dropdown values. This involved the use of str_getcsv, which requires PHP 5.3 or higher. str_getcsv is not used in 2.8.0.

    I am rethinking the use of str_getcsv as it really should not have been used, since WP currently requires only PHP 5.2.4. So I will patch this in 2.8.2 (and possibly will release a separate patch earlier). In the meantime, you have some possible options:

    1. Roll back to 2.8.0. I don’t recommend this as 2.8.1 included security updates. (You could rollback, install your dropdown fields, then upgrade.)
    2. Upgrade your PHP version to 5.3+ (recommended)
    3. Install the Pear PHP_Compat package, which allows earlier PHP versions certain newer functions (including str_getcsv). This is also not recommended as this package does have some bugs.
    4. Wait for the patch/upgrade when I fix this.
    Plugin Author Chad Butler

    @cbutlerjr

    I have a patch for this issue that needs to be tested for release with the 2.8.2 version. If you would like to test it, contact me here.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘New Dropdown field – Fatal Error’ is closed to new replies.