Giter VIP home page Giter VIP logo

inventaire's People

Contributors

yekcim avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

inventaire's Issues

Missing licence file

Hello,

I find your software very interesting, thank you for your work. Could you confirm that the software is under a Free license ? To do this, simply add a file to the root containing the license of your choice.

For the choice of license I recommend the AGPL, which seems the most suitable for your type of software.
https://en.wikipedia.org/wiki/GNU_Affero_General_Public_License
https://www.gnu.org/licenses/agpl-3.0.html

If you confirm that this software is Free, I will install it on my server and I intend to contribute to your project soon.

Good luck for the future,

Valentin
POHU

"déjà dans la base" un peu trop violent

Une fois qu’un input a refusé une entrée (via pattern/setCustomValidity), déjà dans la base par exemple, alors plus aucune proposition n’est acceptée. Il faudra forcément fermer la box ou recharger la page pour pouvoir saisir à nouveau.

Impossible d'ajouter une entrée

Bonjour,
j'essaie d'installer votre inventaire pour lister des composants éléctroniques.
J'ai suivi les instructions du README, créé une base "inventaire" avec le bouton + mais lorsque je clique sur le bouton bleu "Ajouter une nouvelle entrée" et quoi que je renseigne, j'obtiens un cadre blanc et ces messages dans le journal d'erreur :

[Wed Jan 19 11:23:17.482937 2022] [php:warn] [pid 685877] [client 127.0.0.1:36650] PHP Warning:  Undefined variable $i in /var/www/inventaire/add.php on line 222, referer: http://127.0.0.2/
[Wed Jan 19 11:23:17.484343 2022] [php:warn] [pid 685877] [client 127.0.0.1:36650] PHP Warning:  Undefined array key 0 in /var/www/inventaire/blocs/administratif.php on line 146, referer: http://127.0.0.2/
[Wed Jan 19 11:23:17.484365 2022] [php:warn] [pid 685877] [client 127.0.0.1:36650] PHP Warning:  Trying to access array offset on value of type null in /var/www/inventaire/blocs/administratif.php on line 146, referer: http://127.0.0.2/
>>>> Messages identiques pour les lignes 150, 157, 158, 159, 176, 188, 189, 190, 224, 225, 226, 241, 246, 252, 254, 261, 262, 263, 285, 289

[Wed Jan 19 11:23:17.485775 2022] [php:warn] [pid 685877] [client 127.0.0.1:36650] PHP Warning:  Undefined array key 0 in /var/www/inventaire/blocs/technique.php on line 216, referer: http://127.0.0.2/
[Wed Jan 19 11:23:17.485784 2022] [php:warn] [pid 685877] [client 127.0.0.1:36650] PHP Warning:  Trying to access array offset on value of type null in /var/www/inventaire/blocs/technique.php on line 216, referer: http://127.0.0.2/
>>>> Messages identiques pour les lignes 217, 218, 230, 241, 246, 281, 283, 297, 301

[Wed Jan 19 11:23:19.328084 2022] [php:error] [pid 685877] [client 127.0.0.1:36650] PHP Fatal error:  Uncaught ValueError: max(): Argument #1 ($value) must contain at least one element in /var/www/inventaire/0_fonctions.php:289\nStack trace:\n#0 /var/www/inventaire/0_fonctions.php(289): max()\n#1 /var/www/inventaire/add.php(176): new_lab_id()\n#2 {main}\n  thrown in /var/www/inventaire/0_fonctions.php on line 289, referer: http://127.0.0.2/add.php?BASE=inventaire
[Wed Jan 19 11:23:20.662528 2022] [php:error] [pid 685877] [client 127.0.0.1:36650] PHP Fatal error:  Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') GROUP BY historique_id ORDER BY historique_id ASC' at line 1 in /var/www/inventaire/0_listing.php:44\nStack trace:\n#0 /var/www/inventaire/0_listing.php(44): PDO->query()\n#1 /var/www/inventaire/index.php(42): require_once('...')\n#2 {main}\n  thrown in /var/www/inventaire/0_listing.php on line 44
[Wed Jan 19 11:23:21.792254 2022] [php:warn] [pid 685877] [client 127.0.0.1:36650] PHP Warning:  Undefined variable $i in /var/www/inventaire/add.php on line 222, referer: http://127.0.0.2/

[Wed Jan 19 11:23:37.958901 2022] [php:warn] [pid 683541] [client 127.0.0.1:36658] PHP Warning:  Undefined array key 0 in /var/www/inventaire/0_fonctions.php on line 300, referer: http://127.0.0.2/add.php?BASE=inventaire
[Wed Jan 19 11:23:37.958922 2022] [php:warn] [pid 683541] [client 127.0.0.1:36658] PHP Warning:  Trying to access array offset on value of type null in /var/www/inventaire/0_fonctions.php on line 300, referer: http://127.0.0.2/add.php?BASE=inventaire
[Wed Jan 19 11:23:37.959074 2022] [php:error] [pid 683541] [client 127.0.0.1:36658] PHP Fatal error:  Uncaught PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'serial_number' cannot be null in /var/www/inventaire/add.php:190\nStack trace:\n#0 /var/www/inventaire/add.php(190): PDO->query()\n#1 {main}\n  thrown in /var/www/inventaire/add.php on line 190, referer: http://127.0.0.2/add.php?BASE=inventaire
[Wed Jan 19 11:23:40.366996 2022] [php:error] [pid 683541] [client 127.0.0.1:36658] PHP Fatal error:  Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') GROUP BY historique_id ORDER BY historique_id ASC' at line 1 in /var/www/inventaire/0_listing.php:44\nStack trace:\n#0 /var/www/inventaire/0_listing.php(44): PDO->query()\n#1 /var/www/inventaire/index.php(42): require_once('...')\n#2 {main}\n  thrown in /var/www/inventaire/0_listing.php on line 44

N'y aurait-il pas des valeurs à rentrer dans la base pour l'initialiser ? Ou des tests manquant dans le code pour le cas d'une base vide ?

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.