test
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • chris659 Friend
    #999219

    Hello,
    First of all, happy new year and thanks for your work.
    I have encountered the following small bug in the backend of a multilingual Joomla website I built with T3 and Ja Magz II template (latest version of Joomla, T3 and Template).
    The language_image property is empty therefore the small country language flag which uses it as a file name is not displayed and a warning is issued. The PHP file is /administrator/components/com_content/views/articles/tmpl/modal.php

    Steps to reproduce:

    • Create a new article in the menu
    • Click on the button to select an article
    • The warning is displayed in the language column of the article selection modal window (see screenshot).
      The bug also appears in other parts of the Joomla backend.

    1. language-property
    Ninja Lead Moderator
    #999383

    Hi,

    I need a closer look at your site to investigate further, you can provide URL and Admin account via private reply.

    Regards

    chris659 Friend
    #999523
    This reply has been marked as private.
    Ninja Lead Moderator
    #999683

    Hi,

    Have you sorted out it? I checked and saw it’s working as well on your site: http://prntscr.com/drmyno

    Regards

    chris659 Friend
    #999799

    Hello,
    Thanks for your log-in, but the country flag is not displayed. Error is off, that’s why there’s no warning, but one can see on your screenshot that the country flag English UK img tag has no src value and therefore no picture is displayed. It’s not currently a big deal, but the fact that some property is undefined is a bit annoying.

    Ninja Lead Moderator
    #999836

    Hi,

    Could you send me the URL of page where I can see the issue?

    Regards

    chris659 Friend
    #1000215

    Hi,
    Thanks for your message. This is the same page from the Backend where you’ve taken the screenshot, but you should set the display of errors to on in Joomla configuration to see the error message.
    I should take the time to look at the framework code base this week end and find more information about what could possibly go wrong with that property.

    Ninja Lead Moderator
    #1000233

    Hi,

    I could not access the configuration of backend your site with the credential info above http://prntscr.com/ds5ov4, please give me the super admin via private reply. I will check further

    Regards

    chris659 Friend
    #1000329
    This reply has been marked as private.
    Ninja Lead Moderator
    #1000733

    Hi,

    I fixed the problem on your site with the solution below

    • Open administrator/components/com_content/views/articles/tmpl/modal.php file

    find and change

    <?php echo $item->language_title ? JHtml::_('image', 'mod_languages/' . $item->language_image . '.gif', $item->language_title, array('title' => $item->language_title), true) . '&nbsp;' . $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?>

    to

    <?php echo $item->language_title ? $this->escape($item->language_title) : JText::_('JUNDEFINED'); ?>

    Now, the problem on your site is gone

    Regards

    chris659 Friend
    #1000851

    Thanks for your response.
    I appreciate the time you spend on support with my question.
    But you’re basically removing the language_image property in a core admin component file.
    I think an override should be created in /administrator/templates/isis/html/com_content/articles/modal.php or the fix will be erased in the next minor Joomla update.
    The question why this property is undefined in the first place is still open.
    But that’s Ok I will monitor it in the future and post here any information I would find about the origin of the issue.
    Best regards,

    Ninja Lead Moderator
    #1000869

    Hi,

    You can also post the same query into Joomla forum as this relates much to Joomla core rather than our template.

    Regards

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

This topic contains 11 replies, has 2 voices, and was last updated by  Ninja Lead 8 years ago.

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