Controller/Admin/State.php
public function block()
    {
        $request = Registry::getRequest();
        $data = $request->getRequestParameter('data');
        DatabaseProvider::getDb(DatabaseProvider::FETCH_MODE_ASSOC)->execute(
        "UPDATE oxtplblocks SET OXACTIVE = NOT OXACTIVE WHERE OXID = ?",[$data]);
    }
public function block()
    {
        $request = Registry::getRequest();
        $data = $request->getRequestParameter('data');
        DatabaseProvider::getDb(DatabaseProvider::FETCH_MODE_ASSOC)->execute(
        "UPDATE oxtplblocks SET OXACTIVE = NOT OXACTIVE WHERE OXID = ?",[$data]);
    }
Fix module settings.