• Resolved mojmiratos

    (@mojmiratos)


    I have a clean test site. New WP and new WC, Your and other plugins.
    The first order for an unregistered user is an error. On a clean browser.
    After logging in, it’s OK. After logging out, this is also OK. Only first …
    Deactivate your plugin – OK.
    Even with the first order.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor kluver

    (@kluver)

    Hi @mojmiratos,

    If you go to your WordPress Dashboard > WooCommerce > PDF Invoices > Status you can enable debug output. Could you tell us what specific errors you are getting back? This can help to locate the problem. Please disable the debug output once you are done.

    With kind regards,

    Michael

    Thread Starter mojmiratos

    (@mojmiratos)

    Hi kluver.

    Error is On the page wc checkout
    In Safari browser:
    SyntaxError: JSON Parse error: Unrecognized token ‘<‘

    Thread Starter mojmiratos

    (@mojmiratos)

    here is list plugins – possible conflict ?

    404page – your smart custom 404 error page
    Akismet Anti-Spam
    FooBox Image Lightbox
    FooGallery
    Free & Simple Contact Form Plugin – Pirateforms
    Insert PHP
    Log emailu
    MCE Table Buttons
    Menu Icons
    Orbit Fox Companion
    Product Open Pricing (Name Your Price) for WooCommerce
    User Menus
    WC Disable Zoom / Lightbox features
    WC Fields Factory
    WooCommerce
    WooCommerce Auto Restore Stock
    WooCommerce Filter Orders by Product
    WooCommerce Menu Cart
    WooCommerce PDF Invoices & Packing Slips
    WooCommerce Sequential Order Numbers

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! I don’t see any immediate suspects.
    In safari, could you do the following before finishing the checkout?

    1. Open the developer console by option (alt) + cmd + i
    2. Click on the network tab
    3. Select “XHR” in the top right corner
    4. Now finish the checkout
    5. Hover the item that appeared in the list as a result of this action and click the grey arrow behind it

    This data should contain the error.

    Let me know what you find!
    Ewout

    Thread Starter mojmiratos

    (@mojmiratos)

    I have no Apple. Windows 10.
    I try the procedure for windows.

    in XHR is 3 line.

    line 2 is problem
    ?wc-ajax=checkout and in Content is:

    br />
    <b>Fatal error</b>:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 131072 bytes) in <b>/home/users/mojmirusfunsitec/zerif-lite.funsite.cz/web/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php</b> on line <b>1645</b><br />
    
    line 1 is
    /?wc-ajax=update_order_review Content is: 
    {"result":"success","messages":"","reload":"false","fragments":{".woocommerce-checkout-review-order-table":"<table class=\"shop_table woocommerce-checkout-review-order-table\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th class=\"product-name\">Produkt<\/th>\n\t\t\t<th class=\"product-total\">Cena celkem<\/th>\n\t\t<\/tr>\n\t<\/thead>\n\t<tbody>\n\t\t\t\t\t\t\t<tr class=\"cart_item\">\n\t\t\t\t\t\t<td class=\"product-name\">\n\t\t\t\t\t\t\tTenisov\u00fd t\u00e1bor 9.7. - 13.7.2018&nbsp;\t\t\t\t\t\t\t <strong class=\"product-quantity\">&times; 1<\/strong>\t\t\t\t\t\t\t<dl class=\"variation\">\n\t\t\t<dt class=\"variation-astnktbora\">\u00da\u010dastn\u00edk t\u00e1bora:<\/dt>\n\t\t<dd class=\"variation-astnktbora\"><p>qqq<\/p>\n<\/dd>\n\t\t\t<dt class=\"variation-rovezkuenoststenisem\">\u00darove\u0148 zku\u0161enost\u00ed s tenisem :<\/dt>\n\t\t<dd class=\"variation-rovezkuenoststenisem\"><p>za\u010d\u00e1te\u010dn\u00edk<\/p>\n<\/dd>\n\t\t\t<dt class=\"variation-Vkastnka\">V\u011bk \u00fa\u010dastn\u00edka:<\/dt>\n\t\t<dd class=\"variation-Vkastnka\"><p>8<\/p>\n<\/dd>\n\t\t\t<dt class=\"variation-Zapjenrakety\">Zap\u016fj\u010den\u00ed rakety:<\/dt>\n\t\t<dd class=\"variation-Zapjenrakety\"><p>ne<\/p>\n<\/dd>\n\t<\/dl>\n\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t<td class=\"product-total\">\n\t\t\t\t\t\t\t<span class=\"woocommerce-Price-amount amount\">3 200&nbsp;<span class=\"woocommerce-Price-currencySymbol\">Kč<\/span><\/span>\t\t\t\t\t\t<\/td>\n\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t<\/tbody>\n\t<tfoot>\n\n\t\t<tr class=\"cart-subtotal\">\n\t\t\t<th>Mezisou\u010det<\/th>\n\t\t\t<td><span class=\"woocommerce-Price-amount amount\">3 200&nbsp;<span class=\"woocommerce-Price-currencySymbol\">Kč<\/span><\/span><\/td>\n\t\t<\/tr>\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t<tr class=\"order-total\">\n\t\t\t<th>Cena celkem<\/th>\n\t\t\t<td><strong><span class=\"woocommerce-Price-amount amount\">3 200&nbsp;<span class=\"woocommerce-Price-currencySymbol\">Kč<\/span><\/span><\/strong> <\/td>\n\t\t<\/tr>\n\n\t\t\n\t<\/tfoot>\n<\/table>\n",".woocommerce-checkout-payment":"<div id=\"payment\" class=\"woocommerce-checkout-payment\">\n\t\t\t<ul class=\"wc_payment_methods payment_methods methods\">\n\t\t\t<li class=\"wc_payment_method payment_method_bacs\">\n\t<input id=\"payment_method_bacs\" type=\"radio\" class=\"input-radio\" name=\"payment_method\" value=\"bacs\"  checked='checked' data-order_button_text=\"\" \/>\n\n\t<label for=\"payment_method_bacs\">\n\t\tBankovn\u00edm p\u0159evodem \t<\/label>\n\t\t\t<div class=\"payment_box payment_method_bacs\" >\n\t\t\t<p>Prove\u010fte platbu p\u0159\u00edmo na n\u00e1\u0161 \u00fa\u010det. Pros\u00edm pou\u017eijte \u010d\u00edslo objedn\u00e1vky jako variabiln\u00ed symbol platby. Va\u0161e objedn\u00e1vka bude zpracov\u00e1na a odesl\u00e1na a\u017e pot\u00e9, co bude platba uhrazena na n\u00e1\u0161 \u00fa\u010det.<\/p>\n\t\t<\/div>\n\t<\/li>\n\t\t<\/ul>\n\t\t<div class=\"form-row place-order\">\n\t\t<noscript>\n\t\t\tProto\u017ee V\u00e1\u0161 prohl\u00ed\u017ee\u010d nepodporuje JavaScript, nebo je zak\u00e1zan\u00fd, pros\u00edm, ujist\u011bte se kliknut\u00edm na tla\u010d\u00edtko <em>P\u0159epo\u010d\u00edtat<\/em> p\u0159ed odesl\u00e1n\u00edm objedn\u00e1vky. Pokud tak neu\u010din\u00edte, poplatky se mohou li\u0161it od t\u011bch uveden\u00fdch v\u00fd\u0161e.\t\t\t<br\/><input type=\"submit\" class=\"button alt\" name=\"woocommerce_checkout_update_totals\" value=\"P\u0159epo\u010d\u00edtat\" \/>\n\t\t<\/noscript>\n\n\t\t<div class=\"woocommerce-terms-and-conditions\" style=\"display: none; max-height: 200px; overflow: auto;\"><h2><span style=\"color: #cf1942;\">Obchodn\u00ed podm\u00ednky<\/span><\/h2>\n<p><\/p>\n<h3 style=\"text-align: left; padding-left: 0px;\" ><span style=\"color: #cf1942;\">Obchodn\u00ed podm\u00ednky – P\u0159\u00edm\u011bstsk\u00e9 tenisov\u00e9 t\u00e1bory<\/span><\/h3>\n<p>Platby za tenisov\u00e9 t\u00e1bory organizovan\u00e9 Janem Ors\u00e1gem a Tennisac mus\u00ed b\u00fdt uskute\u010dn\u011bny v\u017edy p\u0159edem na z\u00e1klad\u011b vystaven\u00e9 faktury, kterou klient obdr\u017e\u00ed po sv\u00e9 elektronick\u00e9 objedn\u00e1vce<\/p>\n<p><strong>Storno podm\u00ednky<\/strong><\/p>\n<ul>\n<li>jeden m\u011bs\u00edc p\u0159ed uskute\u010dn\u011bn\u00edm akce 50 % z ceny t\u00e1boru<\/li>\n<li>14 dn\u00ed p\u0159ed uskute\u010dn\u011bn\u00edm akce 80 % z ceny t\u00e1boru<\/li>\n<li>m\u00e9n\u011b jak 14 dn\u00ed 100 % z ceny t\u00e1boru<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3 style=\"text-align: left; padding-left: 0px;\"><span style=\"color: #cf1942;\">Obchodn\u00ed podm\u00ednky – Tenisov\u00e9 a kondi\u010dn\u00ed tr\u00e9ninky<\/span><\/h3>\n<p>Tenisov\u00e9 a kondi\u010dn\u00ed tr\u00e9ninky mus\u00ed b\u00fdt omluveny nejpozd\u011bji 5 hodin p\u0159ed za\u010d\u00e1tkem tr\u00e9ninku, a to prost\u0159ednictv\u00edm telefonu nebo SMS na kontaktn\u00edm telefonn\u00edm \u010d\u00edsle. Pokud neprob\u011bhne zru\u0161en\u00ed rezervace v\u010das, tr\u00e9ninkov\u00e1 hodina se po\u010d\u00edt\u00e1 jako uskute\u010dn\u011bn\u00e1.<\/p>\n<\/div>\t<p class=\"form-row terms wc-terms-and-conditions\">\n\t\t<label class=\"woocommerce-form__label woocommerce-form__label-for-checkbox checkbox\">\n\t\t\t<input type=\"checkbox\" class=\"woocommerce-form__input woocommerce-form__input-checkbox input-checkbox\" name=\"terms\"  id=\"terms\" \/> <span>P\u0159e\u010detl\/a jsem si <a href="http:\/\/zerif-lite.funsite.cz\/obchodni-podminky\/" target="_blank">obchodn\u00ed podm\u00ednky<\/a> a souhlas\u00edm s nimi.<\/span> <span class=\"required\">*<\/span>\n\t\t<\/label>\n\t\t<input type=\"hidden\" name=\"terms-field\" value=\"1\" \/>\n\t<\/p>\n\t\n\t\t\n\t\t<input type=\"submit\" class=\"button alt\" name=\"woocommerce_checkout_place_order\" id=\"place_order\" value=\"Objednat\" data-value=\"Objednat\" \/>\n\t\t\n\t\t<input type=\"hidden\" id=\"_wpnonce\" name=\"_wpnonce\" value=\"1076840856\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/?wc-ajax=update_order_review\" \/>\t<\/div>\n<\/div>\n"}}
    
    line 3 is ?wc-ajax=get_refreshed_fragmentsw
    
    {"fragments":{"div.widget_shopping_cart_content":"<div class=\"widget_shopping_cart_content\">\n\n\t<p class=\"woocommerce-mini-cart__empty-message\">\u017d\u00e1dn\u00e9 produkty v ko\u0161\u00edku.<\/p>\n\n\n<\/div>","a.wpmenucart-contents":"<a href="http:\/\/zerif-lite.funsite.cz\/obchod\/" title="P\u0159ej\u00edt do obchodu"><i class=\"wpmenucart-icon-shopping-cart-0\"><\/i><span class=\"cartcontents\">0 polo\u017eek<\/span><\/a>"},"cart_hash":""}
    {"result":"success","messages":"","reload":"false","fragments":{".woocommerce-checkout-review-order-table":"<table class=\"shop_table woocommerce-checkout-review-order-table\">\n\t<thead>\n\t\t<tr>\n\t\t\t<th class=\"product-name\">Produkt<\/th>\n\t\t\t<th class=\"product-total\">Cena celkem<\/th>\n\t\t<\/tr>\n\t<\/thead>\n\t<tbody>\n\t\t\t\t\t\t\t<tr class=\"cart_item\">\n\t\t\t\t\t\t<td class=\"product-name\">\n\t\t\t\t\t\t\tTenisov\u00fd t\u00e1bor 9.7. - 13.7.2018&nbsp;\t\t\t\t\t\t\t <strong class=\"product-quantity\">&times; 1<\/strong>\t\t\t\t\t\t\t<dl class=\"variation\">\n\t\t\t<dt class=\"variation-astnktbora\">\u00da\u010dastn\u00edk t\u00e1bora:<\/dt>\n\t\t<dd class=\"variation-astnktbora\"><p>qqq<\/p>\n<\/dd>\n\t\t\t<dt class=\"variation-rovezkuenoststenisem\">\u00darove\u0148 zku\u0161enost\u00ed s tenisem :<\/dt>\n\t\t<dd class=\"variation-rovezkuenoststenisem\"><p>za\u010d\u00e1te\u010dn\u00edk<\/p>\n<\/dd>\n\t\t\t<dt class=\"variation-Vkastnka\">V\u011bk \u00fa\u010dastn\u00edka:<\/dt>\n\t\t<dd class=\"variation-Vkastnka\"><p>8<\/p>\n<\/dd>\n\t\t\t<dt class=\"variation-Zapjenrakety\">Zap\u016fj\u010den\u00ed rakety:<\/dt>\n\t\t<dd class=\"variation-Zapjenrakety\"><p>ne<\/p>\n<\/dd>\n\t<\/dl>\n\t\t\t\t\t\t<\/td>\n\t\t\t\t\t\t<td class=\"product-total\">\n\t\t\t\t\t\t\t<span class=\"woocommerce-Price-amount amount\">3 200&nbsp;<span class=\"woocommerce-Price-currencySymbol\">Kč<\/span><\/span>\t\t\t\t\t\t<\/td>\n\t\t\t\t\t<\/tr>\n\t\t\t\t\t\t<\/tbody>\n\t<tfoot>\n\n\t\t<tr class=\"cart-subtotal\">\n\t\t\t<th>Mezisou\u010det<\/th>\n\t\t\t<td><span class=\"woocommerce-Price-amount amount\">3 200&nbsp;<span class=\"woocommerce-Price-currencySymbol\">Kč<\/span><\/span><\/td>\n\t\t<\/tr>\n\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t<tr class=\"order-total\">\n\t\t\t<th>Cena celkem<\/th>\n\t\t\t<td><strong><span class=\"woocommerce-Price-amount amount\">3 200&nbsp;<span class=\"woocommerce-Price-currencySymbol\">Kč<\/span><\/span><\/strong> <\/td>\n\t\t<\/tr>\n\n\t\t\n\t<\/tfoot>\n<\/table>\n",".woocommerce-checkout-payment":"<div id=\"payment\" class=\"woocommerce-checkout-payment\">\n\t\t\t<ul class=\"wc_payment_methods payment_methods methods\">\n\t\t\t<li class=\"wc_payment_method payment_method_bacs\">\n\t<input id=\"payment_method_bacs\" type=\"radio\" class=\"input-radio\" name=\"payment_method\" value=\"bacs\"  checked='checked' data-order_button_text=\"\" \/>\n\n\t<label for=\"payment_method_bacs\">\n\t\tBankovn\u00edm p\u0159evodem \t<\/label>\n\t\t\t<div class=\"payment_box payment_method_bacs\" >\n\t\t\t<p>Prove\u010fte platbu p\u0159\u00edmo na n\u00e1\u0161 \u00fa\u010det. Pros\u00edm pou\u017eijte \u010d\u00edslo objedn\u00e1vky jako variabiln\u00ed symbol platby. Va\u0161e objedn\u00e1vka bude zpracov\u00e1na a odesl\u00e1na a\u017e pot\u00e9, co bude platba uhrazena na n\u00e1\u0161 \u00fa\u010det.<\/p>\n\t\t<\/div>\n\t<\/li>\n\t\t<\/ul>\n\t\t<div class=\"form-row place-order\">\n\t\t<noscript>\n\t\t\tProto\u017ee V\u00e1\u0161 prohl\u00ed\u017ee\u010d nepodporuje JavaScript, nebo je zak\u00e1zan\u00fd, pros\u00edm, ujist\u011bte se kliknut\u00edm na tla\u010d\u00edtko <em>P\u0159epo\u010d\u00edtat<\/em> p\u0159ed odesl\u00e1n\u00edm objedn\u00e1vky. Pokud tak neu\u010din\u00edte, poplatky se mohou li\u0161it od t\u011bch uveden\u00fdch v\u00fd\u0161e.\t\t\t<br\/><input type=\"submit\" class=\"button alt\" name=\"woocommerce_checkout_update_totals\" value=\"P\u0159epo\u010d\u00edtat\" \/>\n\t\t<\/noscript>\n\n\t\t<div class=\"woocommerce-terms-and-conditions\" style=\"display: none; max-height: 200px; overflow: auto;\"><h2><span style=\"color: #cf1942;\">Obchodn\u00ed podm\u00ednky<\/span><\/h2>\n<p><\/p>\n<h3 style=\"text-align: left; padding-left: 0px;\" ><span style=\"color: #cf1942;\">Obchodn\u00ed podm\u00ednky – P\u0159\u00edm\u011bstsk\u00e9 tenisov\u00e9 t\u00e1bory<\/span><\/h3>\n<p>Platby za tenisov\u00e9 t\u00e1bory organizovan\u00e9 Janem Ors\u00e1gem a Tennisac mus\u00ed b\u00fdt uskute\u010dn\u011bny v\u017edy p\u0159edem na z\u00e1klad\u011b vystaven\u00e9 faktury, kterou klient obdr\u017e\u00ed po sv\u00e9 elektronick\u00e9 objedn\u00e1vce<\/p>\n<p><strong>Storno podm\u00ednky<\/strong><\/p>\n<ul>\n<li>jeden m\u011bs\u00edc p\u0159ed uskute\u010dn\u011bn\u00edm akce 50 % z ceny t\u00e1boru<\/li>\n<li>14 dn\u00ed p\u0159ed uskute\u010dn\u011bn\u00edm akce 80 % z ceny t\u00e1boru<\/li>\n<li>m\u00e9n\u011b jak 14 dn\u00ed 100 % z ceny t\u00e1boru<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<h3 style=\"text-align: left; padding-left: 0px;\"><span style=\"color: #cf1942;\">Obchodn\u00ed podm\u00ednky – Tenisov\u00e9 a kondi\u010dn\u00ed tr\u00e9ninky<\/span><\/h3>\n<p>Tenisov\u00e9 a kondi\u010dn\u00ed tr\u00e9ninky mus\u00ed b\u00fdt omluveny nejpozd\u011bji 5 hodin p\u0159ed za\u010d\u00e1tkem tr\u00e9ninku, a to prost\u0159ednictv\u00edm telefonu nebo SMS na kontaktn\u00edm telefonn\u00edm \u010d\u00edsle. Pokud neprob\u011bhne zru\u0161en\u00ed rezervace v\u010das, tr\u00e9ninkov\u00e1 hodina se po\u010d\u00edt\u00e1 jako uskute\u010dn\u011bn\u00e1.<\/p>\n<\/div>\t<p class=\"form-row terms wc-terms-and-conditions\">\n\t\t<label class=\"woocommerce-form__label woocommerce-form__label-for-checkbox checkbox\">\n\t\t\t<input type=\"checkbox\" class=\"woocommerce-form__input woocommerce-form__input-checkbox input-checkbox\" name=\"terms\"  id=\"terms\" \/> <span>P\u0159e\u010detl\/a jsem si <a href="http:\/\/zerif-lite.funsite.cz\/obchodni-podminky\/" target="_blank">obchodn\u00ed podm\u00ednky<\/a> a souhlas\u00edm s nimi.<\/span> <span class=\"required\">*<\/span>\n\t\t<\/label>\n\t\t<input type=\"hidden\" name=\"terms-field\" value=\"1\" \/>\n\t<\/p>\n\t\n\t\t\n\t\t<input type=\"submit\" class=\"button alt\" name=\"woocommerce_checkout_place_order\" id=\"place_order\" value=\"Objednat\" data-value=\"Objednat\" \/>\n\t\t\n\t\t<input type=\"hidden\" id=\"_wpnonce\" name=\"_wpnonce\" value=\"1076840856\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/?wc-ajax=update_order_review\" \/>\t<\/div>\n<\/div>\n"}}
    Thread Starter mojmiratos

    (@mojmiratos)

    And This problem is in Chrome, Firefox ,IE

    Plugin Contributor Ewout

    (@pomegranate)

    Yes, it’s not a browser problem, I was just explaining how to retrieve the error in Safari because you mentioned using that πŸ™‚
    Chrome and Firefox also have developer tools, but they all work differently, so I recommend trying the above instructions first. Let me know what you find!

    Thread Starter mojmiratos

    (@mojmiratos)

    Hi, Ewout.

    After the analysis the problem was found:
    WebProvider has little PHP memory_limit (48-64 MB) and max_execution_time

    After the increase (128 MB), it is OK.

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! Very glad to hear you found the culprit AND solution!
    Let us know if you have any other questions πŸ™‚

    Happy Selling!
    Ewout

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Internal server error for unregistered user by order’ is closed to new replies.