This topic is locked
[SOLVED]

barcode pugin not view

9/6/2024 3:14:48 AM
PHPRunner General questions
ffrinai author

Hi,
I have a project running in phprunner 10.91 exterprise build 41974 x64 under
xampp-windows-x64-7.3.5-0-VC15 (php7)
with this setting
$this->settings["encode"] = "CODE128";
// barcode height in pixels
$this->settings["height"] = 40;
// scale. 2 is default, 1 - smaller image, 3 - large image
$this->settings["scale"] = 1;
// background color
$this->settings["bgcolor"] = "#FFFFEC";
// barcode color
$this->settings["color"] = "#333366";
which uses the barcode plugin, ant it works fine

img alt

now i must shift to (php 8)
xampp-windows-x64-8.1.12-0-VS16
i download the last barcode plugin (ViewBarcode.php date is 15/12/2023)
with the same setting plus
//show barcode number. true or false
$this->settings["barcode_number"] = true;

but the barcode is not displayed

img alt

what could be the problem?
thanks
Fabio

C
cristi 9/6/2024

From what I see this is an paid plugin from marketplace.
How do you expect to get help on a free forum section?
Contact de plugin author directly.

fhumanes 9/8/2024

Hi @ffrinai,

As @cristi indicates, it is very difficult for us to help you because we do not have the plugin that gives you the problem.

I have a solution (the plugin may use the same library to generate bar codes), which is in: https://fhumanes.com/blog/guias-desarrollo/guia-4-phprunner-crear-codigo-de-barras/

And to work in PHP 8, I had to update the library version. Surely something like that is happening to you.

Greetings,
fernando

ffrinai author 9/10/2024

Hi,
after several attempts I discovered that the problem should be in the apache configuration because if in the local preview of phprunner I use "Build-in web server", the barcode image is displayed, whereas if I use "I have my own web server" The barcode image is not displayed.
If I publish the application on the production server which is configured as the development server, the barcode image is not displayed.
So the problem is not the plugin !
Fabio

ffrinai author 9/10/2024

Found !!! the problem was in php.ini, extension=gd must be enabled.
I hope it can be useful to someone else too.
Fabio