• Resolved tigerrockmartialarts

    (@tigerrockmartialarts)


    I have identified an issue with your plugin that will cause 500 errors on certain environments. Line 26 of wp-smtp.php is using a side effect to retrieve the correct autoload.php file. ‘require_once’ will first look in the base installation for ‘vendor/autoload.php’ then if it doesn’t find it there, it will look in the directory it was called from. So in the project I am working on, I required the use of composer in my base app, and it caused this plugin to not call its specific autoload.php, and instead call the base autoload.

    This issue can be resolved by simply switching the line out for:
    require_once __DIR__ . ‘/vendor/autoload.php’;
    This will explicitly state which file you actually want to load.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘500 error’ is closed to new replies.