• Resolved wilmerlm11

    (@wilmerlm11)


    Hi,

    The error below is being thrown everytime, because the plugin keeps trying to rename the contacts table, even if the table is already there:

    [Table ‘wp_sib_model_contact’ already exists]
    ALTER TABLE sib_model_contact RENAME TO wp_sib_model_contact;

    It resides in
    woocommerce-sendinblue-newsletter-subscription\woocommerce-sendinblue.php

    SIB_Model_Contact::add_prefix();
    SIB_Model_Country::add_prefix();

    Is the plugin supposed to do that everytime?

    Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Same issue here from 3 months ago…

    [09-Feb-2021 08:54:38 UTC] Error Table ‘wp_sib_model_contact’ already exists de la base de datos de WordPress para la consulta ALTER TABLE sib_model_contact RENAME TO wp_sib_model_contact; realizada por require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), include_once(‘/plugins/woocommerce-sendinblue-newsletter-subscription/woocommerce-sendinblue.php’), WC_Sendinblue_Integration->__construct, SIB_Model_Contact::add_prefix
    [09-Feb-2021 08:54:38 UTC] Error Table ‘wp_sib_model_country’ already exists de la base de datos de WordPress para la consulta ALTER TABLE sib_model_country RENAME TO wp_sib_model_country; realizada por require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), include_once(‘/plugins/woocommerce-sendinblue-newsletter-subscription/woocommerce-sendinblue.php’), WC_Sendinblue_Integration->__construct, SIB_Model_Country::add_prefix

    Thread Starter wilmerlm11

    (@wilmerlm11)

    Hi,

    For those who are facing this problem…

    SendInBlue support will only ask you to delete and reinstall the module.
    It won’t work and you will still have to reintegrate it with SiB.

    The root cause for this issue is that some previous installation left a table name “sib_model_contact” there, while a new installation, created “wp_sib_model_contact”.
    With that, the code will see this “sib_model_contact” table and will try to rename it to “wp_sib_model_contact”. Since this table already exists, it will throw an error.

    In order to fix it, just remove the former table.
    DROP TABLE sib_model_contact;

    Just check if any data migration is needed first.

    Plugin Author Brevo

    (@neeraj_slit)

    Hi there,

    Thank you for bringing this up and we appreciate the alternative solution suggested by you. I am sure that this would definitely work and we have even asked our Development team to handle in near future.

    I would further like to inform you that the above reported issue generally comes up when Old version of the plugin has not been disabled/uninstalled properly and in parallel the latest version of the API ( V3) is being used.

    In the above cases , we recommend our clients to completely uninstall the older version and install the new one so as to avoid such situation.

    I would like to thank again for analysing the root cause and suggesting the alternative ??

    Thread Starter wilmerlm11

    (@wilmerlm11)

    No worries!
    Glad to help!

    I really tried in different ways to completely uninstall the plugin, but I guess deleting the old table is not part of the removal routine.
    That’t why I did that manually and it worked like a charm.

    Thanks for your response and kindness.
    You and the support team have been really solicitous anyway.
    5 stars.

    Plugin Author Brevo

    (@neeraj_slit)

    Hello @wilmerlm11

    Glad to hear that :). We always try to help our customers in the best possible way. We again thank you in suggesting the alternate solution.

    Have a good day!

    Regards,

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Throws error trying to add table prefix everytime’ is closed to new replies.