• Resolved bigleaf3

    (@bigleaf3)


    DCY plugin ver. 1.0.2, WP ver. 6.2

    Activate plug-in, view site home directory, file error_log contains following warnings for every site access request:

    [22-Apr-2023 03:05:03 UTC] PHP Warning: Undefined array key “prem-position-1” in /path/to/domain.tld/wp-content/plugins/dynamic-copyright-year/dynamic-copyright-year.php on line 58
    [22-Apr-2023 03:05:03 UTC] PHP Warning: Undefined array key “fscymu-policylink-ptag” in /path/to/domain.tld/wp-content/plugins/dynamic-copyright-year/dynamic-copyright-year.php on line 73

    The code in the file dynamic-copyright-year.php is accessing an array with an undefined key. It should be testing for an undefined key and taking action to resolve the issue.

Viewing 1 replies (of 1 total)
  • Plugin Author 5 Star Plugins

    (@5starplugins)

    @bigleaf3 Apologies for the delay, I’m not sure how we missed this thread. PHP warnings can be ignored, and we recommend ensuring that WP_DEBUG is not enabled in any production use. In any event we will look into these array warnings, and update the code to avoid them.

Viewing 1 replies (of 1 total)
  • The topic ‘Dynamic Copyright Year plugin throwing warnings’ is closed to new replies.