Code Monkey home page Code Monkey logo

barcode's Introduction

Barcode GLPI plugin

To use it, go in computer list, check the computers and in massive action, you have 2 possibilities :

  • print a bar code
  • print a QRcode

Translations

If you want Tag to be available in your native language and have a little time , you can help us :

Join us on Transifex

Contributing

  • Open a ticket for each bug/feature so it can be discussed
  • Follow development guidelines
  • Refer to GitFlow process for branching
  • Work on a new branch on your own fork
  • Open a PR that will be reviewed by a developer

barcode's People

Contributors

cedric-anne avatar cosmedd avatar ddurieux avatar dependabot[bot] avatar flegastelois avatar jdudon avatar lukacspeter avatar moyooo avatar orthagh avatar p-bo avatar remicellard avatar remicollet avatar trasher avatar tsmr avatar wawax avatar xacobofg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

barcode's Issues

does not generate file and does not generate identification on the label

Hello
I am using glpi on version 9.4.4 with barcode plugins version 2.4.0 and GenericObject versao 2.7.0

I'm having two problems
the first, when I manage the Asset Qr Code, I can't get the Asset Name or its ID to be printed next to it, or under the Qr Code which makes it difficult to print the Qrcode of multiple assets at once.
Every time I mark the name option or id as yes, this information is incorporated into qrcode which makes the web link function impossible, where the user would be directed to the asset page simply by simply reading qrcode.

Second problem... When I have the QRCode PDF File generated, a file is not downloaded on my machine, only the successfully generated file message appears in the lower right corner of the screen and I am required to click it so that the file is opened in my browser.

Barcode generation not possible - GLPI v9.5.5 / Barcode v2.5.1

Hi,

Barcode generation not possible - GLPI v9.5.5 / Barcode v2.5.1

Check LOG:
/var/www/html/glpi/files/_log/php-errors.log

[2021-06-25 08:56:50] glpiphplog.CRITICAL: *** Uncaught Exception ParseError: syntax error, unexpected 'new' (T_NEW) in /var/www/html/glpi/marketplace/barcode/vendor/pear/image_barcode/Image/Barcode.php at line 80
Backtrace :
vendor/composer/ClassLoader.php:322 Composer\Autoload\includeFile()
: Composer\Autoload\ClassLoader->loadClass()
marketplace/barcode/inc/barcode.class.php:438 spl_autoload_call()
marketplace/barcode/inc/barcode.class.php:294 PluginBarcodeBarcode->create()
marketplace/barcode/inc/barcode.class.php:509 PluginBarcodeBarcode->printPDF()
inc/massiveaction.class.php:1087 PluginBarcodeBarcode::processMassiveActionsForOneItemtype()
inc/massiveaction.class.php:1066 MassiveAction->processForSeveralItemtypes()
front/massiveaction.php:59 MassiveAction->process()

Check FILE at line 80:
/var/www/html/glpi/marketplace/barcode/vendor/pear/image_barcode/Image/Barcode.php

The character "&" is not required. It must be removed for the generator to work.

Laurent

Empty sheet

Barcode is not generated. When generated, it gives an empty sheet

Missing charset definition in header of file cs_CZ.po

In file locales/cs_CZ.po
(origin of file is on Transifex, file downloaded from there have the same deficiency - so it is insufficient to correct it there on Github, where is the same mistake - wrong settings on Transifex probably)

is
"Content-Type: text/plain; charset=CHARSET\n"

which leads to error in conversion to .mo :

msgfmt for_use_glpi_barcode_plugin-09010_cs_CZ.po -o for_use_glpi_barcode_plugin-09010_cs_CZ.mo

for_use_glpi_barcode_plugin-09010_cs_CZ.po: warning: Charset "CHARSET" is not a portable encoding name. Message conversion to user's charset might not work.

record should be:
"Content-Type: text/plain; charset=UTF8\n"

Thanks :)

Equipment identification on the QRcode tag

