• Resolved basicmatrix

    (@basicmatrix)


    I have a site that was printing orders for months and then suddenly stopped. I did not update any plugins or WooCommerce. I have 4 identical copies of this site running at 4 subdomains.

    I believe there is a clue in the Printer Information shown on the “edit printer” page.
    Here is the Printer Information from the non-working site.

    Printer Information
    Name: Mansfield Orders - Rename
    Poll Interval: 6
    Connectivity: Connected
    <strong><ul>ASB Status Code: 29 a 0 0 0 0 0 0 0 0 0 0</ul></strong>
    HTTP Status Code: 200 OK
    Last Communication: Wed 22 Jul 20 - 00:31:34

    The ASB Status Code for that printer is different and all the others that work are the as follows.

    Printer Information
    Name: Bossier City Online Orders - Rename
    Poll Interval: 5
    Connectivity: Connected
    <strong><ul>ASB Status Code: 29 a 2 0 0 0 0 2 0 0 0 0</ul></strong>
    HTTP Status Code: 200 OK
    Last Communication: Wed 22 Jul 20 - 00:31:24

    I don’t see any recent errors in the PHP log, but I do have access to them. The most recent errors are over 20 days ago. See the sample below.

    [31-May-2020 18:36:36 UTC] PHP Parse error:  syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home/shane/public_html/mansfield/wp-content/plugins/star-cloudprnt-for-woocommerce/order-handler.php on line 162
    [31-May-2020 18:36:44 UTC] PHP Parse error:  syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home/shane/public_html/mansfield/wp-content/plugins/star-cloudprnt-for-woocommerce/order-handler.php on line 162
    [31-May-2020 18:36:54 UTC] PHP Parse error:  syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home/shane/public_html/mansfield/wp-content/plugins/star-cloudprnt-for-woocommerce/order-handler.php on line 162
    [31-May-2020 18:36:54 UTC] PHP Parse error:  syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home/shane/public_html/mansfield/wp-content/plugins/star-cloudprnt-for-woocommerce/order-handler.php on line 162
    [31-May-2020 18:36:55 UTC] PHP Parse error:  syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home/shane/public_html/mansfield/wp-content/plugins/star-cloudprnt-for-woocommerce/order-handler.php on line 162
    [31-May-2020 18:38:17 UTC] PHP Warning:  hex2bin(): Input string must be hexadecimal string in /home/shane/public_html/mansfield/wp-content/plugins/star-cloudprnt-for-woocommerce/cloudprnt/printer_star_prnt.inc.php on line 133
    [31-May-2020 18:38:17 UTC] PHP Warning:  hex2bin(): Input string must be hexadecimal string in /home/shane/public_html/mansfield/wp-content/plugins/star-cloudprnt-for-woocommerce/cloudprnt/printer_star_prnt.inc.php on line 133
    [29-Jun-2020 11:05:36 UTC] PHP Warning:  Invalid argument supplied for foreach() in /home/shane/public_html/mansfield/wp-content/plugins/star-cloudprnt-for-woocommerce/cloudprnt/cloudprnt.php on line 74

    Please help as no online orders are printing tickets!!! Thank you in advance for your help.

    • This topic was modified 3 years, 9 months ago by basicmatrix. Reason: Added emphasis on difference in printer info in the queue
    • This topic was modified 3 years, 9 months ago by Jan Dembowski. Reason: Formatting
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter basicmatrix

    (@basicmatrix)

    I’ve also checked and the printer identification shown in the WP admin is correct. I’m using firmware v3.0.

    Printer Identification
    MAC Address: 00:11:62:1D:FC:AF
    IP Address: 73.177.69.103
    Interface
    Client Type: Star mC-Print3
    Client Version: 3.0

    IMPORTANT CLUE: When the printer stopped working, the wp-admin/options-general.php?page=star-cloudprnt-settings-admin page had a blank name in the Selected Printer drop-down selector. When I clicked edit, the entire queue history was still there and I was able to edit it to give it a name again.

    Plugin Contributor lawrenceowen

    (@lawrenceowen)

    Hi, thanks for providing such detailed information.

    Apologies, I mis-calculated the status information initially, and so have edited my reply accordingly!

    The ASB status difference is not a problem, that is just an internal status counter used to verify that print jobs have completed.

    I will check the lines that are referred to in your error log first and respond again soon.

    • This reply was modified 3 years, 9 months ago by lawrenceowen.
    • This reply was modified 3 years, 9 months ago by lawrenceowen.
    Plugin Contributor lawrenceowen

    (@lawrenceowen)

    I have checked the lines of code reported in your error log, at first glance these seem to be unrelated to your issue.

    Despite the printer name missing (which is definitely a concern), it looks like your printer is connecting to your server ok, since looking that the printer information, it is reported as connected etc.

    Could you first please check that communication really is ok? While you have the Printer Information section visible, please try changing the status of the printer (i.e. open the paper cover) and then refresh the page to see if the status changes are correctly sent to your server. For example if you open the cover, you will see the ASB status change, but also “Http Status Code” should change to “420 Cover Open”.

    This will help rule out a problem with the printer itself and it’s connection to your server. Assuming that is all ok, I will add some extended logging to the plugin to try to track down the cause.

    Thread Starter basicmatrix

    (@basicmatrix)

    Lawrence,

    I was able to verify the printer was connected by changing the polling interval and seeing it update in the details. It is defenitely connecting to the site. You can notice in the output above that I changed it from 5 to 6 and watched it change in the details. I can change it to 7, etc and it will update on the site.

    Plugin Contributor Guillermo Cubero

    (@gcubero)

    Hi, my name is Guillermo and I’m with the integration team at Star Micronics America. Could you please submit a ticket on our website so we can talk directly?
    https://www.starmicronics.com/pages/contact-product-integration

    Thread Starter basicmatrix

    (@basicmatrix)

    @gcubero, I filled out the form at the link you sent. Please get back with me as soon as possible as my client is missing orders from their online website.

    • This reply was modified 3 years, 9 months ago by basicmatrix.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Connected Printer Fails to Queue Print’ is closed to new replies.