我尝试在我的magento应用程序中进行编译,但它将我重定向到空白页面
然后我添加了@ homepage
ini_set('display_errors', 1);
显示错误
Fatal error: Call to a member function read() on a non-object in /PATH/TO/public/app/code/core/Mage/Compiler/Model/Process.php on line 109
Process.php
if (is_dir($source)) {
$dir = dir($source);
while (false !== ($file = $dir->read())) { //The error here
if (($file[0] == '.')) {
continue;
}
$sourceFile = $source . DS . $file;
if ($file == 'controllers') {
$this->_controllerFolders[] = $sourceFile;
continue;
}
if ($firstIteration) {
$targetFile = $target . DS . $file;
} else {
$targetFile = $target . '_' . $file;
}
$this->_copy($sourceFile, $targetFile, false);
}
我该如何解决?