Try to upload manually with FTP.
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
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..
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.
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.