-
AuthorPosts
-
January 3, 2017 at 11:17 am #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.phpSteps 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.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 4, 2017 at 2:22 am #999383Hi,
I need a closer look at your site to investigate further, you can provide URL and Admin account via private reply.
Regards
January 4, 2017 at 11:12 am #999523This reply has been marked as private.Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 5, 2017 at 1:18 am #999683Hi,
Have you sorted out it? I checked and saw it’s working as well on your site: http://prntscr.com/drmyno
Regards
January 5, 2017 at 8:45 am #999799Hello,
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 ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 5, 2017 at 9:48 am #999836Hi,
Could you send me the URL of page where I can see the issue?
Regards
January 6, 2017 at 9:45 am #1000215Hi,
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 ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 6, 2017 at 10:29 am #1000233Hi,
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
January 6, 2017 at 3:45 pm #1000329This reply has been marked as private.Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 9, 2017 at 2:14 am #1000733Hi,
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) . ' ' . $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
January 9, 2017 at 9:37 am #1000851Thanks 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 ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 9, 2017 at 10:25 am #1000869Hi,
You can also post the same query into Joomla forum as this relates much to Joomla core rather than our template.
Regards
AuthorPostsViewing 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
Undefined property language_image
Viewing 12 posts - 1 through 12 (of 12 total)