Please update the path to /lib/base.php in carddav.php or make use of /remote.php/carddav/