Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/289.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Zend Wurfl移动服务器错误_Php_Zend Framework_User Agent_Wurfl - Fatal编程技术网

Php Zend Wurfl移动服务器错误

Php Zend Wurfl移动服务器错误,php,zend-framework,user-agent,wurfl,Php,Zend Framework,User Agent,Wurfl,嗨,我试图将移动模板添加到当前的zend应用程序中,但它返回服务器错误。 以下是我在几个站点上的配置 应用程序 resources.frontController.plugins[] = "Rate_Application_Mobile" resources.useragent.wurflapi.wurfl_api_version = "1.1" resources.useragent.wurflapi.wurfl_lib_dir = APPLICATION_PATH "/../library/

嗨,我试图将移动模板添加到当前的zend应用程序中,但它返回服务器错误。 以下是我在几个站点上的配置

应用程序

resources.frontController.plugins[] = "Rate_Application_Mobile"
resources.useragent.wurflapi.wurfl_api_version = "1.1"
resources.useragent.wurflapi.wurfl_lib_dir = APPLICATION_PATH "/../library/wurfl/WURFL/"
resources.useragent.wurflapi.wurfl_config_file = APPLICATION_PATH "/configs/wurfl-config.php"
wurfl-config.php

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

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

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

$cache['provider']       = null;

$configuration['wurfl']       = $wurfl;
$configuration['persistence'] = $persistence;
$configuration['cache']       = $cache;
谢谢

更新:错误返回如下

Warning: include(/var/www/library/wurfl/WURFL/Storage/.php): failed to open stream: No such file or directory in /var/www/library/wurfl/WURFL/ClassLoader.php on line 42

Warning: include(): Failed opening '/var/www/library/wurfl/WURFL/Storage/.php' for inclusion (include_path='/var/www/application/../library:/var/www/library:.:/usr/share/php:/usr/local/Zend/library') in /var/www/library/wurfl/WURFL/ClassLoader.php on line 42

Fatal error: Class 'WURFL_Storage_' not found in /var/www/library/wurfl/WURFL/Storage/Factory.php on line 43

这是我在上面的评论中给出的答案,复制粘贴只是为了投票和接受。


这是一个PHP错误,说明找不到类文件。您包含了空名称的PHP文件,因此WURFL可能无法检测需要加载的内容。请在ClassLoader.php:42(第一个错误)中的错误行之前执行debug_backtrace(),并检查它尝试/需要在Factory.php:43中加载什么存储。如果是此文件:您正在尝试加载一个文件提供程序,该文件提供程序应该在您提供的提供程序配置树中指定,但未读取

现在请清除ZF缓存,并检查

$persistence['provider'] = 'file';
$cache['provider'] = null;
$configuration['persistence'] = $persistence; 

不要干涉。

到底是什么错误?它返回服务器错误是的,我理解,但它是否返回文本
服务器错误
字符串或其他什么?没有消息,密码,什么都没有?可能是一些
错误报告(E|u ALL | E|u STRICT)会有帮助吗?您好,上面是它返回的错误,我不知道它是什么意思,因为所有文件都在正确的位置。这是PHP错误,说明找不到类文件。您包含了空名称的PHP文件,因此WURFL可能无法检测需要加载的内容。请在
ClassLoader.php:42
(第一个错误)中的错误行之前执行
debug\u backtrace()
,并检查它尝试/需要在
Factory.php:43
中加载的存储。如果是此文件:您正在尝试加载一个
文件
提供程序,该提供程序应在您提供的
提供程序
配置树中指定,但未被读取。
$persistence['provider'] = 'file';
$cache['provider'] = null;
$configuration['persistence'] = $persistence;