?
avatar StefanSTS
StefanSTS
3 Jun 2016

Steps to reproduce the issue

Open an article by clicking on a menu link.
Article should have a link in content like:
Produktvariante

Expected result

Show the page without notices.

Actual result

Shows the notice.

System information (as much as possible)

Joomla 3.5.1
PHP 7.0.6
Apache 2.4.7-1ubuntu4.9

Additional comments

I tried to reproduce the notice and it showed up for every link inside of an article. So one link, one message, two links, two equal messages. And so on.
Searching for the error message shows various sites with the same problem. Of course switching off the messages would help, but since it shows in combination with links inside the content, there might be something to start with finding the issue.

Regards
Stefan

avatar StefanSTS StefanSTS - open - 3 Jun 2016
avatar StefanSTS
StefanSTS - comment - 3 Jun 2016

Link got eaten up by the editor, put some sqare brackets not. It's shortend by cutting of the slug a bit.
[a href="index.php?option=com_content&view=article&id=14:tutorial-virtu&catid=8:tutorials-de&lang=de-DE&Itemid=133"]Produktvariante[/a]


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/10721.

avatar ggppdk
ggppdk - comment - 5 Jun 2016

Hi

The particular IF statement that produces this notice, assumes that the given menu item to be used for creating the SEF link,
always has variables:

  • 'view'
  • 'id'

Also it does not care of the menu item is really com_content,
so besides the notice,

  • in rare cases an non - com_content menu item can be activated (if 'view' and 'id' variables of current menu item are a match but point to a different component)

A relevant discussion, describing the above is here:
#6488

I am guessing that you did this:

  • you added a link in an editor area (e.g. in article description) linking to another article

and the inserted link had been added with menu item id: 133

then at later time you have changed the type menu-item for menu-item 133 ?

avatar StefanSTS
StefanSTS - comment - 6 Jun 2016

Hello Georgios,
indeed this was caused by the change of a menu item from category blog to menu item alias (which was pointing to the first child menu item). The link before had the menu item id 133 and the alias was pointing to the child menu item with id 185 or so. Both links had got view=article and (article_)id 13, only the category id and menu item id changed.

The error message made me think, it was a problem with the view=article and probably redirected my attention from the real problem, the category id and menu item id.

I added the links in the article with JCE which put the non SEF link. With putting a SEF link instead, I could have avoided the notice.

I guess only an additional table, that would record all internal links given in articles and then referencing them with the given menu items would help in this case. All links would have to be updated on change of the menu item automatically.

Thanks for your help to figure out the problem and sorry for bringing up an issue, that might have been better placed in the forum.
Stefan

avatar brianteeman
brianteeman - comment - 6 Jun 2016

Closed

avatar brianteeman brianteeman - change - 6 Jun 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-06-06 11:08:34
Closed_By brianteeman
avatar brianteeman brianteeman - close - 6 Jun 2016

Add a Comment

Login with GitHub to post a comment