Coder Social home page Coder Social logo

tabby's Issues

Cannot start session when headers already sent

Hello! This looks like a great tool, unfortunately I'm having some trouble getting it to work. I'm on a shared host (Dreamhost), running PHP 7.4 with MySQL 5.7.29. Tabbly is installed in a subdomain (e.g. tabby.domain.com).

The install seems to go fine. The database has tables, and a single user in users.

When I visit the home page, or try to log in, login doesn't happen (I'm redirected to /people but I just see the home page with login form), and I see the following error in my logs:

mod_fcgid: stderr: PHP Warning:  session_start(): Cannot start session when headers already sent in /home/acodispo/tabby.domain.com/resources/init.php on line 18

I also notice that a cookie is not being saved.

Any ideas? Thanks in advance!

Adding negative debt (credit) through an activity fails

It seems that it is not possible to assign negative debt (credit) to a person through the add activity function. When I submit a negative value (see screenshot), Tabby tells me that it has successfully added the debt (with a green redirect screen), although in the overview nothing (not positive nor negative) is actually added to the person's account.

Screenshot from 2021-08-21 12-26-29

Although I understand that this feature might not be supported, it should in the current state at least return some error as a warning. (My suspicion is that something could be missing near https://github.com/bertvandepoel/tabby/blob/master/index.php#L302 .) Personally, I would prefer it to work, rather than reporting an error, as it would be a useful feature that I could use.

Recurring expenses?

Hello! I'm trying to replace Splitwise for keeping track of expenses between me and my partner, and was curious whether tabby can handle recurring expenses?

In the US, we don’t have IBAN

I posted this on an old issue a couple days ago and was asked to make a new one:

Here in the US we don't have IBAN numbers, we have ABA routing numbers. But no one uses those here in the States for anything outside of old, kermudgeony programs and what not...

Most of us are using apps like Chime, Cash.app, Zelle, and other app-based payment transfer services...

So, having an option that here in the US we could either simply list our payment usernames or if you have the time and what not, to have your service pull in the app's corresponding information for that account. (Like, Cash.app uses a QR code that our friends can scan to send money)

So, with this IBAN requirement, I'm completely unable to even use this service, which i'm really interested in trying out.

Any chance for LDAP auth and SSO?

I have FreeIPA set up to handle accounts for my friends and family on my servers. That ties into Authelia for logins. Makes adding new accounts really easy, and makes using stuff really easy for them. I've been looking for something like this that would leverage the existing accounts. It doesn't look like Tabby integrates with those though. Any chance of that happening in the future?

Debt values >1,000.00 not shown properly in record

Debt records with values above 1,000.00 are not displayed correct.
The total amount of debt per person on the other hand is correct.

Add new debt via activity: 1,234.56
shows up under people overview as -1.23
Database field "amount" [int(11)] shows 123

Add new debt via activity: 1234.56
shows up under people overview as -1.00
Database field "amount" [int(11)] shows 123456

Technical: MariaDB 10, php7.2

Alias support

When you have multiple email addresses, it's quite possible someone registers debt with a different address than the one used for your account. This way, you can't view the debt under "My debt". This could be solved by adding aliases to your account (which would require verification emails).

404 after install

Hi,

I've been having some trouble getting tabby working for a few days now. I have tried both on an arch linux host system as well as in alpine linux based docker files. I am able to get the database set up and configured fine, however, I am unable to log in or navigate to any other pages other than /? and / with a login screen.

I've now tried with both nginx and apache, both in docker and on the host, but I get the same result either way. I am able to fill out the database configuration (I can see the tables have been made and the user exists), and get to the screen where it says I am able to start using it, however the process stalls at logging in ie. /login 404s or isn't found in try_files etc. (this is the same for all the endpoints in index.php, resources/ and templates/. I was wondering if someone might have a working configuration I might be able to look at?

Many thanks

Feature Request Docker container

As a home user it would be great to have this in a docker container for quick deployment, demoing and testing.

Stretch goal to run on raspberry pi as an arm image

Issue: Typo in `check_any_debtors` function causing potential bug

Typo in check_any_debtors function causing potential bug

I noticed a small issue in the check_any_debtors function in people.php which might cause unexpected behavior.

function check_any_debtors($emails) {
    global $db;
    $get = $db->prepare('SELECT count(*) FROM debtors WHERE email=? AND owner=?');
    foreach($emails as $email) {
        $get->execute(array($email, $_SESSION['tabby_loggedin']));
        if($get->fetchColumn() > 0) {
            return FALSE;
        }
    }
    return T;
}

In the last line of the function, it should return TRUE instead of T. The current implementation might lead to a runtime error or unexpected behavior since T is not a defined constant in the code.

Proposed solution:

Replace return T; with return TRUE; to fix the issue:

function check_any_debtors($emails) {
    // ...
    return TRUE;
}

Please let me know if you have any questions or need further clarification.

Unable to delete activity

Hello! I've been using tabby lately and it's pretty great!! However I noticed when I try to delete an activity, whether debit or credit, it simply doesn't do anything. Does anyone have any idea what's going on? Everything else works fine, it's just this one issue.

I would attach error logs, but I'm not even sure where to look for them...

Here's a gif of the behavior, though I will add that the page reloads after clicking the trash icon (very briefly I might add!)

image

Docker installation

Hi, first thanks for the awesome development.

Do you plan to support Docker as an installation method?

It could be much easier for people to try your application.

How to adapt php.ini for non-standard sendmail emailing?

I was trying out tabby today and saw this text on the installation screen

Please refer to the PHP documentation and adapt your php.ini or .user.ini if standard sendmail emailing isn't available.

With a link to php documentation here.

My question is, are there any examples of ways to adapt php.ini for non standard email set ups? I currently don't have a working sendmail on my server, and usually use sendgrid for other applications that have the built in support for it. Is using sendgrid here even possible? Or is sendmail the only way to use this application?

Many thanks in advance.

Change sorting for people with no debt

Sort by date of most recent credit transaction, so most recently changed people appear first instead of those who haven't had any debt or credit added in ages.

Switch from default mail function to PHPMailer

I've been looking into ways of getting emails to work in the docker container. I propose that you switch from using the default mail function in php to using something more robust like PHPMailer. From what I've been able to gather online the default function doesn't allow you to do authentication with an external SMTP server. PHPMailer allows for things like SMTP authentication and I think it would make using the container much easier and attainable for most users.

I also think it'd be a good switch because many ISPs that I know of in the USA block email for most plans so allowing for use of external SMTP servers would be very beneficial in those cases. With this switch I'd be able to have users enter this information as environment variables when starting the container making it easy to configure and change in the future.

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.