Skip navigation

The error message:
The mobile features adapter must have a "path" config parameter defined

When using Zend Framework and doing any sort of browser detection for mobile devices, this error may pop up. It’s an error in the Zend Documentation, the page The Browscap UserAgent Features Adapter gives the config line of:

resources.useragent.mobile.features.classname = "Zend_Http_UserAgent_Device_Features_Browscap"

This is wrong, the classpath is incorrect. The correct path is:

resources.useragent.mobile.features.classname = "Zend_Http_UserAgent_Features_Adapter_Browscap"

This goes in application/config/application.ini

Leave a Reply