Giter Club home page Giter Club logo

Comments (19)

robinscholz avatar robinscholz commented on May 29, 2024 2

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.

robinscholz avatar robinscholz commented on May 29, 2024 1

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.

thathoff avatar thathoff commented on May 29, 2024

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.

malvese avatar malvese commented on May 29, 2024

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.

thathoff avatar thathoff commented on May 29, 2024

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.

malvese avatar malvese commented on May 29, 2024

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.

thathoff avatar thathoff commented on May 29, 2024

I’ll try to test your starterkit setup tonight, maybe i’ll bee able to reproduce your error!

from kirby-git-content.

malvese avatar malvese commented on May 29, 2024

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.

malvese avatar malvese commented on May 29, 2024

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.

thathoff avatar thathoff commented on May 29, 2024

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.

malvese avatar malvese commented on May 29, 2024

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.

thathoff avatar thathoff commented on May 29, 2024

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.

robinscholz avatar robinscholz commented on May 29, 2024

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.

thathoff avatar thathoff commented on May 29, 2024

@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.

malvese avatar malvese commented on May 29, 2024

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 avatar robinscholz commented on May 29, 2024

@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.

thathoff avatar thathoff commented on May 29, 2024

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.

foxacid avatar foxacid commented on May 29, 2024

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.

thathoff avatar thathoff commented on May 29, 2024

Since PHP versions < 7.3 are EOL i’ll close this issue.

from kirby-git-content.

Related Issues (20)

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.