• Resolved thecmg

    (@thecmg)


    I’ve had this happen on both PHP 7.4 and 8.1 now after installing version 4.5.3. WordPress versions are a mix of 5.9.7 and 6.2.2.

    After activating the plugin (either through wp plugin activate or through the UI, I get a white screen and the following error in the logs:

    Got error 'PHP message: PHP Warning: require(/srv/www/SITE/public_html/wp-content/plugins/wp-security-audit-log/third-party/vendor/composer/installed.php): Failed to open stream: No such file or directory in /srv/www/SITE/public_html/wp-content/plugins/wp-security-audit-log/third-party/vendor/composer/InstalledVersions.php on line 346

    At that line in InstalledVersions.php, it’s trying to load a file called installed.php that does not exist. Creating a file with that name with just the content <?php seems to make it work and goes through the setup wizard.

Viewing 1 replies (of 1 total)
  • Plugin Support robertabela

    (@robert681)

    Thank you for using our plugin @thecmg

    In regards to the different WordPress versions, I am presuming you mean you are seeing this warning on both versions, which means you are running the plugin on multiple websites. Is that correct?

    By the way, this is a warning so it should not be affecting the functionality of the plugin or website. Can you please confirm that to start off with?

    Usually this warning is caused by different versions of Composer. Also, so now, once you have created the empty file, everything is working correctly?

    Looking forward to hearing from you.

Viewing 1 replies (of 1 total)
  • The topic ‘Error when activating: can’t find installed.php’ is closed to new replies.