got an email there was a problem with the boards, closed the board to rebuild and reindex everything

at the end of rebuilding the metadata files, i got this FYI
Usage: Cwd::getcwd() at /usr/lib/perl5/5.8.0/File/Path.pm line 264.

and under debug, i got this

StandardHTML stack trace:
at /home/ranchero/public_html/ubb/Templates/cp2_common.pl line 96

main::StandardHTML called at /home/ranchero/public_html/ubb/Templates/cp2_common.pl line 131

main::StandardHTML2() called at Modules/UBBCGI/Carp.pm line 150

UBBCGI::Carp::fatalsToBrowser() called at Modules/UBBCGI/Carp.pm line 86

UBBCGI::Carp::die() called at /usr/lib/perl5/5.8.0/File/Path.pm line 264

File::Path::rmtree() called at /home/ranchero/public_html/cgi-bin/ubb_lib.cgi line 1623

main::ClearSingleForumPageCache() called at /home/ranchero/public_html/cgi-bin/cp2_maint.cgi line 744

main::refreshwrapper_forumstats() called at /home/ranchero/public_html/cgi-bin/cp2_maint.cgi line 279

main::refreshing called at cp.cgi line 526

some help would really be appreciated as i really don't have a clue what to do to fix it

also, under rebuild user subscription i just got an exception error

StandardHTML stack trace:
at /home/ranchero/public_html/ubb/Templates/cp2_common.pl line 96

main::StandardHTML called at /home/ranchero/public_html/ubb/Templates/cp2_common.pl line 131

main::StandardHTML2() called at /home/ranchero/public_html/cgi-bin/cp2_lib.cgi line 756

main::CatchException() called at cp.cgi line 499

main::__ANON__() called at Modules/Error.pm line 303

eval {...} called at Modules/Error.pm line 294

Error::subs::run_clauses() called at Modules/Error.pm line 386

Error::subs::try() called at cp.cgi line 500