Skip to Content Skip to Menu

How to fix "Undefined index: url . . . "

  • rae2
  • rae2
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
6 years 4 months ago - 6 years 4 months ago #304960 by rae2
Can anyone tell me how to resolve this issue?
After (1) undating joomla to 3.8.6;
(2) fixing an .htacess problem with redirects; and
(3) enabling the SEFs in global config;

I NOW get this error
"Notice: Undefined index: url in /home4/msmgas/public_html/libraries/CBLib/CB/Legacy/CBuser.php on line 782"

The message appears on the member profile pages & the edit windows.

Disabling the SEFs in global config do not resolve this.
Last edit: 6 years 4 months ago by rae2.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
6 years 4 months ago #304967 by krileon
Replied by krileon on topic How to fix "Undefined index: url . . . "
Line 782 is as follows.

Code:
if (substr(ltrim( $pm[$i]['url'] ),0,2) == '<a') {

It's trying to parse the URL for a CB Menu item. Did you extend CBs menu using CB Auto Actions? If so try unpublishing your auto action. Beyond that I don't know what to suggest as something is incorrectly adding to the CB Menu. Try unpublishing non-core CB plugins 1 by 1 within CB > Plugin Management until the notice goes away.


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.

  • rae2
  • rae2
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
6 years 4 months ago #304974 by rae2
Replied by rae2 on topic How to fix "Undefined index: url . . . "
Kyle, thank you for explaining what is going on. I have been struggling to understand "cause & effect" here & your explanation of the code line 782 helps me.

1) CB Auto actions were not extended. But I disabled the plugin to check.. . not the problem.

2) Your excellent troubleshooting tip helped me locate the cause :-) :-) . . . the error msg disappears when I disable the CB Menu plugin.

QUESTION: The CB Menu plugin version is current; should I uninstall & re-install the same plugin?

NOTE: I went to CB Tools & ran a "check CB plugins database" - the resulting msg read "All CB plugin "CB Menu" database is up to date"

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

  • rae2
  • rae2
  • OFFLINE
  • Posts: 5
  • Thanks: 0
  • Karma: 0
6 years 4 months ago #304975 by rae2
Replied by rae2 on topic How to fix "Undefined index: url . . . "
Additional Feedback:

I went back & tested more; the undefined error message ONLY appears on the CB menu item "User Profile". It does NOT show up on such CB menu items as "User Profile Edit" & "User List".

I replicated the "User Profile" in two separate Joomla menus (Main & a side menu) & the error reporting is consistent.

If I disable the CB Menu plugin, the links continue to work & the error msg disappears.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
6 years 4 months ago #304981 by krileon
Replied by krileon on topic How to fix "Undefined index: url . . . "
Do you have a valid public and published Joomla menu item to CBs profile page? If not create one and see if that clears it up. A menu item is basically missing somewhere.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum