-
AuthorPosts
-
missioneyes Friend
missioneyes
- Join date:
- October 2010
- Posts:
- 51
- Downloads:
- 1
- Uploads:
- 7
- Thanks:
- 8
- Thanked:
- 1 times in 1 posts
December 20, 2010 at 7:04 pm #157696I 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 ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
December 23, 2010 at 8:41 am #368280in 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.
1 user says Thank You to Khanh Le for this useful post
missioneyes Friendmissioneyes
- Join date:
- October 2010
- Posts:
- 51
- Downloads:
- 1
- Uploads:
- 7
- Thanks:
- 8
- Thanked:
- 1 times in 1 posts
December 23, 2010 at 12:26 pm #368314thanks 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>
<?phpmissioneyes Friendmissioneyes
- Join date:
- October 2010
- Posts:
- 51
- Downloads:
- 1
- Uploads:
- 7
- Thanks:
- 8
- Thanked:
- 1 times in 1 posts
December 23, 2010 at 12:28 pm #368315what 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 Friendmissioneyes
- Join date:
- October 2010
- Posts:
- 51
- Downloads:
- 1
- Uploads:
- 7
- Thanks:
- 8
- Thanked:
- 1 times in 1 posts
December 23, 2010 at 12:39 pm #368316ok – 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 ModeratorKhanh Le
- Join date:
- November 2013
- Posts:
- 1884
- Downloads:
- 41
- Uploads:
- 31
- Thanks:
- 44
- Thanked:
- 203 times in 131 posts
December 24, 2010 at 1:59 am #368395Now everything fine with your site? Please let us know if you need any further information or help.
1 user says Thank You to Khanh Le for this useful post
missioneyes Friendmissioneyes
- Join date:
- October 2010
- Posts:
- 51
- Downloads:
- 1
- Uploads:
- 7
- Thanks:
- 8
- Thanked:
- 1 times in 1 posts
December 24, 2010 at 5:45 am #368430This 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!
-
AuthorPosts
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