Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • missioneyes Friend
    #157696

    I developed a custom profile and was using the custom theme. Then I updated the jat3 to get the latest since I was having trouble with the menu using Chrome.

    Since then, I have this error on the frontend if I use my custom theme:

    Fatal error: Cannot redeclare modchrome_jaxhtml() (previously declared in /home/missione/public_html/social/templates/ja_social/html/modules.php:25) in /home/missione/public_html/social/templates/ja_social/local/themes/men_custom/html/modules.php on line 39

    This disappears if I don’t show this theme and use the default. However I do not wish to use the default. I had the custom theme how I liked it before this upgrade.

    Thanks for thoughts.

    Khanh Le Moderator
    #368280

    in your custom theme, you can add more module style but cannot redeclare the existing one. Please go to templates/ja_social/local/themes/men_custom/html/modules.php, remove the current module style (eg: jaxhtml). If you want to override this style, just define new one, and assign your module style in the layout xml.

    missioneyes Friend
    #368314

    thanks of helping me troubleshoot this.

    I am not sure that I understood completely.

    Are you saying to open the file modules.php you listed above and remove this code?

    function modChrome_JAxhtml($module, &$params, &$attribs)
    {
    $badge = preg_match (‘/badge/’, $params->get(‘moduleclass_sfx’))?”<span class=”badge”> </span>n”:””;
    ?>
    <div class=”ja-moduletable moduletable<?php echo $params->get(‘moduleclass_sfx’); ?> clearfix” id=”Mod<?php echo $module->id; ?>”>
    <?php echo $badge; ?>
    <?php if ($module->showtitle != 0) : ?>
    <h3><span><?php echo $module->title; ?></span></h3>
    <?php endif; ?>
    <div class=”ja-box-ct clearfix”>
    <?php echo $module->content; ?>
    </div>
    </div>
    <?php

    missioneyes Friend
    #368315

    what confused me in particular is that it worked before I did the upgrade to the latest JAT3 and this seemed to cause the problem with my custom profile

    missioneyes Friend
    #368316

    ok – I just removed this file (modules.php) completely and this seems to work – however this file was there before. Perhaps the new JAT3 has new code that my old one didn’t for Chrome. This was one of the reasons that I upgraded is that Chrome wasn’t acting right for the menus.

    Khanh Le Moderator
    #368395

    Now everything fine with your site? Please let us know if you need any further information or help.

    missioneyes Friend
    #368430

    This problem is resolved after removing this file. I just didn’t understand why it came about just after updating my JAT3 framework when it wasn’t there before.

    Thanks for the help!

Viewing 7 posts - 1 through 7 (of 7 total)

This topic contains 7 replies, has 2 voices, and was last updated by  missioneyes 13 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum