• Resolved demyrps

    (@demyrps)


    I accidentally deleted the plugin’s database table and now it’s broken. I’ve tried uninstalling and reinstalling the plugin, but it doesn’t regenerate the table. What can I do?

    • This topic was modified 7 years, 5 months ago by demyrps.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there,
    you have to force the creation of the table.
    Please open the file wp-content\plugins\yith-desktop-notifications-for-woocommerce\includes\class.yith-wcdn-desktop-notifications-db.php and scroll the file until the method install.
    Change the code like following code.

    From

    public static function install() {
                self::create_db_table();
            }

    To

    public static function install() {
                self::create_db_table(true);
            }

    After that, save the changes and open one page of your site, anything, not important.
    The table should be created.
    If yes, you can reset the code at the previous version.
    I hope to be helpful for you.

    • This reply was modified 7 years, 5 months ago by YITHEMES.
    Thread Starter demyrps

    (@demyrps)

    That worked great, thanks!

    Plugin Author YITHEMES

    (@yithemes)

    Hi there,
    very happy to see that my suggestion has helped you 🙂
    If you’re happy of our support, it would be fantastic receive your review at
    https://ww.wp.xz.cn/support/plugin/yith-desktop-notifications-for-woocommerce/reviews/#new-post

    Many thanks for your time.
    Have a nice day!

    • This reply was modified 7 years, 5 months ago by YITHEMES.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Database Table’ is closed to new replies.