test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • mayannewjoomla Friend
    #131421

    Hi,

    Have installed Joomla v1.53, and the JA Telline_II template. Everything is working and looks good in the default English language. Have installed JoomFish v2 beta, and the Simplified Chinese language. Most of the website is now translated, but i have come across an issue with the Hot Topics module.

    When i change the language to Chinese, i get an error in the Hot Topics module area. “
    Warning: Invalid argument supplied for foreach() in /html/zine/modules/mod_ja_catslwi/mod_ja_catslwi.php on line 38″

    Looking into the code, these lines seem to be the problem:

    —–8<—–
    $list = modJaSLWI::getList($catid, $numelem);

    foreach($list as $l) {
    —–8<—–

    Any ideas? Has anyone else encountered this problem using Hot Topics module and JoomFish?

    Thanks in advance!

    questbg Friend
    #262647

    Hi There

    I’m also using Joomla 1.5.3 and Teline II with JoomFish v2 beta.

    My site is default English with French and Russian.

    I just used JoomFish to translate one of my ‘Hot Topics’ from English to French as a test and everything works fine … no errors?

    Sorry I can’t help more.

    Sherlock Friend
    #262664

    Hi mayannewjoomla !
    You try to add “@” before “foreach”.( change it to :
    @foreach($list as $l) { ).

    mayannewjoomla Friend
    #262827

    When i add the ‘@’ to the front of the foreach, i get an error:

    —–8<—–
    Parse error: syntax error, unexpected T_FOREACH in /html/zine/modules/mod_ja_catslwi/mod_ja_catslwi.php on line 38
    —–8<—–

    A quick check of the PHP manual reveals:

    —–8<—–
    Note: foreach does not support the ability to suppress error messages using ‘@’.
    —–8<—–

    Any other ideas?

    Thanks!

    mayannewjoomla Friend
    #262829

    Ahhh just fixed it – i had an extra ‘,’ in the category list in the JoomFish translation. My fault 🙁

    Sorry and thanks!

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

This topic contains 5 replies, has 3 voices, and was last updated by  mayannewjoomla 16 years, 4 months ago.

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