Hello,
I downloaded the Barcode 2.4.1 version and saw numerous improvements.

However, I need to generate QrCode only with the device URL and the device name below.
The pugin only places the name when below the QrCode the name is included in the QrCode. with that the URL is not automatically directing the user to the page of the equipment in the GLPI

If I don't check the name option the plugin generates the url correctly

however when we generate several tags it is difficult to identify the tag without the name below the QrCode.

compatibility with 9.4.3

Hello. Thank you for this plugin.
I ask you to help me. I've downloaded zip archive with this plugin and placed it to plugins folder: /var/www/html/glpi/plugins/barcode-master, renamed this folder to just "barcode". Using documentation of GLPI I logout and login to GLPI as administrator, but Plugin menu didn't appear. I can't install this plugin, because I do not have plugin menu :( I even set permissions 777 to plugin and barcode folders What can I check?

Incorrect display of Russian characters

When generating the QR-code, if the element name contains Russian characters, when opening the pdf file, question marks are displayed instead of Russian characters. In the QR-code itself, the text is recognized correctly, incorrect only in the QR-code signature.
image

url generated by qrcode is always going to computer with id=1

I am using glpi on version 9.4.5 with barcode plugins version 2.4.1
Everything seems to be working fine except from the url generated.
il always point to computer of id=1.
I am trying to check the file checkItembyInv.php to understand.
it figures out that tsis code is always redirecting to '1' instead of redirectind to computer's Id.

include ('../../../inc/includes.php');
Session::checkRight("config", UPDATE);
// To be available when plugin is not activated
Plugin::load('barcode');
Html::header(__('Barcode', 'barcode'), $_SERVER['PHP_SELF'], "config", "plugins");
$itemtype = $_GET['itemtype'];
$item = new $itemtype();
$itemInventoryNumber[] = $_GET['inventoryNumber'];
foreach ($itemInventoryNumber as $key => $value) {
   $item = $item->getFromDBByCrit(['otherserial' => $value]);
   Html::redirect($itemtype::getFormURLWithID($item));
};
Html::footer();

Installing the plugin on GLPI 9.4.5 blocks the plugin interface

Hi,

I tried installing the barcode plugin on a GLPI 9.4.5 server, but as soon as it is present in the plugins/ directory, the plugins web interface gets buggy and I cannot do anything :

image

And as soon as I remove it, I can access the webpage normally.

I checked on another GLPI server, a newly installed one, and the issue remains.

Could you please take some time to update the plugin ?

Thank you very much :)
Shawn.

What sheet labels is this designed to print on?

I'm using CODE128 barcodes. What labels (sheet) is this designed to print on? It appears to put CODE128 barcodes 4-across on a Letter sheet.

Is there a specific dimension or Avery label number this is designed for?

How to update to new version

Hi,

I try the suggested; to move old from plugin directory and to copy new, to log out and log in and it is not working. I try to copy new over existing but it is not working.

I am running GLPI 9.4-2.4
Barcode 2.4

How to install

hi i dont find the plugin on plugins list, need to run the setup php?

sorry for ask here but dont find in the wiki

GLPI 9.3.2 - incompatiblilité

Bonjour,
Il semble que ce plugin est compatible avec toutes les versions >9.2 et <9.4.
Or, lorsque je copie le dossier dans le dossier plugin, je ne vois plus les plugins installés sous glpi.
Après suppression du dossier barcode, tout rentre dans l'ordre !

Barecode - qrcode cassé / qrcode smash (broken)

-- English version will follow --

Bonjour,

Je viens d'installer le plugin barecode sur mon GLPI.

Lorsque je tente de générer un qrcode (ou même un simple codebare) le pdf se génère mais pas de qrcode dans le fichier :

  • Sur adobe reader le faire d'ouvrir le pdf fais planté le adobe parfois
  • Avec un lecteur basique de pdf, l'image apparaît moitié noire moitié blanche.

