Error 500 when including "values" in public notes

Hi

I have a strange issue, whenever we use a specific word “values” within “Public Notes” we get an error generating the pdf.

2023-05-10 15:43:23] production.ERROR: Array to string conversion {“exception”:"[object] (ErrorException(code: 0): Array to string conversion at /home/sites/16b/5/xxxxxxxx/public_html/billing/app/Services/PdfMaker/Design.php:626)
#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, ‘Array to string…’, ‘/home/sites/16b…’, 626)

If I take the word out, it generates the pdf. This happens with snappdf, phontom and hosted_ninja.
My issue is my they use this word in public notes quite often.

IN Version 5.3.22
Hosted on shared platform

How can I get around this issue?

Thanks in advance.

Hi,

@david any thoughts?

I’ve ended up updating/migrating to the latest version… and no longer have that issue.

Thanks

@MyTechTeam

Just to pad out the answer to this question in case others find this thread.

The way the system works when replacing placeholder variables, values is a protected keyword that we use hence the need to purge any instance of the word values in the public notes.

It is on my list for refactoring at some point to change the protected variable to something less impactful.

Thanks David. Do you have a list of protected keywords please?

@MyTechTeam

It is only the terms “values” and “labels” currently.