Comments (19)
Seems to be a valet problem: laravel/valet#293
Running the plugin on a localhost server with php -S
seems to be working. I'll try and figure out how to solve this once I have some more time.
from kirby-git-content.
Not entirely sure if this was the final fix, but adding my SSH Key to the mac keychain seemed to have worked: https://help.github.com/en/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#adding-your-ssh-key-to-the-ssh-agent
from kirby-git-content.
Hi, can you give me some more information? You’re using v3.0.0-beta.1, right? Did you install the plugin with composer? Do you have any line and file numbers of the two errors above? Thank you!
Just a wild guess: Do you have an active user in the Kirby panel? It seems that the error happens when writing the commit massage and adding the users information as git author (which is the only part where the plugin calls a name()
method on an object). In your case the user object seems to be empty/null.
from kirby-git-content.
Thank you for your reply!
I'm indeed using v3.0.0-beta.1, installed with Composer. I don't have a line number to provide, these are the errors I get in the Panel when I try to save.
I do have a user named "admin".
from kirby-git-content.
Did you manage to find the error in the last couple of days? I’m back from vacations so if you manage to get it working do you want to share the solution? Otherwise: Is it possible to get access to your installation / code?
from kirby-git-content.
I still get the same error.
Do I need to set the remote? I'm trying to use the plugin locally via MAMP, and with the default options I think it should only try to commit, not push to the remote?
I could share the code, but it really is just a fresh Starterkit, and the plugin installed with Composer as described in the Forum.
from kirby-git-content.
I’ll try to test your starterkit setup tonight, maybe i’ll bee able to reproduce your error!
from kirby-git-content.
Any update on this? I just tried again and still can't get it to work.
My setup is:
- install via composer (as explained in Kirby's official docs)
- install GCAPC via composer as explained in the forum (though I had to specify a version
composer require blankogmbh/kirby-git-commit-and-push-content:v3.0.0-beta.1
otherwise it would fail to install) - the remote is set on Github, with an initial commit, as explained here in the Readme.
Every time I try to save, I get an error "Exception: Exception. Unable to update git: Array to string conversion"
. No change is commited.
No PHP error in the console.
from kirby-git-content.
Update: I used PHP 7.1. I upgraded to 7.3 and the plugin now works.
Is there a known minimum version that should be documented?
Also, I noticed I had to use a URL of the kind [email protected]:user/repo.git
. I couldn't get past authentication with https://github.com/user/repo.git
.
from kirby-git-content.
Sorry for not replying, I totally forgot to replay to this issue! We will definitely have a look to support PHP 7.1, this should be the minimum required version. You might also want to switch from tag v3.0.0-beta.1 to dev-kirby3 for now because this branch already contains some small fixes.
from kirby-git-content.
Sweet! Thank you. I switched to dev-kirby3
.
You should really update the readme with all the info from the forum, it would help a lot.
FYI, I tried both 7.1 and 7.2 with dev-kirby3 and got the same error as before. For me it only works with PHP 7.3.
from kirby-git-content.
We’ll try! :) Actually I’m waiting for feedback from Wottpal (who forked this plugin) if we should join forces on a Kirby git plugin. But have not heard from him for a couple of weeks. Because of this currently we're just doing very little development on our plugin so that we do not have to do things twice.
from kirby-git-content.
Currently running into a similiar error
Unable to update git: fatal: could not read Username for 'https://github.com': Device not configured
A properly working version of this would be amazing!
from kirby-git-content.
@robinscholz This seems not to be related to this issue. It seems to me that the user running your web server does not have credentials to push to the remote repository.
from kirby-git-content.
Could it be related to this?
Also, I noticed I had to use a URL of the kind [email protected]:user/repo.git. I couldn't get past authentication with https://github.com/user/repo.git.
from kirby-git-content.
@robinscholz This seems not to be related to this issue. It seems to me that the user running your web server does not have credentials to push to the remote repository.
@thathoff This happens locally, while running kirby via valet. Any idea how to solve this?
from kirby-git-content.
Hmm, we do everything with docker here, so I don’t know the details how valet works. Does valet run the code as the local user or as an nginx user? In the latter case you might want to sudo -i -u THE_NGINX_USER
and try to clone the repository as that user.
from kirby-git-content.
Glad I found this. I was also getting the array to string conversion error:
Exception: Exception
Unable to update git: Array to string conversion
Upgrading to PHP 7.3 did the trick. Now on to making this work on the remote server...
from kirby-git-content.
Since PHP versions < 7.3 are EOL i’ll close this issue.
from kirby-git-content.
Related Issues (20)
- Use of functions deprecated in Kirby v4 HOT 4
- Custom Path and some other options not settable HOT 2
- Call to a member function format() on bool HOT 1
- git identity not settable on shared hosting HOT 5
- Add buttons to revert/drop commits HOT 1
- SSH key issues with dokku HOT 3
- Is it normal to end up with all sorts of uncommitted `.lock` file deletes? HOT 3
- Add info about .lock files into README
- plugin possibly causes internal server errors with certain characters HOT 5
- switch to original git PHP lib (kbjr/Git) HOT 2
- Catch Error when working tree is clean HOT 1
- Add a panel button to push to remote HOT 3
- Array to string conversion error with Kirby 3.6 and PHP 8.0 HOT 8
- Return status for KirbyGitHelper::push() and ::pull() HOT 1
- Working fine locally but not committing when on public server HOT 5
- Only add files of changed page
- Working locally but not on server HOT 4
- Problems with Kirby 3.8.0-rc1 when installing without composer HOT 23
- error: unknown option `end-of-options' HOT 9
- 'KirbyGitHelper::$git is deprecated' error on saving HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kirby-git-content.