#245 Cannot redeclare maildir_name_hook()

Dale Blount

When upgrading 2.3.3 to svn via setup.php:

Cannot redeclare maildir_name_hook() (previously declared in /srv/http/postfixadmin-svn-1059/config.inc.php:157) in /srv/http/postfixadmin-svn-1059/config.inc.php on line 163

Commenting out the function and $CONF['maildir_name_hook'] lets it get through setup.php and then adding mailboxes appears to work just fine.


  • Christian Boltz

    Christian Boltz - 2011-05-22
    • status: open --> pending
  • Christian Boltz

    Christian Boltz - 2011-05-22

    Hmm, it looks like your config.inc.php is somehow broken - I'd guess the example function lost the comment markers (/* ... */), and you have defined a custom hook function.

    Can you please run "svn diff" on config.inc.php and check if I'm right? (If unsure, post the diff - without database password of course ;-)

    BTW: You probably want to write your settings to config.local.php - that makes updates easier.

  • Dale Blount

    Dale Blount - 2011-05-23
    • status: pending --> closed
  • Dale Blount

    Dale Blount - 2011-05-23

    As hard as I try, I cannot reproduce this any longer... I think it was a bad config diff or something. I've since moved my local settings to config.local.php.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks