Roundcube Community Forum

 

Database error:connection failed - Plugin_manager

Started by megadeth23, November 30, 2013, 01:45:35 PM

Previous topic - Next topic

megadeth23

I am successfully running an IredMail server which also came with roundcube by default. Let me say first that both the E-mail server and roundcube are working great. The only thing I would like to change is to add a register option so that users could just create there own e-mail accounts. I have done some research on this and believe I have found the plugin needed to make this happen. register plugin (which also requires taskbar plugin) However to install both of these I also need the plugin_Manager plugin. But I have been unsuccessful in the installation of plugin_manager up to this point. Once I add it to the main.inc.php file, I get a DATABASE ERROR:CONNECTION FAILED every time I navigate to my roundcube webmail site

This is what I have done so far:

*I have downloaded and unzipped this plugin.

*I moved the files ( codemirror_ui, db_version, http_request, plugin_manager. qtip and settings) to the plugin folder of my roundcube installation.

*I have ensured that my main.inc.php file (located in {roundcube folder path}/config) reads $rcmail_config['plugins'] = array("plugin_manager");

*I have ensured that my db.inc.php file (same loaction as above) reads : $rcmail_config ['db_dsnw'] = "mysqli://{my_user}:{my_password}@localhost/roundcubemail";

* I ensured the user in db.inc.php file has the following roundcubemail database permissions SELECT INSERT UPDATE DELETE CREATE DROP INDEX ALTER

*Roundcube loads fine again once I remove plugin_manage from main.inc.php.

* I have not added an admin to the plugin manager config.inc.php.dist (or config.inc.php) file as it does not exist in my current installation (from what I have read online, i believe this file get created when plugin "runs" [for lack of a better term] for the first time. I am also certain that until I can clear this error that wont happen)

can someone please tell me what I am missing, or if I'm even approaching this the right way? Any help you could provide would be greatly appreciated.

megadeth23

For those of you who may be interested, I have solved this issue. i found information on the following link:
http://myroundcube.com/myroundcube-plugins/faqs/myroundcube-plugins-database-versioning-support

to sum up what I had to do:

I opened up phpmyadmin and navigated to roundcubemail > system. There I found an entry: myrc_plugin_manager. I deleted this entry.

onec I did that, I went back to my roundcube webmail site and the data base error cleared itself. further more, once I logged into the admin account I created for the plugin, I got the page in settings with the admin code for plugin manager.

I hope this saves some time for others.