Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 935
    • Issues 935
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • Development
  • Core
  • Issues
  • #1235

Closed
Open
Opened Sep 05, 2019 by MikeyMJCO@MikeyMJCODeveloper

Drupal 8 - CLI CSV exporter doesn't work!

mjco@www-prod /var/www/crm $ php vendor/civicrm/civicrm-core/bin/csv/export.php -e OptionGroup > OptionGroups.csv                                                                                                                                                               PHP Warning:  include_once(/var/www/crm/vendor/civicrm/civicrm-core/../../../../default/civicrm.settings.php): failed to open stream: No such file or directory in /var/www/crm/vendor/civicrm/civicrm-core/civicrm.config.php on line 118
PHP Warning:  include_once(): Failed opening '/var/www/crm/vendor/civicrm/civicrm-core/../../../../default/civicrm.settings.php' for inclusion (include_path='.:/usr/share/php') in /var/www/crm/vendor/civicrm/civicrm-core/civicrm.config.php on line 118
mjco@www-prod /var/www/crm $

On Drupal 8 running the CLI exporter/importer scripts fails because it can't find civicrm.settings.php or civicrm.config.php - instead of requiring these in a relative way (as above) can we require these using a smarter method?

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: dev/core#1235