• Resolved cdaluk

    (@cdaluk)


    Hi,

    I’m running into this issue on my apache / wordpress install and wondered if anyone else was experiencing the same?

    When attempting to email a sale / view a sale email either under sales or tools, I get the following errors:

    [Fri Apr 28 23:15:54.807076 2017] [:error] [pid 13675] [client 81.100.24.240:60468] PHP Fatal error: Uncaught Error: Call to undefined function ImageCreate() in /path/to/www/public_html/wp-content/plugins/stageshowgold/lib/phpqrcode/qrimage.php:74\nStack trace:\n#0 /path/to/www/public_html/wp-content/plugins/stageshowgold/include/stageshowgold_qrbarcode.php(117): QRimage::image(Array, 3, 4)\n#1 /path/to/www/public_html/wp-content/plugins/stageshowgold/include/stageshowgold_qrbarcode.php(123): StageShowLibQRimageClass::img(Array, false, 3, 4, false)\n#2 /path/to/www/public_html/wp-content/plugins/stageshowgold/include/stageshowgold_qrbarcode.php(74): StageShowLibQRimageClass::png(Array, false, 3, 4, false)\n#3 /path/to/www/public_html/wp-content/plugins/stageshowgold/include/stageshowgold_qrbarcode.php(29): StageShowLibQRencodeClass->encodePNG(‘MAN-1493410611 ‘)\n#4 /path/to/www/public_html/wp-content/plugins/stageshowgold/include/stageshowgold_barcode.php(29): StageShowLibQRCodeClass->CreateBarcodeImage(‘MAN-1493410611 ‘)\n#5 /sites in /path/to/www/public_html/wp-content/plugins/stageshowgold/lib/phpqrcode/qrimage.php on line 74, referer: https://barnstormers.org.uk/wp-admin/admin.php?page=stageshowgold_tools

    This seems to happen regardless of which barcode type is selected.

    I’m just going through the process of disabling all the other plugins on the site to see if it’s an interference issue. Obviously, this means tickets aren’t being emailed out at present either.

    Thanks,

    NS

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter cdaluk

    (@cdaluk)

    So after a bit of digging, looks like this is an incompatibility between the barcode generation code and php 7.

    Currently I’ve set the ‘createImage’ method to return null, so at least tickets can be purchased. Without this, clicking ‘View Email’ returns a server 500 error and no emails get sent when tickets attempt to get bought.

    I’ll see if I can knock together some replacement code until an official fix is out.

    Thanks,

    Seb

    Plugin Author Malcolm

    (@malcolm-oph)

    Hi Seb

    Sorry for the delay getting back to you (been away!).

    I retested StageShowGold on PHP 7.1.4 and the barcode generation worked OK, so this does not appear to be a general problem with PHP 7. It may be something specific to your server. Is the gd2 library installed?

    Looking at your site, it appears that you are running PHP 5.6.30. Have you reverted to the earlier version since your last post?

    Malcolm

    Thread Starter cdaluk

    (@cdaluk)

    Hi Malcolm,

    Thanks for getting back to me and I hope you had a good break!

    Yes I’ve since reverted back to 5.6, I had some trouble with the stripe integration also under 7.0 however that may have been due to a missing library, after this show run is complete I’ll have a play with php 7.1 and see what happens. Happy for you to mark this as resolved in the mean time though!

    Thanks once again,

    Seb

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error creating barcodes’ is closed to new replies.