Jump to content

Several errors "User Notice: escape: unsupported type: UTF-8 - returning unmodified stringin" in debug mode


jvicente1971

Recommended Posts

Hello

I'm trying to install and get to work a new module named SIBS that is a payment module.

In last step I always get error 500 page.

When I activate debug mode I get this errors:

(1/1) ContextErrorException

User Notice: escape: unsupported type: UTF-8 - returning unmodified string

in modifier.escape.php line 257

at smarty_modifier_escape()in smarty.config.inc.php line 80

at smartyEscape()in SmartyLazyRegister.php line 83

at SmartyLazyRegister->__call()in 8aa4ddde0c9b6409ca654c61b6fbd5288840996c_2.file.error.tpl.php line 36

at content_62bace2cd3af27_35736298()in smarty_template_resource_base.php line 123

at Smarty_Template_Resource_Base->getRenderedTemplateCode()in smarty_template_compiled.php line 114

at Smarty_Template_Compiled->render()in smarty_internal_template.php line 216

at Smarty_Internal_Template->render()in smarty_internal_templatebase.php line 232

at Smarty_Internal_TemplateBase->_execute()in smarty_internal_templatebase.php line 116

at Smarty_Internal_TemplateBase->fetch()in SmartyDevTemplate.php line 40

at SmartyDevTemplateCore->fetch()in Module.php line 2449

at ModuleCore->display()in gsnippetsreviews.php line 751

at GSnippetsReviews->displayErrorModule()in gsnippetsreviews.php line 651

at GSnippetsReviews->execHook()in gsnippetsreviews.php line 264

at GSnippetsReviews->hookDisplayHeader()in Hook.php line 1007

at HookCore::coreCallHook()in Hook.php line 431

at HookCore::callHookOn()in Hook.php line 944

at HookCore::exec()in FrontController.php line 598

at FrontControllerCore->initContent()in OrderController.php line 291

at OrderControllerCore->initContent()in Controller.php line 306

at ControllerCore->run()in Dispatcher.php line 518

at DispatcherCore->dispatch()in index.php line 28

 

I Have migrated from PS1.6 to new PS 1.7.8.5

All seems to work more or less fine but this module can't get to final step.

Also I noticed that some payment modules, mess with "order Statused" after instal this SIBS. In other words, In final step of some payment module, it should appear "waiting for payment" and it appears "payment accepted" ...

 

Any ideas?

Thanks

 

Link to comment
Share on other sites

  • 2 weeks later...
  • 8 months later...

Please open file: \vendor\smarty\smarty\libs\plugins\modifier.escape.php

change line 257 from:

trigger_error("escape: unsupported type: $esc_type - returning unmodified string", E_USER_NOTICE);

TO

// trigger_error("escape: unsupported type: $esc_type - returning unmodified string", E_USER_NOTICE);

I think this is an new issue in Prestashop 1.7.8.8

  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...
On 3/17/2023 at 4:50 AM, tdsoft said:

Please open file: \vendor\smarty\smarty\libs\plugins\modifier.escape.php

change line 257 from:

trigger_error("escape: unsupported type: $esc_type - returning unmodified string", E_USER_NOTICE);

TO

// trigger_error("escape: unsupported type: $esc_type - returning unmodified string", E_USER_NOTICE);

I think this is an new issue in Prestashop 1.7.8.8

I am leaving here my error I have got in debug mode on PS 1.7.8.8 after installing Ship by Distance module and going to configure it:

Notice on line 257 in file (my_web_directory)/vendor/smarty/smarty/libs/plugins/modifier.escape.php
[1024] escape: unsupported type: - returning unmodified string

Solution above helped to get rid of the error message.

Can anyone confirm - it is safe to do so?

Link to comment
Share on other sites

  • 2 months later...
  • 4 months later...
On 16/3/2023 at 22:50, tdsoft said:

Abra el archivo: \vendor\smarty\smarty\libs\plugins\modifier.escape.php

cambie la línea 257 de:

trigger_error("escape: tipo no admitido: $esc_type - devuelve una cadena sin modificar", E_USER_NOTICE);

A

// trigger_error("escape: tipo no admitido: $esc_type - devuelve una cadena sin modificar", E_USER_NOTICE);

Creo que este es un problema nuevo en Prestashop 1.7.8.8

Perfecto funcionó!!!!! 

=====================

That's right, it worked!!!!!
Thank you!

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...