• Resolved microcruze

    (@microcruze)


    Hi,

    I′m running a fresh install of the latest WordPress and the latest Ultimate Member in a localhost environment using MAMP. No changes have been made, no plugins installed. I′m trying to add custom fields to the profile page by setting up new fields in the fields manager, but nothing seems to happen when clicking on the add button.

    MAMP log file:
    [17-Feb-2017 12:37:17 UTC] PHP Warning: Illegal string offset ‘test’ in /Users/[censored]/Documents/htdocs/wordpress/wp-content/plugins/ultimate-member/admin/core/um-admin-actions-fields.php on line 29
    [17-Feb-2017 12:37:17 UTC] PHP Warning: Cannot assign an empty string to a string offset in /Users/[censored]/Documents/htdocs/wordpress/wp-content/plugins/ultimate-member/admin/core/um-admin-actions-fields.php on line 29
    [17-Feb-2017 12:37:17 UTC] PHP Warning: Illegal string offset ‘test’ in /Users/[censored]/Documents/htdocs/wordpress/wp-content/plugins/ultimate-member/admin/core/um-admin-actions-fields.php on line 39
    [17-Feb-2017 12:37:17 UTC] PHP Fatal error: Uncaught Error: Cannot use string offset as an array in /Users/[censored]/Documents/htdocs/wordpress/wp-content/plugins/ultimate-member/admin/core/um-admin-actions-fields.php:39
    Stack trace:
    #0 /Users/[censored]/Documents/htdocs/wordpress/wp-includes/class-wp-hook.php(298): ultimatemember_admin_update_field(”)
    #1 /Users/[censored]/Documents/htdocs/wordpress/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
    #2 /Users/[censored]/Documents/htdocs/wordpress/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #3 /Users/[censored]/Documents/htdocs/wordpress/wp-admin/admin-ajax.php(91): do_action(‘wp_ajax_ultimat…’)
    #4 {main}
    thrown in /Users/[censored]/Documents/htdocs/wordpress/wp-content/plugins/ultimate-member/admin/core/um-admin-actions-fields.php on line 39

    Demovideo of what′s happening with console open:
    https://youtu.be/IGpQL3HgLAQ

    Any suggestions on how to resolve this issue?

    • This topic was modified 7 years, 9 months ago by microcruze.
    • This topic was modified 7 years, 9 months ago by microcruze.
    • This topic was modified 7 years, 9 months ago by microcruze.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @microcruze,

    Can you please do a conflict test on the theme first and then plugins and see if it is caused by a conflict. You can click the link for directions on the plugin/theme conflict test:

    https://docs.ultimatemember.com/article/96-how-to-do-a-plugin-theme-conflict-test

    Please also provide which version of PHP you are currently using.

    Thanks.

    Thread Starter microcruze

    (@microcruze)

    Hi.

    Updating the PHP version resolved the issue and everything is working smooth.

    Thanks!

    I can confirm that I’m facing this issue as well. Updated MAMP to latest one 4.1.1 with PHP version 7.1.1 and I get the same error… I can’t seem to add any custom fields locally. Works fine on the production server, but locally under MAMP is a no for me as well. Exact same issue. Can you tell me how you solved it? Which PHP / MAMP versions are you using? Many thanks.

    • This reply was modified 7 years, 9 months ago by skyrocker_ss.

    UPDATE: on latest MAMP 4.1.1, I switched to the other version of PHP, 7.0.15, and it seems to be working fine… something changed on PHP from version 7.0.15 that makes editing custom fields not work anymore.

    To replicate the issue, install a clean WP site on a MAMP 4.1.1 fresh install, with PHP 7.1.1 and try to add any custom field to any existing or newly created form. It will error 500.

    • This reply was modified 7 years, 9 months ago by skyrocker_ss.
    Thread Starter microcruze

    (@microcruze)

    I can confirm. Switching from PHP 7.1.1 to 7.0.15 in MAMP, was exactly what I had to do in order to resolve the issue on a local installation.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can′t setup new field in fields manager’ is closed to new replies.