TypeError: Argument 3 passed to Drupal\hacked\HackedProjectWebDevDownloader::gitClone() must be of the type st

Created on 6 September 2023, over 1 year ago
Updated 8 September 2023, over 1 year ago

Problem/Motivation

Getting the following error when trying to run the hacked report on a Drupal 9 site.

TypeError: Argument 3 passed to Drupal\hacked\HackedProjectWebDevDownloader::gitClone() must be of the type st
ring, null given, called in /var/www/html/www/modules/contrib/hacked/src/HackedProjectWebDevDownloader.php on
line 70 in Drupal\hacked\HackedProjectWebDevDownloader->gitClone() (line 100 of /var/www/html/www/modules/cont
rib/hacked/src/HackedProjectWebDevDownloader.php).

Also getting the following types of run when trying to build the report using drush along with the previous error.

> [notice] Finished processing: admin_login_path
> [error] Could not download project: admin_toolbar
> [error] Could not hash remote project: admin_toolbar
> [error] Could not download project: admin_toolbar
> [error] Could not hash remote project: admin_toolbar
> [error] Could not hash local project: admin_toolbar
> [notice] Finished processing: admin_toolbar

Steps to reproduce

Just enable the module and run the report.

This error seems to be similar to the thread in D7 version
https://www.drupal.org/project/hacked/issues/2829440

🐛 Bug report
Status

Fixed

Component

Code

Created by

🇮🇳India binnythomas Trivandrum, Kerala, India

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024