composer install git error

Created on 12 April 2023, over 1 year ago
Updated 12 March 2024, 10 months ago

Just tried to use composer install command on a fresh install and got the following error:

composer create-project opigno/opigno-composer example-folder

In GitDownloader.php line 500:

Failed to execute git checkout 'c9b4600ee73b1555efe35c97b2260daf65a810a4' -- && git reset --hard 'c9b4600ee73
b1555efe35c97b2260daf65a810a4' --

fatal: not a git repository (or any parent up to mount point /home)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

EDIT:
Ok got a bit further - made sure PHP was on 8.1 rather than 7.4

Had to get pdf module as it was missing - used composer to grab this and it downloaded a .git folder inside the pdf module folder - this didnt work so ended up manually uploading the module files.

Was then able to run install procedure in a browser and then hit these error messages.

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /web/web/core/install.php?rewrite=ok&profile=opigno_lms&langcode=en&id=1&op=do_nojs&op=do
StatusText: parsererror
ResponseText:
Deprecated: Optional parameter $prefix declared before required parameter $defaultLanguage is implicitly treated as a required parameter in /home/customer/xxx/public_html/web/web/modules/contrib/h5p/vendor/h5p/h5p-editor/h5peditor.class.php on line 376
Deprecated: Optional parameter $fileDir declared before required parameter $defaultLanguage is implicitly treated as a required parameter in /home/customer/xxx/public_html/web/web/modules/contrib/h5p/vendor/h5p/h5p-editor/h5peditor.class.php on line 376
{"status":true,"percentage":"52","message":"Completed 67 of 129.","label":"Installed \u003Cem class=\u0022placeholder\u0022\u003EH5P\u003C\/em\u003E module."}

The website encountered an unexpected error. Please try again later.
Drupal\Core\Config\UnmetDependenciesException: Configuration objects provided by opigno_lms have unmet dependencies: block.block.opigno_training_catalog_filter (views.view.opigno_training_catalog) in Drupal\Core\Config\UnmetDependenciesException::create() (line 100 of core/lib/Drupal/Core/Config/UnmetDependenciesException.php).
Drupal\Core\Config\UnmetDependenciesException::create('opigno_lms', Array) (Line: 530)
Drupal\Core\Config\ConfigInstaller->checkConfigurationToInstall('module', 'opigno_lms') (Line: 132)
Drupal\Core\ProxyClass\Config\ConfigInstaller->checkConfigurationToInstall('module', 'opigno_lms') (Line: 199)
Drupal\Core\Extension\ModuleInstaller->install(Array, ) (Line: 83)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, ) (Line: 1659)
install_install_profile(Array) (Line: 700)
install_run_task(Array, Array) (Line: 571)
install_run_tasks(Array, NULL) (Line: 119)
install_drupal(Object) (Line: 48)

I rarely had issues installing Drupal 7 distros but these days I rarely get a clean install on a distro with D8/D9...

🐛 Bug report
Status

Fixed

Version

3.1

Component

Code

Created by

🇬🇧United Kingdom kevster

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

Comments & Activities

Production build 0.71.5 2024