woolfg / dokuwiki-plugin-gitbacked

Plugin for DokuWiki to store/sync files and media with a git repo
GNU General Public License v2.0
74 stars 26 forks source link

HTTP ERROR 500: Uncaught exception 'Exception' with message 'fatal: unable to set up default path; use --file fatal: Authentication failed #44

Closed tofighi closed 3 years ago

tofighi commented 7 years ago

I receive the following error, each time I want to save an edited version of a page, or creating a new page. The first time, it just does not load the page and show me HTTP ERROR 500. When I refresh and save again, it works and commits changes to GitHub. Any ideas about the source of this problem?

PHP Fatal error:  Uncaught exception 'Exception' with message 'fatal: unable to set up default path; use --file
fatal: Authentication failed
' in /home1/test/public_html/dokuwiki/lib/plugins/gitbacked/lib/Git.php:317
Stack trace:
#0 /home1/test/public_html/dokuwiki/lib/plugins/gitbacked/lib/Git.php(332): GitRepo->run_command('/usr/bin/git --...')
#1 /home1/test/public_html/dokuwiki/lib/plugins/gitbacked/lib/Git.php(627): GitRepo->run('push --tags ori...')
#2 /home1/test/public_html/dokuwiki/lib/plugins/gitbacked/action/editcommit.php(89): GitRepo->push('origin', 'master')
#3 /home1/test/public_html/dokuwiki/lib/plugins/gitbacked/action/editcommit.php(197): action_plugin_gitbacked_editcommit->commitFile('/home1/test...', 'Wiki page deep_...')
#4 /home1/test/public_html/dokuwiki/inc/events.php(211): action_plugin_gitbacked_editcommit->handle_io_wikipage_write(Object(Doku_Event), NULL)
#5 /home1/test/public_html/dokuwiki/inc/events.php(79): Doku_Event_Handler->process_ev in /home1/test/public_html/dokuwiki/lib/plugins/gitbacked/lib/Git.php on line 317
woolfg commented 3 years ago

closed as not active for a while. feel freee to reopen.