• Resolved Malae

    (@malae)


    Hello Demis,

    Thanks for your great plugin. Please be advised of the following:

    PHP Notice:  Undefined index: bt_size in
    /wp-content/plugins/nicescrollr/shared/class-backtop.php on line 107
    PHP Notice:  Undefined index: bt_arrow_color in
    /wp-content/plugins/nicescrollr/shared/class-backtop.php on line 108

    Can you fix this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Demis Patti

    (@demispatti)

    Hello Malae

    Thanks for your report. I’ll look into it tonight.

    Best regards,

    Demis

    Plugin Author Demis Patti

    (@demispatti)

    Hello Malae

    The issue should be fixed with version 0.7.6. Can you confirm, please?
    Thanks again for the issue report and a lot of thanks for using this plugin.

    Regards,

    Demis

    Thread Starter Malae

    (@malae)

    Hello Demis,

    Thank you for reply. I did not find any code change in the class-backtop.php file, other than the comment on line 107. Perhaps you changed code in other files.
    The notices are still appearing, now for lines 108 and 109.

    I tried adding line 108:
    if(isset($config['bt_size']) && isset($config['bt_arrow_color'])) {
    and added a closing curly brace } at the bottom.

    It seems to work. What do you think?

    Plugin Author Demis Patti

    (@demispatti)

    Hello Malae

    Thanks for your effort. It’s not a matter of a brace. The issue is that after I changed some backtop settings, the changed options were not populated with their default values, hence the notices.

    To get rid of the notices, please try the following:
    Go to the Nicescroll settings page, and just save the options without changing anything.
    This should set the default values for the missing options. After that, you can customize it as needed. Repeat for the backend.

    If this should fail, simply enter the desired values for the settings you get notices for, and the issue is gone.

    I hope this helps!

    And I’m sorry for this inconvenience.

    Best regards,

    Demis

    Thread Starter Malae

    (@malae)

    Hello Demis,

    Thanks for your reply. I mentioned adding the closing brace, because I had an opening brace at the end of the line of code that I added.

    I should have realised that the issue might be related to the saving of the settings, because I had other transitory undefined index notices for another file on a different site.

    I see that you have updated again and all is well. No need for apologies, with my limited coding abilities, I am in awe of the coding that you have used to produce this plugin.

    Plugin Author Demis Patti

    (@demispatti)

    Hello Malae

    I’m glad that it works as expected again.
    Thanks for using my plugin ??

    Regards,

    Demis

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP 7.4 Notice undefined index’ is closed to new replies.