• I have just updated to version 4.3.2. Visiting the Settings page’s Activity Log Viewer tab generated 2 PHP warnings.

    [17-Aug-2021 22:41:33 UTC] PHP Warning: Use of undefined constant php – assumed ‘php’ (this will throw an Error in a future version of PHP) in /<sub-folders>/wp-content/plugins/wp-security-audit-log/classes/Views/Settings.php on line 966

    [17-Aug-2021 22:41:33 UTC] PHP Warning: Use of undefined constant php – assumed ‘php’ (this will throw an Error in a future version of PHP) in /<sub-folders>/wp-content/plugins/wp-security-audit-log/classes/Views/Settings.php on line 968

    • This topic was modified 3 years, 3 months ago by swun.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Also having this issue

    PHP Warning: Use of undefined constant php – assumed ‘php’ (this will throw an Error in a future version of PHP) in /public_html/wp-content/plugins/wp-security-audit-log/classes/Views/Settings.php on line 968

    Plugin Support robertabela

    (@robert681)

    Thank you very much for using our plugin and for reporting this issue @timeassistant and @swun

    We will look into this and issue a fix in the next update of the plugin. In the meantime, if we will need more information we will contact you.

    Should there be anything else we can help you with, please do not hesitate to ask.

    Have a great day.

    Plugin Support Danny Jones

    (@distinctivepixels)

    Hi @swun and @timeassistant

    I just wanted to mention, we have located the source of the issue (it seems some versions of PHP don’t like a tag which is left as part of our plugin’s build processes) so thank you very much for bringing this to our attention.

    I can confirm we will certainly have this resolved in the next release.

    If anything else pops up in the meantime, please do not hesitate to let us know.

    Kind regards, Daniel @ WP White Security

    PHP 8 throws an Error and triggers the WordPress healthcheck. So each time you access the tab “Activity Log Viewer” in settings the error is triggered:

    Uncaught Error: Undefined constant “php” in /www/htdocs/w01af748/_entwicklung/woo.mensmaximus.com/wp-content/plugins/wp-security-audit-log/classes/Views/Settings.php:966

    Removing the two ‘<?php?>’ tags from settings.php solves the issue.

    Plugin Support robertabela

    (@robert681)

    Thank you for the update @mensmaximus

    We will include a fix for this in the upcoming update of the plugin. Have a good day.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP Warning’ is closed to new replies.