Version en place :

  • windows 7 + IIS
  • php 5.6.30 avec php_gd2 actif (visiblement nécessaire a barecode)
  • phpmyadmin : 4.7.0
  • GLPI 9.2.3

Les droits en écriture semble être bon (j'imagine du moins vu que le pdf est créé dans tous les cas).

Test déja effectuer :

  • vider le cache avec barcode
  • réinstallation de barcode
  • générer le qrcode avec plus ou moins d'information

Des idées ? ou un moyen de debug ?

Par avance merci



Hi Everyone,

I installed the barcode plugin on my GLPI server.

When I try to generate a qrcode (or even a bare code), the pdf is creating but at the end no qrcode in my file :

  • On Adobe reader If I try to open the pdf file which have been generate, adobe crash (sometime).
  • With a basic pdf reader images looks middle white mibble black...

Version :

  • windows 7 + IIS
  • php 5.6.30 avec php_gd2 actif (visiblement nécessaire a barecode)
  • phpmyadmin : 4.7.0
  • GLPI 9.2.3

Read-write access looks good. (I mean, the pdf is created in the directory)

Troubleshoot already process :

  • Empty the barcode cache
  • Re-install barcode
  • Generate qrcocde with more or less information

Any idea ? or anything I can do to debug it ?

Thank you

no support in the last stable version

I got the last stable version of glpi (glpi 9.1.6) and when I clone the master branch and try to use the GLPI says:
GLPI version not compatible need 0.85.x or 0.90.x
Is there a branch into git repository with support for this version?

Regards

Add new page size

Hi, is there a possibilities to add a new page size ? I'd need to print QRCode on a special size tag.

Thanks a lot

No Barcode Action

I have installed Barcode version 2.1.0 and GLPI 9.2.2.
I have no Barcode Action in Computer List or elsewhere.
Checked Access Rights for Super-Admin and check Config.

Upgrading to 2.6 error

Hi, I'm tryng to upgrade 2.5.2 to 2.6 by GLPI web interface.
This is error:
"Il formato dell'archivio del plugin non è supportato dal tuo sistema: tbz2."
Translating: tbz2 system error

How can I fix it?

Problem installing - plugin list empty

Hi,
I just tried installing the barcode plugin.

GLPI version: 9.3.2

I tried the following steps:

cd /var/www/html/glpi/plugins
git clone https://github.com/pluginsGLPI/barcode.git
mv barcode-master barcode
chown -R www-data:www-data barcode
chmod -R 755 barcode/

After I sign-out and sign-in again my plugin-list is completely empty.
If I delete the barcode folder all my other plugins show up again

I also tried the dev brach with similar results.

Any ideas how to fix the problem?

I can't change my URL "By ID" to "Series Number"

Hello everyone,

I am sorry to trouble you but everytimes that I try to change my URL it will always comes back to "By ID" even when I save "Series number", if someone know why it does this and could answer me i would be really grateful. I saw that there were an issues that could look similar to mine so I am really sorry if thats the case. I hope that you can help me without making me feel dumb
Anyway thank you to those who will help me :)

Additional string under the QR code.

Hello! I would like to thank you for the plugin. Could you add the ability to add an additional line to the generated QR? For example, I need the PC name to be in both the QR and the signature under the code. And, if it does not make it difficult for you, make it possible to view the generated QR files. Great to you is very grateful.

In GLPI 0.83.2 not work

Hi,

Im in GLPI 0.83.2 . I follow this steps:
Put the download in: /var/www/glpi/plugins
unzip barcode-baster.zip
mv barcode-master barcode

Immediately afterwards it shows me error when I go to: localhost/glpi

What am I doing wrong? I have put chmod -R 775 to 'barcode' folder.

Thanks!

Installation Problems

I've got an inststallation error while there is an wrong require_once on line 53 in setup.php. After remove this line i can install it on GLPI 9.4.3.

Fatal Error on Generating QR Codes

I've got an fatal on creating QR Codes. I use GLPI 9.4.3 and barcode 2.4.

