civicrm / civicrm-cli-tools Goto Github PK
View Code? Open in Web Editor NEWBundle of CiviCRM-specific command-line tools (for composer-based site-builders)
Bundle of CiviCRM-specific command-line tools (for composer-based site-builders)
A fatal PHP error occurs during cv core:install. I provide details of the error below but first I'll provide some context.
I am exploring the possibility of using Drupal and CIVICRM to replace the donation management system currently used by a non-profit that I'm involved in.
I have PHP 8.3.3, MySQL Server 8.3 and installed on Windows 11.
Drupal 10.2.3 and drush have both been installed and configured using composer.
Following the CIVICRM installation guide I first tried to get the Drupal 10 code using
php ..\composer.phar require civicrm/civicrm-{core,packages,drupal-8}.
However that resulted in this confusing message from composer:
Pick one of these or leave empty to abort:
[0] drupal/civicrm_tools
I choose to abort and decided to get the CIVICRM code downloaded piece by piece in this way:
composer's message was: Using version ^5.69 for civicrm/civicrm-core.
So to keep the rest of the downloads in sync I used these restraints:
Now when I try to do the cv core:install I get a fatal PHP error as follows:
C:\drupal10\localhost>vendor\bin\cv core:install --cms-base-url="https://d10.example.org" --db="mysql://civicrm_user:[email protected]:3306/civicrm_db"
PHP Fatal error: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, false given in phar://C:/drupal10/localhost/vendor/civicrm/cli-tools/extern/cv.phar/.box/src/Terminal.php:60
Stack trace:
#0 phar://C:/drupal10/localhost/vendor/civicrm/cli-tools/extern/cv.phar/.box/src/Terminal.php(60): trim()
#1 phar://C:/drupal10/localhost/vendor/civicrm/cli-tools/extern/cv.phar/.box/src/Terminal.php(31): HumbugBox436\KevinGH\RequirementChecker\Terminal::initDimensions()
#2 phar://C:/drupal10/localhost/vendor/civicrm/cli-tools/extern/cv.phar/.box/src/Printer.php(28): HumbugBox436\KevinGH\RequirementChecker\Terminal->getWidth()
#3 phar://C:/drupal10/localhost/vendor/civicrm/cli-tools/extern/cv.phar/.box/src/Checker.php(17): HumbugBox436\KevinGH\RequirementChecker\Printer->__construct()
#4 phar://C:/drupal10/localhost/vendor/civicrm/cli-tools/extern/cv.phar/.box/bin/check-requirements.php(22): HumbugBox436\KevinGH\RequirementChecker\Checker::checkRequirements()
#5 C:\drupal10\localhost\vendor\civicrm\cli-tools\extern\cv.phar(12): require('...')
#6 C:\drupal10\localhost\vendor\civicrm\cli-tools\bin\cv(7): require('...')
#7 C:\drupal10\localhost\vendor\bin\cv(119): include('...')
#8 {main}
thrown in phar://C:/drupal10/localhost/vendor/civicrm/cli-tools/extern/cv.phar/.box/src/Terminal.php on line 60
I have tried a number of things including:
a) de-installing drush (I saw reference to a conflict on stackexchange)
b) using the dev-master version of cli-tools
Now I'm stumped. I would appreciate any suggestions on what I might try next.
Many thanks in advance ... Rob
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.