• Resolved dragon18

    (@dragon18)


    Your plugin is best I found for the moment so far. However, I have an issue with it.
    I installed it in a testing hosing and now I want to move it to another hosting. Both wordpress installations are multisite.

    I exported all the tables related to the site ID and imported them to the new place. Site ID within multisite was changed.

    I installed plugin in new place. Everything works in frontend, but in the backend I have errors.

    First – process previous posts button leads to 500 error.
    Second – saving of any post also leads to 500 error, if the plugin is activated.
    Third – ‘get tags’ function in the post also doesn’t work. I can only see already generated list of tags, changing the post text completely doesn’t replace that tags, as it should be in normally operating plugin.

    My questions are – what I did wrong during the migration?
    Where the plugin stores its data? I found some records in the postmeta table. How to locate the records with plugin’s data?

    I also noted that even after removing plugin and its data (as stated in the warning at removal) not all its data are removed. After reinstalling the plugin I see all the manually added relations and all the css changes I made within the plugin.

    CP Related Posts also doesn’t work in other multisites in this new installation.

    • This topic was modified 7 years, 11 months ago by dragon18.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello,

    As I’ve answered to your ticket in our private website, it is very probable that the database and plugin’s code were not migrated as should to the new website, because if the conditions in both websites are just the same (database and code) the plugin should be working fine, unfortunately I cannot tell you what the problem is because I don’t know exactly what you did.

    – The plugin’s code is located into the directory: “/wp-content/plugins/cp-related-posts”, so, you should upload the same directory to the new website.

    – The posts tags are stored in the database’s table “postmeta” (using the database prefix defined in your website), in those rows where the “meta_key” column is equal to: “cprp_tags”

    – If you have related posts manually, the “postmeta” table should contain rows where the “meta_key” column contains the value: “cprp_manually_related”

    Best regards.

    Thread Starter dragon18

    (@dragon18)

    @codepeople, thank you for the fast answer

    “/wp-content/plugins/cp-related-posts” are with same files

    Can I delete all records with cprp_tags to have ‘process previous posts’ working?

    Where are the settings of the plugin stored (I mean the data and selections from the plugin settings page)?

    Plugin Author codepeople

    (@codepeople)

    Hello,

    You can delete the postsmeta if you want. About the plugin’s settings, they are stored in the “options” table, specifically in the row where the “option_name” column has the value: “cprp_settings”

    Best regards.

    Thread Starter dragon18

    (@dragon18)

    I switched error logging on and now see the following:

    Fatal error: Call to undefined function mb_split() in /home/…/public_html/wp-content/plugins/cp-related-posts/includes/tools.clss.php on line 18

    php version is 5.6.30

    I changed mb_split(“\s+” to preg_split(“/\s+/”
    and now have

    Fatal error: Call to undefined function mb_convert_encoding() in /home/…/public_html/wp-content/plugins/cp-related-posts/includes/tools.clss.php on line 34

    I activated mbstring extension in my php and had success conversion for the processing previous posts.

    • This reply was modified 7 years, 11 months ago by dragon18.
    • This reply was modified 7 years, 11 months ago by dragon18.
    Plugin Author codepeople

    (@codepeople)

    Hello,

    Perfect, then, all is working fine now after activate the “mbstring” extension. thank you very much for sharing your solution.

    Best regards.

    Thread Starter dragon18

    (@dragon18)

    yes, thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Migrating plugin data to new site’ is closed to new replies.