Here ist the Debug Log:

Fatal error: Uncaught Error: Call to undefined method QRcode::png() in /var/www/html/plugins/barcode/inc/qrcode.class.php:159 Stack trace: #0 /var/www/html/plugins/barcode/inc/qrcode.class.php(380): PluginBarcodeQRcode->generateQRcode('Computer', '2', 1483400923, 0, Array) #1 /var/www/html/inc/massiveaction.class.php(991): PluginBarcodeQRcode::processMassiveActionsForOneItemtype(Object(MassiveAction), Object(Computer), Array) #2 /var/www/html/inc/massiveaction.class.php(970): MassiveAction->processForSeveralItemtypes() #3 /var/www/html/front/massiveaction.php(59): MassiveAction->process() #4 {main} thrown in /var/www/html/plugins/barcode/inc/qrcode.class.php on line 159

unable to remove logo

Hi,

i have attached a pic of my company. But finally i want delete it.
How can i do that?

Thank you.

Problem installing (worked around)

After unzipping the plugin I see nothing in the GLPI setup/plugin page.
Renaming the directory from barcode-master to barcode fixes this, ie:

cd /usr/local/www/glpi/plugins
unzip barcode-baster.zip
mv barcode-master barcode

GLPI 9.2.1
FreeBSD 11.1-RELEASE

Plugin can't be install on GLPI 9.4.5

Hello There,

When I try to install the plugin on 9.4.5 version it doesn't show itself on the plugin list.

More then that, after copy barcode folder in to plugins folder it's make all others plugin disappear from plugin list and deactivate them.

When I delete barcode folder all came back to normal and on plugin list there is info that "clean after barcode plugin".

PHP Warning: require_once(/home/hostingname/user/www_name/public_html/glpi/plugins/barcode/vendor/autoload.php): failed to open stream: No such file or directory in /home/hostingname/user/www_name/public_html/glpi/plugins/barcode/setup.php at line 53

Fatal error: require_once(): Failed opening required '/home/hostingname/user/www_name/public_html/glpi/plugins/barcode/vendor/autoload.php' (include_path='.:/usr/local/php/7.3/7.3.12-dh25/lib/php') in /home/hostingname/user/www_name/public_html/glpi/plugins/barcode/setup.php on line 53

update

When there will be an update for GLPI 9.1 ?

Wrong URL ir QR barcodes

I think I found a bug in this plugin.

I´ve a GLPI installation on a test environment running without domain name, using only IP address.

The URL encoded in QR barcodes is wrong. The encoded IP is 1.8.2.23 but it should be 1.8.4.23

Regards.

Non-existent function: plugin_barcode_install plugin_barcode_check_config

Hi,

I tried to install version 2.5.0-rc3 on glpi 9.4.5 and got the following errors on the plugins' page :

Non-existent function: plugin_barcode_install plugin_barcode_check_config
Non-existent function: plugin_barcode_uninstall

I've read on the glpi forum that someone else is having the same issue so it must be affecting everyones...

image

Thanks

Sheet format and others things

Hello, I want to print a format C10 (40mmX2_mm) but when I am using this format I dont have a correct output. The visual is too small compared to the sheet format even with margin equal to 0.

As well I can see the page number displayed, how to remove "1/1" from the visual ?

BR

Undefined array key "eliminate" in C:\xampp\htdocs\glpi\plugins\barcode\inc\barcode.class.php at line 488

PHP Compile Error (64): Declaration of & Image_Barcode_code128::draw($text, $imgtype = 'png') must be compatible with & Image_Barcode::draw($text, $type = 'int25', $imgtype = 'png', $bSendToBrowser = true, $height = 60, $barwidth = 1) in C:\xampp\htdocs\glpi\plugins\barcode\vendor\pear\image_barcode\Image\Barcode\code128.php at line 75

Good day! Tell me what could be the problem?
This error occurred during the formation of the barcode. Everything is fine with the formation of the Q-code.

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.