View previous topic :: View next topic |
Author |
Message |
Mr. Twinkle Smarty n00b
Joined: 08 Mar 2022 Posts: 4
|
Posted: Tue Mar 08, 2022 7:23 pm Post subject: A lot of PHP errors after patching to Prestashop 1.7.8.4 |
|
|
Dear all,
First of all Im new to this hence please do have some patience and understanding.
I recently patched my Prestashop to version 1.7.8.4 and after this I'm getting a lot of the below errors:
[Tue Mar 08 17:12:23.014736 2022] [proxy_fcgi:error] [pid 2806:tid 140655883745024] [client 212.237.135.238:18802] AH01071: Got error 'PHP message: PHP Notice: escape: unsupported type: htmall - returning unmodified string in .............. type: htmall - returning unmodified string in public_html/vendor/smarty/smarty/libs/plugins/modifier.escape.php on line 257', referer: https://den-engelske-gartner-shop.dk/opbinding/2041-paper-pot-maker.html
Im using encoding UTF8 - but I do not know how to fix this ? Using Smarty 3.1
Thanks in advance |
|
Back to top |
|
bsmither Smarty Elite
Joined: 20 Dec 2011 Posts: 322 Location: West Coast
|
Posted: Wed Mar 09, 2022 5:39 am Post subject: |
|
|
The 'escape' modifier:
https://www.smarty.net/docs/en/language.modifier.escape.tpl
has these "formats":
Quote: | html, htmlall, url, urlpathinfo, quotes, hex, hexentity, javascript, mail |
Your error message says the type requested is "htmall" which is a misspelling.
You will need to inform the Prestashop programmers to make the fix.
The part of the error message that says:
returning unmodified string in ..............
If the dots represent the name of the template file, you may be able to fix it yourself. |
|
Back to top |
|
Mr. Twinkle Smarty n00b
Joined: 08 Mar 2022 Posts: 4
|
Posted: Wed Mar 09, 2022 4:52 pm Post subject: |
|
|
Thank you for the reply
I will try to get a hold of presta..... although is there a way to search for this mispelling maybe in the database to get a hint of where it is to be corrected?
best
Lasse |
|
Back to top |
|
bsmither Smarty Elite
Joined: 20 Dec 2011 Posts: 322 Location: West Coast
|
Posted: Wed Mar 09, 2022 8:39 pm Post subject: |
|
|
Again:
The part of the error message that says:
returning unmodified string in ..............
If the dots represent the name of the template file, you may be able to fix it yourself. |
|
Back to top |
|
Mr. Twinkle Smarty n00b
Joined: 08 Mar 2022 Posts: 4
|
Posted: Thu Mar 10, 2022 5:25 pm Post subject: |
|
|
Hi again,
the dots just indicates my hosting path - hence I just deleted that and put in dots - hence this is not the template.
I also tried to search the db for htmall with no result.
Strange if Im the only one having the issue, as Im using standard modules and no "home" code
Thank you |
|
Back to top |
|
bsmither Smarty Elite
Joined: 20 Dec 2011 Posts: 322 Location: West Coast
|
Posted: Thu Mar 10, 2022 6:08 pm Post subject: |
|
|
I downloaded Prestashop 1.7.8.4 and had the computer scan the files for:
htmall
None were found.
Also scanned for was:
|escape:
and there are plenty of instances of this in the code, but none had the 'type' misspelled.
Nothing found in the Prestashop GitHub repository, either.
So, that could mean the fault is in a user-supplied item of data. And if you are getting "a lot" of these errors, then maybe a common data item - one that appears on all pages. |
|
Back to top |
|
Mr. Twinkle Smarty n00b
Joined: 08 Mar 2022 Posts: 4
|
Posted: Mon Mar 14, 2022 11:38 am Post subject: |
|
|
Hi,
I went into check the
vendor/smarty/smarty/libs/plugins/modifier.escape.php
which has changed in the PS 1.7.8.4 and in the last part of the file I can see that a new line is included - Which is a trigger, that will show the error - Hence I assume I have had this issue for a number of onth - It has just firstly been revealed as part of the new line ingested in above file.
Thanks for the effort. |
|
Back to top |
|
|