Warning: htmlentities() charset `UTF-8;' not supported, assuming utf-8
what I find is odd is the semi-colon after UTF-8 and the ` (tick on the tilde key) before - thinking there is a typo somewhere, just don't know where. Any ideas? I did see in my .htaccess that I had php_value default_charset "UTF-8;" but removed the semi-colon and no difference. V3.0.2.0
Thanks
Also ensure your database uses the collation of utf8_general_ci .
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Server: Localhost via UNIX socket
• Server type: MySQL
• Server version: 5.6.38 - MySQL Community Server (GPL)
• Protocol version: 10
• User: blah@localhost
• Server charset: UTF-8 Unicode (utf8)
cpsrvd 11.68.0.28
• Database client version: libmysql - 5.1.73
• PHP extension: mysqliDocumentation curlDocumentation mbstringDocumentation
• PHP version: 5.6.30
2018-02-02 13:54:09 - PHP Warning: htmlspecialchars(): charset `UTF-8;' not supported, assuming utf-8 in /home/jwagnergd/public_html/catalog/controller/extension/payment/pp_standard.php on line 50
2018-02-02 13:54:09 - PHP Warning: htmlspecialchars(): charset `UTF-8;' not supported, assuming utf-8 in /home/jwagnergd/public_html/catalog/controller/extension/payment/pp_standard.php on line 51
2018-02-02 14:02:16 - PHP Warning: htmlentities(): charset `UTF-8;' not supported, assuming utf-8 in /home/jwagnergd/public_html/admin/view/template/extension/payment/offline_cc.tpl on line 48
2018-02-02 14:02:16 - PHP Warning: htmlentities(): charset `UTF-8;' not supported, assuming utf-8 in /home/jwagnergd/public_html/admin/view/template/extension/payment/offline_cc.tpl on line 55
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Your screenshot mentions: .tpl file. You are NOT using v3.0.2.0 and / or you are using an incompatible extension with v3.0.2.0. offline_cc does not exist in the OC core. Contact the extension developer to resolve this issue."UTF-8;" but removed the semi-colon and no difference. V3.0.2.0
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
In catalog/controller/extension/payment/pp_standard.php file,
find:
Code: Select all
'name' => htmlspecialchars($product['name']),
'model' => htmlspecialchars($product['model']),
Code: Select all
'name' => html_entity_decode($product['name'], ENT_QUOTES, 'UTF-8'),
'model' => html_entity_decode($product['model'], ENT_QUOTES, 'UTF-8'),
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Code: Select all
$this->config->set('template_engine', 'template');
$this->response->setOutput($this->load->view('extension/payment/offline_cc', $data));
Since this error message also appears in the admin-end from your extension, I would still suggest the use of the already implemented solution of the:
Code: Select all
html_entity_decode($var, ENT_QUOTES, 'UTF-8')
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Code: Select all
string html_entity_decode ( string $string [, int $flags = ENT_COMPAT | ENT_HTML401 [, string $encoding = ini_get("default_charset") ]] )
As for using tpl in OC3, there's no issue there. You said something that isn't true and I was just pointing it out to avoid any further misconception.
Is that so? Then, perhaps you could explain on why exactly the admin/controller/event/theme.php uses conditional if statements rather than an enforced line when implying the use of TPL files rather than TWIG files? Granted, it may not be necessary to use TWIG files in OC 3 but nowhere else do I see an enforced solution to use TPL files as per the code described on the above either.As for using tpl in OC3, there's no issue there. You said something that isn't true and I was just pointing it out to avoid any further misconception.
As for the UTF-8 function, if there's no need to use a function, then perhaps you could also explain on why exactly it is already in use in the core which works pretty well already?
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
That is what you said. It isn't true. That's all I was addressing and I'm not interested in debating about this.straightlight wrote: ↑Sun Feb 04, 2018 12:49 amYour screenshot mentions: .tpl file. You are NOT using v3.0.2.0 and / or you are using an incompatible extension with v3.0.2.0.
I never said there's no need to use a function. I'm fine with that. I'm just saying that his errors are coming from files that are part of the OC core. The reason Opencart AND my extension are throwing errors here are because the config file is botched, not because of a code issue. In fact YOu are the one who suggested he should patch the OC core in this thread. You are contradicting yourself now.straightlight wrote: ↑Mon Feb 05, 2018 2:51 amAs for the UTF-8 function, if there's no need to use a function, then perhaps you could also explain on why exactly it is already in use in the core which works pretty well already?
I never said there's no need to use a function. I'm fine with that.
The config file might be botched. Although, using the right functions to prevent this issue is also possible.There's no reason to specify the character set for a function when it's already part of the configuration file.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Ok well then why don't you take your complaint to Daniel or do a pull request and leave me out of it. See lines 50,51 here: https://github.com/opencart/opencart/bl ... andard.php.straightlight wrote: ↑Sun Feb 04, 2018 1:04 amQuite unusual to use the htmlspecialchars for an API regarding PayPal for output purposes.
These are the so called files in question that according to you should be "using the right functions to prevent this issue". I'm honestly confused by your position on this. I'm just trying to point him in the right direction. As long as his config file is messed up it's not going to be easy to run Opencart or any other web application for that matter.