Does anyone use gitify with mamp pro on mac? After reinstalling, gitify cannot establish a connection to the database (extract, backup, etc.). I’m a bit in the dark right now. Does anyone have any tips?
That’s weird. Gitify just loads MODX externally and then uses MODX to access the database. So if the database connection works in the MODX installation, it should work in Gitify as well.
You are right. I write a little demo file in the root:
<?php
require_once('config.core.php');
require_once(MODX_CORE_PATH . 'model/modx/modx.class.php');
$modx = new \modX();
$modx->initialize('mgr');
$modx->getService('error', 'error.modError', '', '');
$modx->setLogTarget('ECHO');
echo 'Connection: ' . ($modx->connect() ? 'yes' : 'no');
Opening this file in the browser works:
Running it as CLI also:
Putting echo 'Connection: ' . ($modx->connect() ? 'yes' : 'no') . "\n\n";
in /.composer/vendor/modmore/gitify/src/Gitify.php
after Line 83 breaks:
The problem has been solved. I’ve been using Laravel Herd for another project. This prevents the connection and replaces the MySQL socket. Removing Laravel Herd fixes the problem
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.