Loading ...
Sorry, an error occurred while loading the content.
 

Using APC

Expand Messages
  • Jesse Wakeley from HEROweb/MightyMerchant
    Hello, Is anyone successfully using APC caching with WURFL? We have APC running on our servers, and have installed the PHP WURFL v2.0.23. I believe I received
    Message 1 of 1 , Nov 3, 2010

      Hello,

       

      Is anyone successfully using APC caching with WURFL? We have APC running on our servers, and have installed the PHP WURFL v2.0.23.

       

      I believe I received the same errors with an older version of WURFL, and I was hoping that the latest version of WURFL would resolve it, but I guess not.

       

      If I am just using file instead of APC, everything works fine.

       

      Are there any params I need to be setting? This is how I have it specified in wurfl-config.xml:

       

         <persistence>

              <provider>apc</provider>

          </persistence>

       

       

      Below is the error:

       

      Uncaught exception 'Exception' with message 'There is no device with id [generic] in wurfl' in /usr/local/lib/phplib/wurfl/CustomDeviceRepository.php:78

      Stack trace:

      #0 /usr/local/lib/phplib/wurfl/CustomDeviceRepository.php(43): WURFL_CustomDeviceRepository->getDevice('generic')

      #1 /usr/local/lib/phplib/wurfl/CustomDeviceRepository.php(39): WURFL_CustomDeviceRepository->init()

      #2 /usr/local/lib/phplib/wurfl/DeviceRepositoryBuilder.php(50): WURFL_CustomDeviceRepository->__construct(Object(WURFL_Storage_Apc), Array)

      #3 /usr/local/lib/phplib/wurfl/WURFLManagerFactory.php(120): WURFL_DeviceRepositoryBuilder->build('/usr/local/lib/...', Array)

      #4 /usr/local/lib/phplib/wurfl/WURFLManagerFactory.php(97): WURFL_WURFLManagerFactory->deviceRepository(Object(WURFL_Storage_Apc), Object(WURFL_UserAgentHandlerChain))

      #5 /usr/local/lib/phplib/wurfl/WURFLManagerFactory.php(52): WURFL_WURFLManagerFactory->init()

      #6 /usr/local/lib/phplib/shop/v4.3/mobile_init.php(43): WURFL_WURFLManagerFactory->create()

      #7 /usr/local/apache/ht in /usr/local/lib/phplib/wurfl/CustomDeviceRepository.php on line 78

       

      Thanks!
      Jesse

       

    Your message has been successfully submitted and would be delivered to recipients shortly.