• Resolved wmuizelaar

    (@wmuizelaar)


    Hi,

    I just freshly installed the post-smtp plugin, version 2.0.4. WordPress is completely up-to-date.

    Set it up with a sendgrid API key, and then trying to send a testmail through the plugin options. That fails with an error message.

    In the PHP error log the following message is logged:
    PHP Warning: require_once(sendgrid/sendgrid-php.php): failed to open stream: No such file or directory in /var/www/html/wp-content/plugins/post-smtp/Postman/Postman-Mail/PostmanSendGridMailEngine.php on line 8″

    I tried removing and reinstalling the plugin – is there any way how I can further troubleshoot this issue?

    Thanks in advance,

    Wietse

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Try to upload manually with FTP.

    Thread Starter wmuizelaar

    (@wmuizelaar)

    That was a good pointer, thanks!

    I figured out what the issue was – there are a bunch of .gitignore-files throughout the plugin-code; and that prevented my git-repo from adding the whole codebase to my repo.

    I just deleted those .gitignore-files, and now life is happy.

    Case closed!

    Hey!

    I’m currently having this same issue. I’ve looked through the plugin and cannot see any .gitignore files that I can remove?

    Any idea why I would be having the same issue?

    Cheers

    Thread Starter wmuizelaar

    (@wmuizelaar)

    Those files might be hidden? This were the locations I found them:

    ./post-smtp/Postman/Postman-Connectivity-Test/registered-domain-libs-master/.gitignore
    ./post-smtp/Postman/Postman-Mail/sendgrid/.gitignore
    ./post-smtp/Postman/Postman-Mail/sendgrid/vendor/sendgrid/sendgrid/.gitignore
    ./post-smtp/Postman/Postman-Mail/sendgrid/vendor/sendgrid/php-http-client/.gitignore
    ./post-smtp/Postman/Postman-Mail/google-api-client/vendor/google/auth/.gitignore
    ./post-smtp/Postman/Postman-Mail/google-api-client/vendor/google/apiclient-services/.gitignore
    ./post-smtp/Postman/Postman-Mail/google-api-client/vendor/psr/log/.gitignore
    ./post-smtp/Postman/Postman-Mail/mailgun/vendor/clue/stream-filter/.gitignore
    ./post-smtp/Postman/Postman-Mail/mailgun/vendor/symfony/options-resolver/.gitignore
    ./post-smtp/Postman/Postman-Mail/mailgun/vendor/webmozart/assert/.gitignore

    Especially the first one is harmful, since that contains:

    $ cat ./post-smtp/Postman/Postman-Mail/sendgrid/.gitignore
    test/coverage/*
    examples/*
    dist/
    composer.lock
    vendor
    .env*
    sendgrid-php.php

    The last entry is a reference to the sendgrid-php.php file itself, which then became missing in my git checkin of my wordpress installation.

    Hope this helps!

    Cheers,
    Wietse

    • This reply was modified 6 years, 8 months ago by wmuizelaar.

    This .gitignore was problematic for us as well, we are using git repository to manage plugins code for our sites – this gitignore file results in broken sendgrid integration because files are not added to repository.

    I don’t understand why the plugin creator would leave these problematic .gitignore files in the plugin folder..

    Thread Starter wmuizelaar

    (@wmuizelaar)

    Maybe @yehudah can elaborate on that?

    Hi guys.

    A big part of Post SMTP is coming from 3rd party libraries so the gitignore files come from them.

    I still didn’t understand if you install manually or from the dashboard how it’s disturbing your workflow.

    Thread Starter wmuizelaar

    (@wmuizelaar)

    To install + run my wordpress environment, I use the following tools:

    – I have a git repo with all the wordpress php-files on it
    – I manage wordpress in that repo with the wp-cli tool, i.e. wp plugin install post-smtp
    – This downloads the .zip-file, and extracts it into the plugins directory
    – I add all the newly added code to my git repo git add .
    – I commit and push this to github
    – A container build is started to build a docker image with the wordpress-install in it
    – This is deployed to Google Cloud

    Normally, that all runs well. But if there are any .gitignore-files within the plugins folders, the files mentioned -in- those .gitignore-files will not be added to my git-checkout, and therefore not included in the docker image.

    If other people also use git in their wordpress-deployment workflow, they will encounter the same issues.

    Would it be possible to add a find . -type f -name .gitignore line to your release procedure to remove those .gitignore-files in future releases?

    My workflow is pretty similar to one mentioned above by @wmuizelaar , only difference is that instead of wp-cli I’m using https://wpackagist.org/ but the end result is same – missing plugin files.

    Thank you for the info.

    I promise to take care of this from now on.

    Thread Starter wmuizelaar

    (@wmuizelaar)

    Great! Much appreciated!

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Error PHP Warning: require_once(sendgrid/sendgrid-php.php): failed to open stre’ is closed to new replies.