Git Product home page Git Product logo

civicrm-cli-tools's People

Contributors

totten avatar

Watchers

 avatar  avatar  avatar

civicrm-cli-tools's Issues

Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, false given in phar: ... .box/src/Terminal.php:60

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:

  1. php composer.phar require civicrm/civicrm-core

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:

  1. php composer.phar require "civicrm/civicrm-packages:^5.69"
  2. php composer.phar require "civicrm/civicrm-drupal-8:^5.69"
  3. php composer.phar require civicrm/cli-tools

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.