steverobbins / Magento-Redismanager

Superuser control for Redis in Magento
137 stars 31 forks source link

Blank page on redis management screen #13

Closed dvdmierden closed 9 years ago

dvdmierden commented 9 years ago

Sorry cross-post, the other issue (https://github.com/steverobbins/Magento-Redismanager/issues/6) remained closed. I have the same problem: blank screen on redis management page. I installed via modman and got this error in the system.log file:

2015-07-30T07:07:18+00:00 CRIT (2): Not valid template file:adminhtml/default/default/template/steverobbins/redismanager/manager.phtml

I looked it up, and it exists. Tried logout/login, clear cache. No luck. Any thoughts?

steverobbins commented 9 years ago

This error comes from app/code/core/Mage/Core/Block/Template.php around line 238

        try {
            $includeFilePath = realpath($this->_viewDir . DS . $fileName);
            if (strpos($includeFilePath, realpath($this->_viewDir)) === 0 || $this->_getAllowSymlinks()) {
                include $includeFilePath;
            } else {
                Mage::log('Not valid template file:'.$fileName, Zend_Log::CRIT, null, null, true);
            }

        } catch (Exception $e) {
            ob_get_clean();
            throw $e;
        }

To help debug this issue, could you var_dump out some values? Modify the above to look like

        try {
            $includeFilePath = realpath($this->_viewDir . DS . $fileName);
            if (strpos($includeFilePath, realpath($this->_viewDir)) === 0 || $this->_getAllowSymlinks()) {
                include $includeFilePath;
            } else {
                var_dump(
                    'fileName: ' . $fileName,
                    'viewDir: ' . $this->_viewDir,
                    'realpath(viewDir): ' . realpath($this->_viewDir),
                    'includeFilePath: ' . $includeFilePath,
                    'getAllowSymlinks: ' . (int) $this->_getAllowSymlinks()
                );
                exit;
                Mage::log('Not valid template file:'.$fileName, Zend_Log::CRIT, null, null, true);
            }

        } catch (Exception $e) {
            ob_get_clean();
            throw $e;
        }
Tijmen78 commented 9 years ago

Hi Steve, OK will do.

steverobbins commented 9 years ago

@Tijmen78 your problem is unrelated to this issue. Please create a new issue.

steverobbins commented 9 years ago

Closing this for now.

@dvdmierden, please comment if you would like to continue debugging.