PDOException thrown with message "SQLSTATE[42S02]: Base table or view not found


(Fpbx135) #1

Hello there,
I am getting this error when ever I try to log onto the GUI:
"PDOException thrown with message “SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘asterisk.freepbx_settings’ doesn’t exist”

Stacktrace:
#10 PDOException in /var/www/html/admin/libraries/BMO/Config.class.php:218
#9 PDOStatement:execute in /var/www/html/admin/libraries/BMO/Config.class.php:218
#8 FreePBX\Config:__construct in /var/www/html/admin/libraries/BMO/Self_Helper.class.php:124
#7 FreePBX\Self_Helper:autoLoad in /var/www/html/admin/libraries/BMO/Self_Helper.class.php:37
#6 FreePBX\Self_Helper:__get in /var/www/html/admin/libraries/BMO/Freepbx_conf.class.php:20
#5 FreePBX\Freepbx_conf:__construct in /var/www/html/admin/libraries/BMO/Self_Helper.class.php:124
#4 FreePBX\Self_Helper:autoLoad in /var/www/html/admin/libraries/BMO/Self_Helper.class.php:53
#3 FreePBX\Self_Helper:__call in /var/www/html/admin/bootstrap.php:164
#2 FreePBX:Freepbx_conf in /var/www/html/admin/bootstrap.php:164
#1 require_once in /etc/freepbx.conf:11
#0 include_once in /var/www/html/admin/config.php:127"

What can I do to solve this?