WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
merge_array error after importing xml in 3.5.1 (2 posts)

  1. Robert.Vidrine
    Member
    Posted 1 year ago #

    I love this plugin, and am very close to rolling out an update to a site using it, but am having trouble with the import XML feature in 3.5.1.
    I have created the field group in a local dev environment, and then exported the XML (to a different local dev environment actually), but get an error on the merge_array function in several places after the import. This shows up when I try to edit the field group, on the page that uses the template which utilizes the field group, and perhaps other places as well.
    I saw a post in the forums on your plugin site regarding this, but don't have credentials on your site. Hopefully you don't mind me posting here as this really isn't exactly a duplicate post.
    merge_array error:

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in D:\xampp\htdocs\dev\wp-content\plugins\advanced-custom-fields\acf.php on line 658

    I looked in the XML export and also found an error there:

    <b>Notice</b>: Undefined index: value in <b>D:\xampp\htdocs\trunk\wp-content\plugins\advanced-custom-fields\core\views\meta_box_fields.php</b> on line <b>245</b>

    I don't currently have this anywhere live (until I figure this out), but would be glad to send/post the XML export file if you tell me where you'd like it.

    Thank you very much for your help and a great plugin!

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  2. Robert.Vidrine
    Member
    Posted 1 year ago #

    So, this is a little different in 3.5.3.1, but I still can't import the XML. I am no longer getting the merge_array error, but when I try to edit the field group in the site into which I've imported it, I get many "unitialized variable" errors, apparently for each field in the field group editor screen. (It's repeated all over the screen, in various locations.)
    I have two separate local installs on my computer that I use for development and testing, and have tried over and over to get this to work, deleting from the posts table all of the posts of type acf in between, but have yet to find a way to get the XML import to work. The PHP "export/paste into functions" method works fine, but since it's explicitly naming the value of each of the options, it's not modifiable other than directly editing the PHP code (or just redoing it in my other install, copying and pasting again).

    The ability to export the acf field groups, so they are editable on another site, is a great feature, but I have yet to get it to work. If I can provide any other information, including my field group or whatever, please let me know. This is a great plugin, and I would really like for this feature to work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic