• Resolved jurasjo

    (@jurasjo)


    Hi
    When working on menus there is PHP Notice like shown below:
    PHP Notice: Undefined index: url in /home/suomikac/public_html/testy/wp-content/plugins/lifterlms/includes/class.llms.nav.menus.php on line 157

    Looks like this is the code from mentioned php file:
    'url' => $data['endpoint'] ? llms_get_endpoint_url( $data['endpoint'], '', llms_get_page_url( 'myaccount' ) ) : $data['url'],

    No big harm but maybe it is something worth to be corrected.

    PHP 7.3.x
    WordPress 5.2.4
    LifterLMS 3.36.4

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codeboxllc

    (@codeboxllc)

    @jurasjo,

    After reviewing the code I don’t see how any of our nav menu items would end up ever getting to the the condition that’s looking at the url.

    I’m not seeing this on a clean local install. Can you confirm that you don’t have any custom code that might be adding custom dashboard tabs to your site using the filter found in this method: https://developer.lifterlms.com/reference/classes/llms_student_dashboard/get_tabs/

    If that doesn’t help would you post me a copy of your LifterLMS System Report to a service like pastebin so I can take a closer look at your configuration and see what’s causing this that’s eluding me?

    Thanks,

    Thread Starter jurasjo

    (@jurasjo)

    I have no custom function utilizing that code and it only occurs on the back-end. I resend this info and a copy of LifterLMS System Report trough lifterlms.com dashboard – I have valid WooCommerce Extension license.

    @jurasjo,

    I’ll close this out then and we’ll deal with this via email.

    In the future it’s almost always faster to use our email support than posting here.

    Best,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Notice: Undefined index: url’ is closed to new replies.