• Resolved Eugenijus

    (@ugenijus)


    Hello,

    This code worked for a long time, but now stops, because of item_thumbnail. If i remove this from code, everything is ok.

    [wcj_order_items_table table_class=”pdf_invoice_items_table”
    columns=”item_sku|item_name|item_thumbnail|item_quantity|line_total_tax_incl”
    columns_titles=”SKU|Product|Image|Qty|Suma”
    columns_styles=”width:10%;|width:40%;|width:30%;|width:10%;|width:10%;text-align:left;”
    item_image_width=”120px”
    item_image_height=”120px”]

    Whats wrong, please?

    I use Booster Plus.

    Thank You

    • This topic was modified 7 years, 9 months ago by Eugenijus.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    Can you tell us more details, please?
    – What do you mean by the code stops?
    – What other plugins and booster modules are enabled?

    Thanks

    Thread Starter Eugenijus

    (@ugenijus)

    WordPress 4.7.2.
    Woocommerce 2.6.14
    Booster for WooCommerce 2.5.9
    Booster Plus for WooCommerce 1.1.0

    When I use this code on PACKING SLIPS HTML Template, PDF file can’t be downloaded or previewed.
    [wcj_order_items_table table_class=”pdf_invoice_items_table”
    columns=”item_sku|item_name|item_thumbnail|item_quantity|line_total_tax_incl”
    columns_titles=”SKU|Prek?|Foto|Kiekis|Suma”
    columns_styles=”width:10%;|width:40%;|width:30%;|width:10%;|width:10%;text-align:left;”
    item_image_width=”120px;”
    item_image_height=”120px;”]

    If I remove – item_thumbnail – everything works ok, PDF file is downloadable. This code works ok:
    [wcj_order_items_table table_class=”pdf_invoice_items_table”
    columns=”item_sku|item_name|item_quantity|line_total_tax_incl”
    columns_titles=”SKU|Prek?|Kiekis|Suma”
    columns_styles=”width:10%;|width:70%;|width:10%;|width:10%;text-align:left;”]

    I need to get item_thumbnail on Packing Slip

    • This reply was modified 7 years, 9 months ago by Eugenijus.

    Do you know how to enable the log file?
    You just have to follow these steps.

    After that, can you put here the content of your debug.log so we can try to understand better what’s happening?

    Thread Starter Eugenijus

    (@ugenijus)

    [21-Feb-2017 14:18:28 UTC] PHP Warning: getimagesize(https://www.xxxxxxxx.xx/wp-content/uploads/2016/01/1000-3-340×340.jpg): failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized
    in /home/xxxxxxxxx/domains/xxxxxxxxx.xx/public_html/wp-content/plugins/woocommerce-jetpack/includes/lib/tcpdf_min/include/tcpdf_images.php on line 163
    [21-Feb-2017 14:18:28 UTC] PHP Warning: imagecreatefromjpeg(https://www.xxxxxxxxxx.xx/wp-content/uploads/2016/01/1000-3-340×340.jpg): failed to open stream: HTTP request failed! HTTP/1.1 401 Unauthorized
    in /home/xxxxxxxx/domains/xxxxxxxx.xx/public_html/wp-content/plugins/woocommerce-jetpack/includes/lib/tcpdf_min/tcpdf.php on line 7036

    It looks like your server can be blocking some php functions reagarding image creation like the GD library.

    It’s not an uncommon problem if you are using a shared hosting service for example.

    Can you talk to your site administrator about this?

    Thread Starter Eugenijus

    (@ugenijus)

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘item_thumbnail’ is closed to new replies.