Zend framework 没有ID为的设备使用Zend和WURFL

Zend framework 没有ID为的设备使用Zend和WURFL,zend-framework,wurfl,Zend Framework,Wurfl,我已经将WURFL 1.6.0与Zend集成,一切都很顺利,它会检测到桌面,但在Android的情况下,我遇到了这个错误。深入研究后,我发现我的dir data/WURFL/cache没有加载任何数据,我授予了它777权限,但它仍然无法工作 [25-Jun-2015 09:39:09] PHP Fatal error: Uncaught exception 'Exception' with message 'There is no device with ID [generic_androi

我已经将WURFL 1.6.0与Zend集成,一切都很顺利,它会检测到桌面,但在Android的情况下,我遇到了这个错误。深入研究后,我发现我的dir data/WURFL/cache没有加载任何数据,我授予了它777权限,但它仍然无法工作

[25-Jun-2015 09:39:09] PHP Fatal error: 
 Uncaught exception 'Exception' with message 'There is no device with ID [generic_android_ver4_4] in the loaded WURFL Data' in /var/www/vhosts/mobiletocash.co.uk/httpdocs/library/wurfl-php-1.6.0.1/WURFL/CustomDeviceRepository.php:108
Stack trace:
#0 /var/www/vhosts/mobiletocash.co.uk/httpdocs/library/wurfl-php-1.6.0.1/WURFL/CustomDeviceRepository.php(211): WURFL_CustomDeviceRepository->getDevice('generic_android...')
#1 /var/www/vhosts/mobiletocash.co.uk/httpdocs/library/wurfl-php-1.6.0.1/WURFL/WURFLService.php(146): WURFL_CustomDeviceRepository->getDeviceHierarchy('generic_android...')
#2 /var/www/vhosts/mobiletocash.co.uk/httpdocs/library/wurfl-php-1.6.0.1/WURFL/WURFLService.php(62): WURFL_WURFLService->getWrappedDevice('generic_android...', Object(WURFL_Request_GenericRequest))
#3 /var/www/vhosts/mobiletocash.co.uk/httpdocs/library/wurfl-php-1.6.0.1/WURFL/WURFLManager.php(90): WURFL_WURFLService->getDeviceForRequest(Object(WURFL_Request_GenericRequest))
#4 /var/www/vhosts/mobiletocash.co.uk/httpdocs/library in /var/www/vhosts/mobiletocash.co.uk/httpdocs/library/wurfl-php-1.6.0.1/WURFL/CustomDeviceRepository.php on line 108

$resourcesDir            = dirname(__FILE__) . '/../../data/wurfl/';

$wurfl['main-file']      = $resourcesDir  . 'wurfl.xml';
$wurfl['patches']        = array($resourcesDir . 'web_browsers_patch.xml');

$cache['provider']       = 'Null';
//
$persistence['provider'] = 'File';
$persistence['dir']      = $resourcesDir . '/cache/';


$configuration['wurfl']       = $wurfl;
$configuration['persistence'] = $persistence; 
$configuration['cache']       = $cache;
如果我给$cache['provider']=null;
它抛出了另一个异常。尝试使用$persistence['provider']='file';但是没有用

从我可以看出,WURFL文件似乎没有被正确加载(可能是目录不可写)或者已经过时。您很可能需要删除持久性目录并重新加载WURFL API。

已经尝试过了。。。chmod 777,delete dir等没有任何功能,但问题是目录权限等