Module Directory is giving 404 error when Freepbx is not installed on the web root, for example under a freepbx folder. The server running under http://server/freepbx/admin will give error 404.
A workaround should be editing file page.directory.php, on line 40
{noformat}echo '<br /><br /><input type="button" value="'._('Add a new Directory').'" onclick="window.location.href=\'/admin/config.php?type='.$type.'&display=directory&action=add\';"/>'; {noformat}
and erasing the /admin/ of the url
{noformat}echo '<br /><br /><input type="button" value="'._('Add a new Directory').'" onclick="window.location.href=\'config.php?type='.$type.'&display=directory&action=add\';"/>'; {noformat}