• Resolved Dave

    (@crazybikerdave)


    Hi —
    Looks like this plugin is throwing a fatal error after the recent update to versions 2.0 –

    Fatal error: require_once(): Failed opening required ‘vendor/autoload.php’ (include_path=’.:/usr/share/pear/php:/usr/share/php’) in /nas/content/live/[removed]/wp-content/plugins/post-password-plugin/post-password-token.php on line 22

    I had to revert to the previous 1.x versions.

    Is there a plan to fix?

    DH

Viewing 5 replies - 1 through 5 (of 5 total)
  • Same, the latest update is breaking sites that have this plugin installed. After reverting back, I checked and noticed my php version was 7.3. I upgraded to 7.4 thinking this would solve the issue, but updating still breaks the site.

    Please let us know when there’s a fix, otherwise we can’t update the plugin.

    Plugin Author Shawn Parker

    (@shawnparker)

    I see what the problem is. A default exclusion of the composer vendor directory means it is not included in the plugin package. While no composer packages are used outside of testing, it is used for PSR-4 autoloading.

    I’ll fix and tag 2.0.1 ASAP.

    Plugin Author Shawn Parker

    (@shawnparker)

    Version 2.0.1 with a fix for this error has been created.

    Plugin Author Shawn Parker

    (@shawnparker)

    I’ll remove the dependency on PSR-4 autoloading in a future update, when I have time to do it right. I don’t like committing the vendor directory, but it was the fastest way to fix the error.

    Shawn, thank you for the quick update. 2.0.1 is no longer breaking the sites.

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