WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Magic Fields] Related Type Cannot be duplicated (11 posts)

  1. smashmiek
    Member
    Posted 4 years ago #

    Hi, I love this plugin, but I am having an issue where I can't duplicate fields that are "Related Types". I have the checkbox set to duplicate, but in my write panel, clicking the duplicate link doesn't do anything.

    Any ideas?

    Alternatively, one approach to attaching multiple related posts to a post might be to change the drop-down to a listbox. This would require no duplication of the field, and make the user experience better, I think.

    Cheers

    http://wordpress.org/extend/plugins/magic-fields/

  2. hunk
    Member
    Posted 4 years ago #

    any error of javascript?

    wich version of the WP?

  3. spencersokol
    Member
    Posted 4 years ago #

    I'm having the same problem. Running Firefox 3.5.4 (running update to 3.5.6 now) and Flock 2.5.2 using WordPress 2.9 with WAMPSERVER.

    My guess is it's a javascript error... but I couldn't say for sure. I'm not a big javascript debugger.

  4. spencersokol
    Member
    Posted 4 years ago #

    In, IE when duplicating a group, the group appears to be duplicated, but these errors appear:

    Deprecated: Assigning the return value of new by reference is deprecated in [path]\wp-settings.php on line 646

    Deprecated: Assigning the return value of new by reference is deprecated in [path]\wp-settings.php on line 661

    Deprecated: Assigning the return value of new by reference is deprecated in [path]\wp-settings.php on line 668

    Deprecated: Assigning the return value of new by reference is deprecated in [path]\wp-settings.php on line 675

    Deprecated: Assigning the return value of new by reference is deprecated in [path]\wp-settings.php on line 711

    Deprecated: Function set_magic_quotes_runtime() is deprecated in [path]\wp-settings.php on line 18

    It's quite possible they're not related, but maybe that will help point you in the right direction.

  5. smashmiek
    Member
    Posted 4 years ago #

    Hi, tanks for the reply.

    I'm using Wp 2.9

    Strangely, the problem has gone away, without any modifications to the wp install, or the plugin.

    The only change has been that firefox has been restarted, and duplications are working fine!

    Weird...

  6. Treblamah
    Member
    Posted 4 years ago #

    I have the same problem. I disabled all other plugins, but I still get it. In FF I see in the bottom left of the window "javascript:void(0);" and nothing happens when I click "Duplicate Field". Duplicating groups is fine, duplicating fields isn't working. WP 2.9.1

  7. spencersokol
    Member
    Posted 4 years ago #

    After deciding to go through the Magic Fields code this morning, I figured this thing out. The problem is Magic Fields can't handle the use of dashes in your custom image field name. Looking through the [magic-fields\js\custom_fields\image.js code, you'll see it splits the field id by a dash to remove the first bit.

    Anyway, the workaround is to not use dashes in your custom image field name. I assume this will also fix being unable to duplicate fields and groups.

    Devs for Magic Fields, please validate the custom field name for dashes or fix the javascript to account for dashes in the custom field name.

    Thanks.

  8. Gnuget
    Member
    Posted 4 years ago #

    hello Spencersokol

    you are right, in the new versiĆ³n of magic fields this issue of the images will be fixed,

  9. Chris Bratlien
    Member
    Posted 4 years ago #

    Magic Fields team, you guys rock the planet. @Spencersokol, you rock the universe thanks to your workaround.

  10. relish1227
    Member
    Posted 4 years ago #

    I agree with @chrisbratlien! Thanks @spencersokol -- and THANK YOU Magic fields.

  11. gxsblogs
    Member
    Posted 3 years ago #

    We're having the same issue -where Magic Fields isn't duplicating - and it only seems recent. There are no dashes in the field names. We've disabled all plugins and it still won't work. The funny thing is we have a duplicate environment on the same server and that one works so we're lost as to what would kill it?

Topic Closed

This topic has been closed to new replies.

About this Topic