• Resolved talboynz

    (@talboynz)


    For some reason the following comes up on the top of the page when in admin mode. Can anyone help to resolve this please?

    Notice: Undefined index: url in /home/anzfc/public_html/wp-content/plugins/wpforms-lite/src/Forms/IconChoices.php on line 124

    Notice: Undefined index: path in?/home/anzfc/public_html/wp-content/plugins/wpforms-lite/src/Forms/IconChoices.php?on line?125

    The 2 lines are in the public function init() in IconChoices.php are;

    $this->cache_base_url = $upload_dir[‘url’] . ‘/icon-choices’;
    $this->cache_base_path = $upload_dir[‘path’] . ‘/icon-choices’;

    I assume that url and path are not defined, but why and where?

    Thanks in advance.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hey @talboynz – Thanks for reaching out!

    Looking at the warning message, there’s a possibility that the plugin isn’t able to find your upload directory or you might be using a custom directory structure under Settings > Media. When you have some time, can you please share your site information that you can get by following the guide here?

    Kindly,

    Thread Starter talboynz

    (@talboynz)

    Thank you Prashant. Indeed I had a full path in the uploads directory instead of the default. All resolved.

    Hey @talboynz – Thrilled to hear that the issue is resolved now. If you have any questions, please feel free to reachout.

    Kindly,

    @talboynz , I am also getting same error, Can i know what solution you have tried? What path you have added and where?

    Thread Starter talboynz

    (@talboynz)

    Hi @hybreeder – I can’t really recall what I did, but from the post I wrote, I suspect I might have had a custom path to my media, which I then deleted and just used the default.

    My setup is as follows;

    1. from Setting > Media > Organize my uploads into month- and year-based folders is ticked.
    2. in wp-config.php I do not have any line such as:
    define( ‘UPLOADS’, ‘pics’ ); If you have this try deleting it.

    Other than that I don’t know.

    Good luck.

    @talboynz , Tried but not working for me.

    Hey @hybreeder – Thanks for reaching out!

    To help avoid any confusion, when you get a chance, can you please create a new ticket and I’ll be happy to help you there?

    Kindly,

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Undefined index in WPFORMS-Lite’ is closed to new replies.