ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Mobile theme loading problem


  • 2013-11-27 08:52:38

    Mobile theme loading problem

    We have the latest ATuror installed

    Our host has highlighted an issue with the mobile theme with the file - ATutor/themes/mobile/include/TeraWurflRemoteClient.php

    Message from the host : "It is trying to fetch data from http://wurfl.thesedays.com/webservice.php which is causing an exception, causing the system to halt."

    Is this a genuine file and if so is it meant to be fetching data from this site ?

    Cheers
    Jim

    ATutor Version:
    2.1.1(unknown - 2013-11-27 13:40:12). Check Latest Version.
    PHP Version:
    5.2.17
    MySQL Version:
    OS:
    Linux 2.6.27.57

  • 2013-11-27 09:04:05

    Re: Mobile theme

    We became aware of the problem ourselves yesterday. I'm trying to reach the developer of the theme to find out why its there. It was originally supposed to help identify mobile devices for purposes of adjusting the theme for each platform, though from what I can tell, it is no longer in use. You can safely comment out the five lines to fix the problem.

    [php]
    require ('TeraWurflRemoteClient.php');
    $wurflObj = new TeraWurflRemoteClient('http://wurfl.thesedays.com/webservice.php');
    $capabilities = array("product_info");
    $data_format = TeraWurflRemoteClient::$FORMAT_JSON;
    $wurflObj->getCapabilitiesFromAgent(null, $capabilities, $data_format);

    [/php]

  • 2013-11-27 11:00:11

    Re: Mobile theme

    Thanks Greg

    Which file are the five lines in ?

    Cheers
    Jim

  • 2013-11-27 11:17:07

    Re: Mobile theme

    At the top of the mobile theme header file:
    https://github.com/atutor/ATutor/blob/atutor_2_1_1/themes/mobile/include/header.tmpl.php

  • 2013-11-27 11:21:21

    Re: Mobile theme

    Sorted !

    Many thanks
    Jim

  • 2013-11-29 09:38:21

    Re: Mobile theme

    If you have not already fix the above problem manually, a patch to correct this problem is now available for versions 2.0.1 to 2.1.1. Login as the system's administrator, open the Patcher, and look for the patch that corrects the mobile/tablet theme display problem.