Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Conflicts with com_content router

  • emanuelr
  • emanuelr
  • OFFLINE
  • Posts: 38
  • Thanks: 2
  • Karma: 3
11 years 6 months ago - 11 years 6 months ago #225634 by emanuelr
I read many posts regarding an issue with the com_content router.php file line #48 conflicting CB.

On some pages, there is this message:

Notice: Undefined index: view in C<span>:</span><span>\</span>wamp\www\mysite\components\com_content\router.php on line 48

There is a thread suggesting to edit the core router.php file, but since it's publish dte the original core file was changed (or maybe the hack was for j1.5), so I'm not sure how to edit it and anyway, I don't think it is the right solution.

I get this message, for example, in the registration page (linked from the cb login module) or from the profile edit page.

Any chance to isolate this issue once and for all?

I'm using J2.5.9, CB1.9, SEF(core) set to yes, rewriting set to no.

Thanks,
Emanuel
Last edit: 11 years 6 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225676 by krileon
Replied by krileon on topic Conflicts with com_content router
Nothing to do with CB. It happens when you have a Joomla content link with SEF on and there's no Itemid for it. For example if I create a Joomla article and there is no menu link to its section, category, or the article it self and I then display that link on the site with Joomla SEF enabled it will freak out as it can't find where it belongs for alias population.

I've implemented workarounds for this issue in CB Articles, CB Blogs, etc.. but other locations there's nothing I can do. If it's happening on registration then it's probably the Terms and Conditions URL if you have one supplied. To fix it you need to make the URL absolute instead of relative by prefixing it with your domain (e.g. FROM index.php?MYURL TO mysite.com/index.php?MYURL).


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • emanuelr
  • emanuelr
  • OFFLINE
  • Posts: 38
  • Thanks: 2
  • Karma: 3
11 years 6 months ago #225713 by emanuelr
Replied by emanuelr on topic Conflicts with com_content router
Hello Kyle,
Well, since it happens only with CB, I think it is a CB's issue.

Eventually, after reading your response, I set a new menu as a links container (the menu is not published anywhere). In that menu, I set a link to a single article (the Terms & Conditions).
Then, from an edit article form, using JCE editor, I set a link to that menu item, copied that link and wrote it as the link to that page in the registration tab of the CB configuration.

That solved the issue!

I'm sure there is a way to code this option without the need to go around, but anyway, what I just did (or your solution to enter an absolute url) should be clearly explained in the tab itself.

Thanks anyway,
Emanuel.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #225746 by krileon
Replied by krileon on topic Conflicts with com_content router

Well, since it happens only with CB, I think it is a CB's issue.

It happens anywhere a Joomla article URL is supplied as relative with having no Itemid and with Joomla SEF enabled. Happening in CB is simply where a link was provided. All CB plugins that handle Article URLs have a workaround implemented to avoid this though as they are not user supplied links (we can't force fix every user supplied article URL).

I'm sure there is a way to code this option without the need to go around, but anyway, what I just did (or your solution to enter an absolute url) should be clearly explained in the tab itself.

It's a workaround for a Joomla bug, there's no need for CB to explain workarounds for every Joomla issue. Hopefully will be fixed by Joomla in the near future otherwise will need to continue to work around with a absolute path or create a menu item to the article or its category.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • emanuelr
  • emanuelr
  • OFFLINE
  • Posts: 38
  • Thanks: 2
  • Karma: 3
11 years 6 months ago #225815 by emanuelr
Replied by emanuelr on topic Conflicts with com_content router
There are so many questions around regarding this issue.
Maybe it isn't as clear as you think, so why not saving all those posts here in the forum and pus a simple explanation.
Most of the features are well explained, right in the body of the different forms.

By the way, look at the HELP menu item of Kunena. It is a nice and elegant workaround... but even a simple textarea will be better (which you can add a popup or lightbox feature to).

Anyway, thanks for the solution and your time!
Emanuel.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum