bug in LocalFs.php

5 views
Skip to first unread message

itdept

unread,
Feb 1, 2012, 11:34:44 PM2/1/12
to scalr-...@googlegroups.com
PHP Fatal error:  Uncaught exception 'Exception' with message 'Cannot load zones.include file' in /var/www/scalr/app/src/Scalr/Net/Dns/Bind/Transports/LocalFs.php:32

$retval = @file_get_contents($jpPath);
                        if (!$retval)
                                throw new Exception("Cannot load zones.include file");
                        else
                                return $retval;

file_get_contents will return false when you have no data in the file.
in http://wiki.scalr.net/Installing_Scalr/BIND_Configuration

"Create a blank file '/var/named/etc/namedb/client_zones/zones.include' for zone definitions."



Reply all
Reply to author
Forward
0 new messages