Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

A lot of PHP errors after patching to Prestashop 1.7.8.4

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
Mr. Twinkle
Smarty n00b


Joined: 08 Mar 2022
Posts: 4

PostPosted: Tue Mar 08, 2022 7:23 pm    Post subject: A lot of PHP errors after patching to Prestashop 1.7.8.4 Reply with quote

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
View user's profile Send private message
bsmither
Smarty Elite


Joined: 20 Dec 2011
Posts: 322
Location: West Coast

PostPosted: Wed Mar 09, 2022 5:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Mr. Twinkle
Smarty n00b


Joined: 08 Mar 2022
Posts: 4

PostPosted: Wed Mar 09, 2022 4:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
bsmither
Smarty Elite


Joined: 20 Dec 2011
Posts: 322
Location: West Coast

PostPosted: Wed Mar 09, 2022 8:39 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mr. Twinkle
Smarty n00b


Joined: 08 Mar 2022
Posts: 4

PostPosted: Thu Mar 10, 2022 5:25 pm    Post subject: Reply with quote

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 Smile

Thank you
Back to top
View user's profile Send private message
bsmither
Smarty Elite


Joined: 20 Dec 2011
Posts: 322
Location: West Coast

PostPosted: Thu Mar 10, 2022 6:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mr. Twinkle
Smarty n00b


Joined: 08 Mar 2022
Posts: 4

PostPosted: Mon Mar 14, 2022 11:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP