Solusi zend warning: is_readable(): open_basedir restriction in effect.

Jika menemukan error zend warning: is_readable(): open_basedir restriction in effect. maka solusinya adalah dengan merubah kode terkait.

public static function isReadable($filename)
if (is_readable($filename)) {
// Return early if the filename is readable without needing the
// include_path
return true;

//added the if, basically to skip any absolute filename path
foreach (self::explodeIncludePath() as $path) {
if ($path == ‘.’) {
if (is_readable($filename)) {
return true;
$file = $path . ‘/’ . $filename;
if (is_readable($file)) {
return true;

return false;


Seketika error tersebut pun hilang…


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s