We have Forena installed on a server that doesn't have the PDO driver for Sqllite and would like to remove all references to the Sample DB repository so that Forena pages don't display an error about the missing driver. The users see a lot of:
PDO driver support for sqlite not installed
I first tried removing permissions on the SampleDB repository as mentioned in one thread in the issue queue. This had no effect and the error message was still displayed.
I have tried using drupal_alter to remove the repos:
function mymodule_forena_repos_alter(&$repos) {
if(isset($repos['forena_help'])){
unset($repos['forena_help']);
}
if(isset($repos['sampledb'])){
unset($repos['sampledb']);
}
}
I then get a new error:
Undefined repositorysampledb
Undefined repositoryforena_help
I have tried patching the Forena module to unset the settings.php
variables inside the sampledb folder. That also gives a new error along the lines of "PDO Driver not found".
How do I remove all references to the SampleDB repo? I would also like to remove the Forena Help and Drupal Admin repos if possible.