• Resolved Barry

    (@barrypersonalctonet)


    This plugin generates a variety of PHP notices about undefined variables, when we have logging enabled to troubleshoot other issues. Examples are:

    PHP Notice: Undefined index: url in /home/my_site/public_html/wp-content/plugins/simple-share-buttons-adder/simple-share-buttons-adder.php on line 239
    PHP Notice: Undefined index: pagetitle in /home/my_site/public_html/wp-content/plugins/simple-share-buttons-adder/simple-share-buttons-adder.php on line 240
    PHP Notice: Undefined offset: 0 in /home/my_site/public_html/wp-content/plugins/simple-share-buttons-adder/simple-share-buttons-adder.php on line 691
    PHP Notice: Undefined variable: strPageTitle in /home/my_site/public_html/wp-content/plugins/simple-share-buttons-adder/simple-share-buttons-adder.php on line 690

    While they don’t hurt anything, they tend to clutter up the log, making it harder to see the issues that logging was enabled to examine.

    So, if at some point they could be cleaned up, that would be nice.

    Thanks.

    https://ww.wp.xz.cn/plugins/simple-share-buttons-adder/

Viewing 3 replies - 1 through 3 (of 3 total)
  • I have some of these errors too (Undefined index: url and Undefined index: pagetitle).

    Is there a plan to fix them in a (close) future version?

    Plugin Author Simple Share

    (@davidoffneal)

    Thank you both for raising these issues, the next version (released today or tomorrow) will fix these notices.

    As a reminder to anyone viewing this, please only ever have WP_DEBUG set to true in development/uat/staging environments.

    Thanks,

    David

    David,

    Thank you very much for your quick fix!

    Lea

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Notices for undeclared variables’ is closed to new replies.