- How to resolve the issue of unable to Create or Save Draft on Contest app v4.02 on phpFox v4.6.1b5
- Fixing unable to delete videos in Ultimate Video
- Missed "Can add a new blog?"
- Error: Fatal error: require() ... C:\xampp2\htdocs\phpfox\PF.Base\include\library\phpfox\template\template.class.php
- [Social Media Importer] Add "Import Photo" menu on Advanced Photo app
- [Social Chat] Change color of Chat box
- PHP module "Multibyte String" is missing
- PHP module "PHP ZipArchive" is missing
- [phpFox] Unable to remove caches in memcache on apps of third party
- Error: PHP module 'PHP Exec is missing'
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);
}