-
-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error: Uncaught TypeError: is_link(): Argument #1 ($filename) must be of type string, Drush\Config\Environment given in /tmp/site/vendor/webflo/drupal-finder/src/DrupalFinder.php:153 #756
Comments
Hello team, I have created the pR for the fix : #757 |
Oh, it dropped as a minor release. Okay, thanks for reporting and the PR |
@DEVDESAGAR1 I'm curious what configuration you have? I'm not seeing it error this way, nor are the Drupal.org GitLab CI jobs |
I can't reproduce the failures, but for now I'm merging #758 to accept the deprecations |
I am facing this exact same issue where i just upgrading Drupal 10.1.14 to latest Drupal 10.2.6. I can not run Drush updb and get the following error which is same as you guys are facing, whats the fix so far we have? Really blocked at this point on this error. `PHP Fatal error: Uncaught TypeError: is_link(): Argument #1 ($filename) must be of type string, Drush\Config\Environment given in /var/www/html/vendor/webflo/drupal-finder/src/DrupalFinder.php:153 Fatal error: Uncaught TypeError: is_link(): Argument #1 ($filename) must be of type string, Drush\Config\Environment given in /var/www/html/vendor/webflo/drupal-finder/src/DrupalFinder.php:153 |
This was Drush issue and i have solved it by creating a patch for Drush 12. I was running into this issue when I upgraded to Drush 11.x to 12.x on a Drupal 10.1.x and 10.2.x Found the issue fix on drush github create a patch and apply it to 12.x version from here: https://github.com/drush-ops/drush/pull/5755/files Note: This issue is fixed and merged in Drush 13.x as per pull request conversation drush-ops/drush#5755 |
I am not sure what i updated that is now causing this error:
but drush 12.5 and this patch: https://patch-diff.githubusercontent.com/raw/drush-ops/drush/pull/5755.patch does not fix it. |
Ah, i had 12.5.0 (and the patch); but require drush 12.5.2 (maybe 12.5.1 would work) and the patch to fix. |
I have drush 12.5.2 and the patch works. Try to update drush to the version and let me know. |
Drush 12.5.1 + patch does not work. |
So, is this not an issue with phpstan-drupal? I'm guessing not, since the CI is passing for build integrations |
@mglaman True, but there is a retro effect somewhere so you will have to tie it up with drush 12.5.1+ |
Understood, but it's not caused by this package. Just both share this same dependency |
I had the same problem with Drush 12.4.3, it works 12.5.2 even without the patch. |
I am using drush 12.5.2 I got this error:
|
I missed the part related to drush patch. So, to fix all issues, you need this patch: https://github.com/drush-ops/drush/pull/5755/files |
Updating to Drush 12.5.2 fixed this issue for me. |
Updating to 12.5.2 fixed the issue. No patch needed. |
I just updated my sites, and am being bitten by this problem. Updating to 12.5.2 does not fix the issue for me. I tried patching Drupal with https://github.com/drush-ops/drush/pull/5755/files, to no avail. FWIW, I don't understand why this is triggering, as my document root is not a symlink. My files directory ( |
Faced same issue on upgrading from Drupal 10.2.4 to 10.3.0 Updating Drush to 12.5.2 fixed the issue for me. No patch needed. Thanks! |
Thank you @rf033 - your comment:#756 (comment) worked in my case. 2 ways to update drush:
I now no longer get errors if doing
|
Updating Drush to 12.5.2 fixed the issue for me. No patch needed. |
Bug report
Phpstan is failing due to code updated in the webflo : https://github.com/webflo/drupal-finder/pull/65/files
Phpstan is using the this module
error :
Fatal error: Uncaught TypeError: is_link(): Argument #1 ($filename) must be of type string, Drush\Config\Environment given in /tmp/site/vendor/webflo/drupal-finder/src/DrupalFinder.php:153
Code snippet that reproduces the problem
The text was updated successfully, but these errors were encountered: