Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
361 views
in Plugins by

I am testing in the localhost this plugin 

http://www.question2answer.org/qa/9746/what-all-needs-to-be-done-for-merging-questions?show=9746#q9746

It seems to be working very well and every time that I use it, (in the admin/plugin) I receive a message (in green) "Posts merged" and another message (in red) "Error merging posts".

What must be happening?

1) I checked the source question and it seems to be working well

2) I checked the url of the question "from" and it redirects successfully to the "to" question.

What can be going wrong?

Q2A version: 1.7.0

1 Answer

+2 votes
by
selected by
 
Best answer
It seems the function is actually being called twice. So the first message is a success and the second is an error because you can't merge twice.

Considering NoahY has not been seen for 2 years now I decided to fork the repository and made some other improvements. There are a lot of refactors to be made but it is a first step.

You can download the code from here: https://github.com/pupi1985/q2a-post-merge
by
Refactors? Is there still something serious that someone should worry about?
by
I didn't see any bugs there (apart from the ones I fixed). But I mean changes in the code that would make it simpler and hence easier to read
...