Order Printer new Liquid error

JohnC
Shopify Partner
55 0 99
I am getting an error with the following lines of liquid code in order printer - which has worked for several years. The relevant lines are below:
 
 {% for line_item in line_items %}
        {% if line_item.fulfillment %} - this line reports: Liquid error: internal - and the if test fails if the item has been fulfilled
 
         {% endif %}
{% endfor %}  
 
As far as I can see from the liquid documentation this is still valid code. Please can some advise?
 
Thanks
John

 

0 Likes
Ash
Shopify Staff
Shopify Staff
698 69 91

Hey, @JohnC!

 

Ash here from the Shopify team.

 

I'm happy to help out with this situation. This is an error that we've seen come up before, and our developers have confirmed that this issue relates to the account permissions of the user attempting to print content using the Order Printer app. Moving forward, here are a few workarounds for you to consider: 

 

  • Remove the erring fields from your templates, or use the default template
  • Give the 'Product' permission to the staff members who will be printing content
  • Print content from a staff account that has full permissions
  • Use a third-party application such as Sufio for invoice printing

The reason we're not able to remove this error from our end, is that it is a cosmetic error linked to staff permission, which could jeopardize the integrity of our platform if removed. We prioritize safeguarding our merchants information, and so using one or more of the above workarounds is the best option at this time. I hope this information helps moving forward, and feel free to reach out any time if you have further questions or concerns.

Ash | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

0 Likes
JohnC
Shopify Partner
55 0 99

Thanks @Ash for your reply. I am getting this error as the store owner when I have full permissions. I also checked the permissions on the app and it has:

 

This app has access to the following personal information:

  • Customer names, e-mail addresses, phone numbers, physical addresses, geolocations, IP addresses, and browser user agents

This app can access and modify your store‘s data:

  • Read all orders
  • Read orders, transactions, and fulfillments
  • Read products, variants, and collections

It has been installed for 2-3 years at least. Does it need to be reninstalled?

 

Note it has been working perfectly until very recently.

 

John

0 Likes
Ash
Shopify Staff
Shopify Staff
698 69 91

Thank you for the additional information, @JohnC. Let's try a few troubleshooting steps. Could you please try the following and then get back to me with your results? 

 

  • Ensure your internet browser is up to date
  • Clear your cache and cookies
  • Try in an incognito/ private browser session
  • Try another internet browser, and complete the above 3 steps again
  • Finally, try uninstalling, and reinstalling the app (if you take this step, you can copy the code from your custom templates before hand, and paste them into a document externally from Shopify to save them) 

If the issue continues after trying the above steps, please respond to this post and let me know so we can continue troubleshooting. 

Ash | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

0 Likes
JohnC
Shopify Partner
55 0 99

Hi @Ash 

Ok I've tried clearing the cache and running it on both latest Chrome and Safari and still the error occurs.

I then deleted and reinstalled Order Printer and the templates and still the error occurs

I then tried it on a test site and the error also occurs. 

Quite simply I think it is a bug - any access to line_item.fulfillment generates an error - as in the code here:

 

    {% for line_item in line_items %}
          {% assign xxx = line_item.fulfillment %}   - this generates Liquid error: internal
   {% endfor %}

 

Regards

John

0 Likes
Ash
Shopify Staff
Shopify Staff
698 69 91

Thank you for the reply and the additional information, @JohnC

 

I've just sent an email to the email address associated with your Shopify Community account. Could you please reply to that email with your .myshopify.com URL, as well as a screenshot of the error you're getting? This will authenticate you, and once complete, I'll get our technicians to take a closer look into this issue with us. 

Looking forward to hearing back via email.

Ash | Social Care @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

0 Likes