• Facebook
  • Twitter
  • Yahoo
  • Linkedin
  • Google
  • Live

While running and installing apps on phpFox, you might encounter this error:


Fatal error: require(): Failed opening required 'C:\xampp2\htdocs\phpfox\PF.Base\file\cache\template\C:_xampp2_htdocs_phpfox_PF.Site_flavors_ynrespassion_html/core.block.template-logo.html.php.php' (include_path='C:\xampp2\php\PEAR') in C:\xampp2\htdocs\phpfox\PF.Base\include\library\phpfox\template\template.class.php on line 3436

This is a common issue if you run or install app on Windows. There is issue with path indicator on Windows.

To fix this, open file template.class.php at: C:\xampp2\htdocs\phpfox\PF.Base\include\library\phpfox\template\template.class.php

Find function: private function _getFromCache

In second if:

if (!$this->_isCached($sFile))
        {
            $oTplCache = Phpfox::getLib('template.cache');
            if (!isset($sContent)) {
                $sContent = (file_exists($sFile) ? file_get_contents($sFile) : null);
            }
            $mData = $oTplCache->compile($this->_getCachedName($sFile), $sContent);
        }

Fix into:

if (!$this->_isCached($sFile))
        {
            $sFile = str_replace("/","_",$sFile);   // windows only
            $oTplCache = Phpfox::getLib('template.cache');
            if (!isset($sContent)) {
                $sContent = (file_exists($sFile) ? file_get_contents($sFile) : null);
            }
            $mData = $oTplCache->compile($this->_getCachedName($sFile), $sContent);
        }

1
  • November 8, 2017
  • 0 Comment(s)
Category: FAQs
Be the first person to like this