I tried to duplicate a WooCommerce product, and it produced the following fatal error:
PHP Fatal error: Uncaught TypeError: array_map(): Argument #2 ($array) must be of type array, string given in /var/www/vhosts/ah/html/wp-content/plugins/multisite-post-duplicator/addons/bulkaction-mpd-addon.php:101
Stack trace: 0 /var/www/vhosts/ah/html/wp-content/plugins/multisite-post-duplicator/addons/bulkaction-mpd-addon.php(101): array_map() 1 /var/www/vhosts/ah/html/wp-includes/class-wp-hook.php(324): mpd_bulk_action() 2 /var/www/vhosts/ah/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 3 /var/www/vhosts/ah/html/wp-includes/plugin.php(517): WP_Hook->do_action() 4 /var/www/vhosts/ah/html/wp-admin/admin.php(385): do_action() 5 /var/www/vhosts/ah/html/wp-admin/edit.php(10): require_once(‘…’) 6 {main}
thrown in /var/www/vhosts/ah/html/wp-content/plugins/multisite-post-duplicator/addons/bulkaction-mpd-addon.php on line 101
Only after deactivating multisite post duplicator, I could duplicate my product within the same site.
]]>Hi, I’ve been looking for a solution to replace this plugin I was using in many places, without any luck.
Plugin was not working for me since lastest WP updates and I have several projects I cant spend hours on fixing the script.
I found very difficult to replace it, but finally I found a plugin is working with ACFPRO, Flexible fields, galleries, and so, as good as this plugin was doing before it was not getting more updates.
I hope that could help those who are looking for an option for copy content in multisite projects.
https://rudrastyh.com/plugins/simple-multisite-crossposting
For ACF PRO you need an addon.
https://rudrastyh.com/support/crossposting-acf-relationship-fields
When I copy a Gutenberg post with images, I get the error message:
This block contains invalid and unexpected content.
I can attempt block recovery and it works, but I cannot choose the image size, and in the source set, there is only one image size, while there are several sizes available. I would like to get the source set to work, so that the correct image size is served.
The attachments are duplicated, but the file points to the wrong directory. Files are placed in current year/month folder, but pointer keeps the original (not migrated). Th meta key js _wp_attached_file
.
Would be very useful if fixed. Attachments is the post type I need to duplicate to sibling site.
]]>When I create a page the MPD panel disappeared in the editor. It is also not available when editing the settings where you can enable or disable side panels in the editor.
Did some updates disable the plug in? I really liked the duplication link/syndication option…
]]>Hallo,
It would be really cool if we could update a post/page without updating the linked post/page, without removing and readding the link between the post.
This would be very helpful for syncing between a develop and production multisite.
]]>Hi,
I’m using a multisite setup along with multisite shared media plugin.
The way it works is that it keeps all uploaded images in the main subsite media folder and the other subsites use pointers to it.
This doesn’t play very well in conjunction with the MPD, unless copying to destination media library is disabled. When it is disabled, it works, however it still creates a copy of the image in the origin subsite media library.
Any idea how we can avoid this image copying?
Regards
]]>When I′m duplicating the post to the other blogs (I use the Divi theme) it also put the logo of the website of the post that I duplicate in the others, as well as the phones and the e-mail and the color of the secondary menu.
]]>Trying to not copy pricing in woocommerce to other network sites. Tried using the meta post to ignore with _regular_price but still overwrites price when the main site is updated. Is there something i am doing wrong?
]]>I am using Flatsome theme.
I build page by UX Builder.
Can you please help to solve this ?
Warning: Invalid argument supplied for foreach() in /home/gami/web/***/public_html/wp-content/themes/***/functions.php on line 186
]]>Hi – after installing the plugin and before saving the options I got lots of warnings about undefined $options['master_site_setting'];
in restrictSites-mpd-addon.php:325.
I think you should add a default option or just change the line to:
$master_id = isset($options['master_site_setting']) ? $options['master_site_setting'] : null;
Hi,
if i would like to save a post, i get an fatal error
[22-Aug-2019 08:56:10 UTC] PHP Fatal error: Uncaught InvalidArgumentException: incorrect post type in /PATH/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/field/group/post.php:69
Stack trace:
#0 /PATH/wp-content/plugins/types/application/models/field/group/repeatable/service.php(605): Toolset_Field_Group_Post->__construct(Object(WP_Post))
#1 /PATH/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/field/group/post_factory.php(381): Types_Field_Group_Repeatable_Service->group_contains_rfg_or_prf(37)
#2 [internal function]: Toolset_Field_Group_Post_Factory->{closure}(Object(OTGS\Toolset\Common\Field\Group\GroupDisplayResult))
#3 /PATH/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/field/group/post_factory.php(258): array_filter(Array, Object(Closure))
#4 /PATH/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/field/group/p in /PATH/wp-content/plugins/types/vendor/toolset/toolset-common/inc/autoloaded/field/group/post.php on line 69
With echo
echo self::POST_TYPE . ' / ' . $field_group_post->post_type;
i get
wp-types-group / revision
If i deactivate your Plugin the post is save correctly.
]]>Hi,
images files in from ACF Pro Gallery field are not copied, but the entries are made in the database. I see grey-blanked preview (in the ACF Gallery field) in the post.
Is this error known?
br Tom
]]>If a 2019 post contains images that were uploaded in the previous year, e.g. 2018, they will not be duplicated when I try to duplicate my new 2019 post from site #1 to site #2. The duplicated post’s source code (on site #2) shows the image (which isn’t visible) is in today’s month/year’s folder (of site #2). Checking the server, no image was created in that location. That image does not exist anywhere else already in site #2.
If I have images uploaded within 2019 in my 2019 post, they are copied over when duplicated and I can verify that the images are now added to the current month/year’s folder of site #2.
Is anyone else experiencing this?
]]>Hi team,
First at all congratulations for the great plugin.
I have been trying this functionality with different sub-sites administrators (NOt Super Admins), and they are not able to Duplicate posts. They don’t see that option. Just Super Admins seems to bea ble to use MPD.
In settings, I select “Administrator” user role as “Minimum user role allowed to use MPD” and hit save.
Any help? This is super urgent for us.
Thank you very much.
Thanks! Love the plugin by the way!
]]>Hi,
My multisite is heavily using ACF PRO. When i try to copy some page where there is a repeater with acf post object, the copy shows empty repeater meaning that the post objects set in the original page repeater are not copied as well neither are used as links from the source site (in case i link the source and the destination).
Any idea if post objects and any such field types can be linked to be used in the destination page?
Thanks
]]>Hello,
After installing this plugin custom menu with categories stopped working. Test with several themes.
Any ideas??
]]>Plugin is great, but I cannot use it anymore.
When I activate it, it shows 4 cats (out of 40) when activating the plugin?
Please before activating the plugin:
https://snag.gy/VO6zk0.jpg
https://snag.gy/LPgkCm.jpg
After activating the plugin:
https://snag.gy/dfM8ik.jpg
https://snag.gy/A7IQHW.jpg
Can you please reply please, I really need to fix this.
Please tell me what files should I look for.
I cannot find the function causing the issue within the includes folder.
Please help
Thanks
Hi,
it would be great, if you add some filter to custom roles – because now I must add to role capability activate_plugins and manage_network_plugins to be able create copy to another website. The best solution is when I can set it this for specific role lie:
add_filter('my_specific_role', function($roles) {
$roles['my_role_name'] = 'edit_posts';
return $roles;
});
]]>
Thanks for a great plugin!
Is there a way to link back to the original post page (subsite), when a visitor click on the post on main site?
Thanks
]]>Will this be updated to officially support WordPress 5.x?
Thanks!
]]>Hi,
I have been tasked with the job to create a mastersite ie: site.com
I then need to create a ‘mini’ site for each location where my client has an office by way of a subdomain ie: loc1.site.com
As the master site will have the important pages like terms and conditions and privacy policy but the client would like to load these pages onto the ‘mini’ location sites too.
This causes me 2 problems duplicating these pages and keeping them upto date.
Would this plaugin allow me to load in a page from the mastersite into a minisite?
For example:
loc1.site.com/terms_and_conditions loads the content from site.com/terms_and_conditions
?
So keeping the url as loc1.site.com/terms_and_conditions and meaning if i need to update the page terms_and_conditions i just need to do it in one place (the mastersite)
Thanks
Trevor
Hello,
I am new using you nice plugin, very useful.
I an using French language in my posts, which may contains some accents character such as é, è, à …
After duplicating a Post, accents seems to be replaced by a strange sequence of characters, eg. :
Ce samedi 19 et Dimanche 20 Janvier 2019, nos judokas ont eu trois compétitions différentes.
becomes :
Ce samedi 19 et Dimanche 20 Janvier 2019, nos judokas ont eu trois compu00e9titions diffu00e9rentes.
Please note: I am using the Elementor editor to create my posts.
TY.
Some functions are missing the use of arguments.
For example on version ^1.7
function mpd_process_persist( $post_id, $destination_id, $created_post = false){
if(isset($_POST['persist'])){
$args = array(
'source_id' => get_current_blog_id(),
'destination_id' => $destination_id,
'source_post_id' => $_POST['ID'],
'destination_post_id' => $created_post['id']
);
mpd_add_persist($args);
}
}
Look how you are using ‘source_post_id’ => $_POST[‘ID’], instead the argument $post_id
]]>I found your plugin (Multisite Post Duplicator) very useful for copying the posts from main site to sub sites.
But is there any way i could enable copying from sub site only to main site?
So that users could copy their posts to my main site but not to any other sub sites between them?
Im thinking that editors or admins of sub sites could have an option or checkbox – Post on main site.
Do you understand what would i need from what i wrote?
I thank you very much for any answer and help.
And also a big thank you for making this plugin really.
Hi, first: I love the plugin. Thank you for your work.
My Question is:
Is there a way to automatically link duplicate posts based on their category.
So on the main site, when a post is created with the Category “A”, I wanto to link duplicate it to the page A.
If cat “B” it should go to B and it cat “AB” it should go to both.
Is this possible?
]]>When i have add post in admin pannel then global blog author id is stored correctly but sub domain blog is not store correctly while configuration is correct.
]]>As title says. Please see link attached to this topic for a bug report with a provided fix. It’s not yet implemented.
I still use filters to fix it outside of your plugin, but it’d be good to get this fixed properly.
Thanks a lot for your time.
]]>Hello,
My debug log is full with PHP Notices
Undefined index: master_site_setting in /home/sitename/public_html/wp-content/plugins/multisite-post-duplicator/addons/restrictSites-mpd-addon.php on line 325
Please advise.
]]>Hello,
I have jetpack’s publicize connected to 2 FB pages, one to the main site and one to site 2. Whenever I have checked duplicate to site 2 and have publicize checked to FB page for site 2 and “save draft”, the duplicated content gets copied to site 2, however, the duplicated content on site 2 gets publicized on the FB page of site 2. I’m not sure if it’s the plugin that’s causing that or if it’s jetpack’s publicize feature, but this seems to be an issue. Could you possibly provide some possibilities or directions on how to resolve this? Thank you in advance. I am on WP 4.9.8.
]]>