Magento – Database not updated with module

databasemagento2module

I've downloaded the .zip of a module (for a slider), extracted it and ran setup:upgrade.

I can see the module through the backend, but when I go to the page to main page I have this error :

SQLSTATE[42S02]: Base table or view not found: 1146 Table
'magento.sy_slider' doesn't exist, query was: SELECT COUNT(*) FROM
sy_slider AS main_table

I tried many thing to update the database, but nothing changed.

Best Answer

You need to try re-install extension with this steps.

  1. Identify Magento 2 extension name, you can get name from registration.php.
  2. Remove extension entry from app/etc/config.php (entry identify from step1)
  3. Remove extension entry from setup_module table in magento database. (entry identify from step1)
  4. After remove the things, please also run these commands.

    php bin/magento cache:clean
    php bin/magento cache:flush
    php bin/magento indexer:reindex
    php bin/magento setup:upgrade
    php bin/magento setup:static-content:deploy
    
Related Topic