open code editor and replace this lines.
wp-content/copy-or-move-comments/copy_move_comments.php line 118
$post_types = get_post_types();
wp-content/copy-or-move-comments/copy_move_comments.php line 157
$target_post_types = get_post_types();
save changes and upload file. its ok !
Fatal error: Uncaught Error: array_pop(): Argument #1 ($array) must be of type array, null given
in …/copy-or-move-comments/copy_move_comments.php?on line?603
This plugin sounds like what I need, except for all the recent posts about issues. Are there plans to update this plugin soon? Or has this plugin been abandoned? Thanks!
]]>Please see:
]]>Plugin stopped working. I’m guessing due to PHP 8.
Throws fatal error:
PHP Fatal error: Uncaught TypeError: array_pop(): Argument #1 ($array) must be of type array, null given in …./wp-content/plugins/copy-or-move-comments/copy_move_comments.php:461
]]>Hello. I’m sorry but your FAQ was not clear to me. What I would like to do is move a comment from the Welcome post/category to a different category that does not already have an original post. In other words… when moving the category I can move the author’s comment to a new post. Is that possible ??
Clear as mud ??
Thank you,
Charles
As of the latest version (5.0.3), custom post types no longer appear as an option in the drop-down menu. Only Post and Page appear in the menu.
(The custom post type that my website uses is the one created by the Events Manger plugin.)
I’ve reinstalled the previous version, but I’m hoping you’ll be able to fix this, as otherwise I’ll be stuck using an unsupported version of your very useful plugin.
]]>When trying to use this plugin on a site running PHP 8, a fatal error is thrown, a long with a whole bunch of warnings, for example:
PHP Fatal error: Uncaught TypeError: array_pop(): Argument #1 ($array) must be of type array, null given in /MY_SITE_ROOT/public_html/wp-content/plugins/copy-or-move-comments/copy_move_comments.php:468
Stack trace:
#0 /MY_SITE_ROOT/public_html/wp-content/plugins/copy-or-move-comments/copy_move_comments.php(468): array_pop(NULL)
#1 /MY_SITE_ROOT/public_html/wp-includes/class-wp-hook.php(303): get_post_comments_callback('')
#2 /MY_SITE_ROOT/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)
#3 /MY_SITE_ROOT/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#4 /MY_SITE_ROOT/public_html/wp-admin/admin-ajax.php(187): do_action('wp_ajax_get_pos...')
#5 {main}
thrown in /MY_SITE_ROOT/public_html/wp-content/plugins/copy-or-move-comments/copy_move_comments.php on line 468
PHP Warning: Undefined variable $cls in /MY_SITE_ROOT/public_html/wp-content/plugins/copy-or-move-comments/copy_move_comments.php on line 408
PHP Fatal error: Uncaught TypeError: array_pop(): Argument #1 ($array) must be of type array, null given in /MY_SITE_ROOT/public_html/wp-content/plugins/copy-or-move-comments/copy_move_comments.php:468
Stack trace:
#0 /MY_SITE_ROOT/public_html/wp-content/plugins/copy-or-move-comments/copy_move_comments.php(468): array_pop(NULL)
#1 /MY_SITE_ROOT/public_html/wp-includes/class-wp-hook.php(303): get_post_comments_callback('')
#2 /MY_SITE_ROOT/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)
#3 /MY_SITE_ROOT/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#4 /MY_SITE_ROOT/public_html/wp-admin/admin-ajax.php(187): do_action('wp_ajax_get_pos...')
#5 {main}
thrown in /MY_SITE_ROOT/public_html/wp-content/plugins/copy-or-move-comments/copy_move_comments.php on line 468
PHP Warning: Undefined array key "target_post_id" in /MY_SITE_ROOT/public_html/wp-content/plugins/move-comments/move-comments.php on line 80
PHP Warning: Undefined array key "source_post_id" in /MY_SITE_ROOT/public_html/wp-content/plugins/move-comments/move-comments.php on line 152
PHP Warning: Undefined array key "source_post_id" in /MY_SITE_ROOT/public_html/wp-content/plugins/move-comments/move-comments.php on line 191
PHP Warning: Undefined array key "target_post_id" in /MY_SITE_ROOT/public_html/wp-content/plugins/move-comments/move-comments.php on line 325
PHP Warning: Trying to access array offset on value of type null in /MY_SITE_ROOT/public_html/wp-content/plugins/move-comments/move-comments.php on line 338
PHP Warning: Undefined array key "move_comment_id" in /MY_SITE_ROOT/public_html/wp-content/plugins/move-comments/move-comments.php on line 267
Basically, PHP 8 is a lot stricter about type safety, so you need to add some null-checks to make sure you don’t pass null into functions that expect arrays.
]]>The plugin stopped working for me, as it has for others, a few months ago (it simply had no effect). On trying again today though, it had a different effect – any ‘moved’ comments were taken off the original post but did not appear on the selected new post. They were still listed under All Comments, and the link was to the original post, but they did not appear on that post any more. I had to delete and reconstruct them as new comments.
I understand this is a free plugin, and we shouldn’t expect prompt updates or support, but I’d be more than happy to pay $$$ for one which did work! The only other plugin I can find which performs the same function has also stopped working.
]]>Hi! I found some bugs. If I move comments to another post and try to edit it, wordpress show old parent post in ‘In response to:’ and in ‘Permalink’. So, if now I edit and save this comments it will be returned to parent post. Not sure, but maybe this due to object cache?
]]>but click the button don’t work.
]]>Hi,
seen your comment on https://www.ads-software.com/support/topic/multisites-10/
I have the same requirement and I think it’s not total uncommon. Let me explain my setup:
Multisite for a company that runs various business units. Each one has it’s own website – or sometimes several language versions of that particular website build on MultilingualPress 3. Which itself is founded on multisite.
During an overhaul/redesign of one of those particular sites the new version is developed under a new sub. Comments that can occur on the live site meanwhile could easily pushed over to the dev site once it will leave this status and get’s published as the new live site
best regards Stefan
]]>Last time we used it about a year ago, it worked well. Unfortunately, it doesn’t anymore.
]]>Plugin stopped working after upgrade 5.7
Any suggest?
I periodically use Copy/Move Comments because my students sometimes post their HW responses in the wrong place. I mention this because it means that I can attest to using the plugin about once every week or two.
As of today, a few days after updating to WP 5.7, here’s the behavior I’m seeing: after filling in which post/page I want to move a comment from, I get a list of comments I can move. I check off the comment I want to move, then select a target post. All that works just fine. But when I click the “Perform Action” button, nothing happens.
]]>Hello,
Great plugin! I didn’t see that this was possible in the current version but wondering if it could be added as a future feature?
Thank you
]]>Hi,
I can move the comments with the star rating which is great but when I copy the comments to a different area the star rating is not shown so the comments do not appear. In the admin area the copied comments can be viewed the stars have a black outline they are not yellow like the original ones. I have used PHP myadmin to check the database but can’t locate the star ratings.
Any help would be appreciated.
]]>I have hundreds of pages and I cannot find my home page in the “page” dropdown. Please consider showing PageIDs in the dropdown also and search. Thanks
]]>I have recently discovered that Comments and replies of several posts for this website were in the wrong order. In some cases, there were two or three or more comments posted back to back to back and then followed by m replies to those comments.
I tried to fix this issue by editing the dates which did work but now the correct reply is above the correct comment instead of underneath it and the replies are not indented.
It seems that all the replies and comments have somehow all been posted as comments. I need to fix this so it doesn’t happen again. I also need to know what is the correct way to respond to a comment. Do I approve first and then reply or do I reply and then approve. I am very confused.
Could have been something I did, I’m not sure. I am at my wit’s end and ready to through in the towel.
Wayne
]]>I have installed this plug in and it appears to do almost everything I need it to do, with one small exception. I use Ultimate member for reviews. If I want to move a comment from anywhere on the site to a review, it does not seem possible to identify which review I want to move it to. The reviews are all displayed with the same name and no relevant number etc. Any ideas on how to resolve this
]]>I get the message
Too few arguments to function wpdb::prepare(), 1 passed in /web/htdocs/www.tourist-in-rom.com/home/wp-content/plugins/copy-or-move-comments/copy_move_functions.php on line 147 and exactly 2 expected
So I made a new page to remove the comments from the Home Page to clean it up, and downloaded this plugin and tried to move my comments to a page called Reviews. Now the comments didn’t deleted because they’re still on my wp-admin comment section, but they’re not showing on my new page. How can I fix this?
]]>I tried copying a few comments from one page to another and got the following error message (changed my site name to “mysite” in the strings below)
==================
Warning: in_array() expects parameter 2 to be array, null given in /home/mysite/public_html/wp-content/plugins/copy-or-move-comments/copy_move_comments.php on line 588
919
935
953
– 957
954
Warning: Cannot modify header information – headers already sent by (output started at /home/mysite/public_html/wp-content/plugins/copy-or-move-comments/copy_move_comments.php:588) in /mysite/public_html/wp-includes/pluggable.php on line 1174
===================
The plugin seems much needed and great if I can get it working, I’m using WordPress 4.6.11, please advise, thanks.
]]>Hi, I just moved an unregistered user’s comment to a different post. The user didn’t have an avatar before I moved the comment (just a “mystery person” image assigned by wordpress). However, after moving the comment, my avatar appeared with the comment as if I were that user! I have had to turn off the avatar display as it looks as if I am leaving comments under a different name on my own posts! How can I remove my avatar from the user’s comment? Help please!
]]>Hi guys, when i try search a post the which was move to draft, it not shows in the list. I can’t move its commentaries
]]>I’m using this plugin to copy reviews in my WooCommerce store to multiple versions of the same product (so that the reviews still apply to the product I’m moving them to). Problem is, this plugin won’t move the star review with the review comment.
If you look at the page I linked in this ticket, you’ll see three reviews I moved manually, with stars, and the two I used your plugin to move, which have no stars.
How can we fix this? I noticed another ticket in this forum that mentions the same problem.
]]>Hi,
It feels like this plugin ought to be the answer to my problems, but I need some guidance. Your FAQ says this plugin works with multisites. But how?
I have installed it on my multisite and made it network activated. I can find it as a tab on both the sites I want to work with BUT…
As far as I can see I can only move comments *within* one site. I’m merging two of my sites on the multisite and I want to move comments *from* one site to the *other*. I can’t see how to get your plugin to do this. Any advice?
Example: I want to move the existing comments under this post:
https://stopsandstories.thesupercargo.com/jazz/
To become comments under this post:
https://www.thesupercargo.com/jazz/
Your plugin just deleted all of my comments instead of moving them. There was an error message about a mysql query but unfortunately I didn’t note it.
]]>Hello I just installed the plugin and I see different bug on it..
ON the coppy/move comment tab and on the settings tab there is 2 errors
Notice : Undefined index: success in /var/www/…/plugins/copy-or-move-comments/copy_move_comments.php on line 651
Notice: Undefined index: error in /var/www/…/plugins/copy-or-move-comments/copy_move_comments.php on line 663
What can I do ? the version is 4.0.1
]]>Hi,
The plugin works great, but we need our Editors to be able to use it as well.
I’ve modified the core file, but is there any other way other than modifying the core plugin file?
Or would you consider at least adding a filter so it can be changed if someone needs to?
Thanks in advance
]]>