cross
New Foswiki release 2.1.6 is available with important security fixes.
Sourceforge foswiki email lists being discontinued. Subscribe to the new Foswiki announce and discuss lists at MailingLists
This question about Using an extension: Answered

DBI Error during Save of Topic

APparently, I have something configured incorrectly or installed incorrectly. When I edit a topic and save I see

DBI connect('DATABASE:localhost','root',...) failed: Access denied for user 'root'@'localhost' (using password: NO) at /Volumes/Datastore/Local/_Protected/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/Contrib/DbiContrib.pm line 96
 at /Library/Perl/5.8.8/darwin-thread-multi-2level/DBI.pm line 650
	DBI::__ANON__('undef', 'undef') called at /Library/Perl/5.8.8/darwin-thread-multi-2level/DBI.pm line 705
	DBI::connect('DBI', 'dbi:mysql:DATABASE:localhost', 'root', '', 'HASH(0xcfa3d0)') called at /Library/Perl/5.8.8/darwin-thread-multi-2level/DBI.pm line 547
	DBI::connect_cached('DBI', 'dbi:mysql:DATABASE:localhost', 'root', '', 'HASH(0xc62160)') called at /Volumes/Datastore/Local/_Protected/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/Contrib/DbiContrib.pm line 96
	Foswiki::Contrib::DbiContrib::connect('Foswiki::Contrib::DbiContrib=HASH(0x9451e8)') called at /Volumes/Datastore/Local/_Protected/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/Contrib/DbiContrib.pm line 146
	Foswiki::Contrib::DbiContrib::dbSelect('Foswiki::Contrib::DbiContrib=HASH(0x9451e8)', 'SELECT CUID from Users WHERE FoswikicUID = ? ', 'BaseUserMapping_333') called at /Volumes/Datastore/Local/_Protected/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/Plugins/TagsPlugin.pm line 302
	Foswiki::Plugins::TagsPlugin::getUserId('Foswiki=HASH(0x974d24)') called at /Volumes/Datastore/Local/_Protected/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/Plugins/TagsPlugin.pm line 87
	Foswiki::Plugins::TagsPlugin::afterSaveHandler('%META:TOPICINFO{author="BaseUserMapping_333" date="1328391549...', 'SitePreferences', 'Main', 'undef', 'Foswiki::Meta=HASH(0x974cf4)') called at /Volumes/Datastore/Local/_Protected/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/Plugin.pm line 287
	Foswiki::Plugin::invoke('Foswiki::Plugin=HASH(0xab3d38)', 'afterSaveHandler', '%META:TOPICINFO{author="BaseUserMapping_333" date="1328391549...', 'SitePreferences', 'Main', 'undef', 'Foswiki::Meta=HASH(0x974cf4)') called at /Volumes/Datastore/Local/_Protected/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/Plugins.pm line 331
	Foswiki::Plugins::dispatch('Foswiki::Plugins=HASH(0x950cc0)', 'afterSaveHandler', '%META:TOPICINFO{author="BaseUserMapping_333" date="1328391549...', 'SitePreferences', 'Main', 'undef', 'Foswiki::Meta=HASH(0x974cf4)') called at /Volumes/Datastore/Local/_Protected/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/Meta.pm line 1933
	Foswiki::Meta::save('Foswiki::Meta=HASH(0x974cf4)') called at /Volumes/Datastore/Local/_Protected/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/UI/Save.pm line 637
	Foswiki::UI::Save::__ANON__() called at /Library/Perl/5.8.8/Error.pm line 415
	eval {...} called at /Library/Perl/5.8.8/Error.pm line 407
	Error::subs::try('CODE(0xb7f978)', 'HASH(0xbff724)') called at /Volumes/Datastore/Local/_Protected/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/UI/Save.pm line 647
	Foswiki::UI::Save::save('Foswiki=HASH(0x974d24)') called at /Volumes/Datastore/Local/_Protected/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/UI.pm line 316
	Foswiki::UI::__ANON__() called at /Library/Perl/5.8.8/Error.pm line 415
	eval {...} called at /Library/Perl/5.8.8/Error.pm line 407
	Error::subs::try('CODE(0x947b9c)', 'HASH(0x974acc)') called at /Volumes/Datastore/Local/_Protected/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/UI.pm line 435
	Foswiki::UI::_execute('Foswiki::Request=HASH(0x94eb20)', 'CODE(0x849c70)', 'save', 1) called at /Volumes/Datastore/Local/_Protected/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/UI.pm line 274
	Foswiki::UI::handleRequest('Foswiki::Request=HASH(0x94eb20)') called at /Volumes/Datastore/Local/_Protected/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/Engine/CGI.pm line 41
	Foswiki::Engine::CGI::run('Foswiki::Engine::CGI=HASH(0x83e1cc)') called

btw, it actually does save.

What did I miss doing? Why does it think I'm using DBI?

-- VickiBrown - 04 Feb 2012

Did you install the TagsPlugin? I believe that latest version uses DBI to store the tags.

-- GeorgeClark - 04 Feb 2012

Ah. That could be it.

Now that I know the problem is with the TagsPlugin (and I have disabled the plugin), what do I need to do to resolve the error so I can re-enable the plugin.

Apparently
Access denied for user 'root'@'localhost' (using password: NO) at /Volumes/Datastore/Local/_Protected/WWW/web/cfcl/Foswiki-1.1.4/lib/Foswiki/Contrib/DbiContrib.pm line 96

but denied to what and what do I need to do?

-- VickiBrown - 04 Feb 2012

Eh. Extensions.TagsPlugin has the answer.

-- VickiBrown - 04 Feb 2012
 

QuestionForm edit

Subject Using an extension
Extension TagsPlugin
Version Foswiki 1.1.3
Status Answered
Related Topics
Topic revision: r4 - 05 Feb 2012, SvenDowideit - This page was cached on 23 Jun 2018 - 22:50.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy