Problem with PDA-subdomain-mambot and cache

Tags: , , , ,

In some cases, using the mambot you can have problems with display of links on page (from the main domain there can be a link to a pda, and vice versa). It is connected with not absolutely correct work of joomla’s system of caching which does not know, that a site can be visited from different addresses.

For the solution of this problem it is necessary to add in a file /includes/joomla.cache.php before a line 58:

$ret = call_user_func_array(array($this->_cache, 'call'), $arguments);

the code

global $mosConfig_live_site; 
$arguments[] = $mosConfig_live_site;

Thus, as a result you should have:

global $mosConfig_live_site; 
$arguments[] = $mosConfig_live_site; 
$ret = call_user_func_array(array($this->_cache, 'call'), $arguments);

Related Posts

5 Responses to “Problem with PDA-subdomain-mambot and cache”

  1. 1
    nabst Says:

    Hello ,
    i’m french, and at first i would like to apologize of my bad english :( .

    I have a little problem with the Pda subdomain manbot :
    Here what I did ;

    At first, at first I made an subdomain with 1&1 . I called it “http://pda.euroastuces.com/” .
    After, i installed the PDA-template and the PDA-subdomain-mambot , and i published them .
    But, when i try to see my site in “mobile version” i have a message of error :
    (With the subdomain) http://emulator.mtld.mobi/emulator.php?emulator=&webaddress=pda.euroastuces.com%2F&emulator=nokiaN70&Submit=Submit
    (With the maindomain)
    http://emulator.mtld.mobi/emulator.php?webaddress=euroastuces.com&emulator=nokiaN70&Submit=Submit

    Can you help me ? :) Cordially
    Thanks .

    ===
    Bonjour ,
    Je suis français et ma maitrise de l’anglais étant très mauvais je poste également en francais ^^ .
    J’ai un petit problème avec le mambots de sous domaine :S .

    Voici ce que j’ai fait :
    En premier j’ai créer un sous domaines avec 1&1 que j’ai nommé http://pda.euroastuces.com/ .
    Deuxièmement j’ai installer et publier le pda template / mambot de sous domaines .

    Cependant , lorsque j’essaie de voir le rendus de ces deux derniers objet , je tombe sur le message d’erreur suivant :
    (Avec le sous domaine) http://emulator.mtld.mobi/emulator.php?emulator=&webaddress=pda.euroastuces.com%2F&emulator=nokiaN70&Submit=Submit
    (Avec le domaine principal )
    http://emulator.mtld.mobi/emulator.php?webaddress=euroastuces.com&emulator=nokiaN70&Submit=Submit

    Pourriez vous m’aider ?
    Cordialement .

    ps : Merci d’avoir dévelloper ce module :) .

  2. 2
    Physicist Says:

    nabst
    There are several reasons for this error:
    1. You have wrong html-code, for example:

    <td class="contentheading" width="100%">
    <h1 class="title">Accueil
    <h1 class="title"></td>

    2. I notice that some pda-sites replace all the non-ascii characters into &#…;. I’m going to test utility of it. May be this solves some of problems.
    3. Try to add

    <?xml version="1.0" encoding="iso-8859-1"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" >

    at the beginning of pda-template (before <html>).

  3. 3
    nabst Says:

    Hello ,
    i don’t know if i have a wrong html-code (How can i know this?) .

    So, i tried the other methode , you can see what i have done with this : http://cjoint.com/data/gprXRJcvr4.htm .
    (I modified “index.html”)

    Now i have a new error :
    http://emulator.mtld.mobi/emulator.php?webaddress=pda.euroastuces.com&emulator=nokiaN70&Submit=Submit
    http://emulator.mtld.mobi/emulator.php?webaddress=euroastuces.com&emulator=nokiaN70&Submit=Submit

    Thanks for you help :) .
    Cordially .

    ps : If you want to make some test with my siteweb, i can give you an account :) .

  4. 4
    Physicist Says:

    Problem, most likely, is in unhandiness of a html-code. When I have saved page and have cleaned therefrom all “unnecessary”, it began to be displayed normally through emulator.mtld.mobi. But in what the problem consists, I yet have not found out.

    To solve new problem try to change

    <?php
    defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
    ?><?xml version="1.0" encoding="iso-8859-1"?>

    to

    <?php
    defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
    echo '<?xml version="1.0" encoding="iso-8859-1"?>';
    ?>
  5. 5
    nabst Says:

    Hello,
    i tried this with the code whose i had previously (((
    ” . )))

    The mobile emulator give me this error : Page cannot be displayed .

    (My index code : http://cjoint.com/data/gptTkYNJgQ.htm )

    Do i have to delete the code whose i had previously ?

    Thank you for all your assistance:)

You can follow any responses to this entry through the RSS 2.0 feed.

Leave a Reply