Page 1 of 1

[SOLVED] facebook ad extension warning utf-8 (user.ini)

Posted: Sat Feb 23, 2019 1:12 am
by ShariB23
I am getting the following error from my facebook ad extension. Warning: html_entity_decode(): charset `UTF-8;' not supported, assuming utf-8 in /public_html/system/library/facebookcommonutils.php on line 130. It is a recent error. It hasn't always been there. Perhaps I changed something, but I don't know what.

Re: facebook ad extension warning utf-8

Posted: Sat Feb 23, 2019 1:40 am
by straightlight
Contact the extension developer to resolved this issue.

Re: facebook ad extension warning utf-8

Posted: Sat Feb 23, 2019 2:13 am
by thekrotek
Not related to extension, no need to contact extension developer. Check your php.ini and user.ini files for "UTF-8;" part of the string and remove semicolon.

Re: facebook ad extension warning utf-8

Posted: Sat Feb 23, 2019 2:14 am
by OSWorX
Simply edit the file

Code: Select all

system/library/facebookcommonutils.php
and check what is defined there at line 130 - as it seems that there is a typo:

Code: Select all

`UTF-8;'
Beside this, the recommandation to contact the developer is still alive.

Re: facebook ad extension warning utf-8

Posted: Sat Feb 23, 2019 2:15 am
by OSWorX
thekrotek wrote:
Sat Feb 23, 2019 2:13 am
Not related to extension, no need to contact extension developer. Check your php.ini and user.ini files for "UTF-8;" part of the string and remove semicolon.
If it would be that, the error would be displayed many times (because used in many files), don't you think?

Re: facebook ad extension warning utf-8

Posted: Sat Feb 23, 2019 3:04 am
by straightlight
thekrotek wrote:
Sat Feb 23, 2019 2:13 am
Not related to extension, no need to contact extension developer. Check your php.ini and user.ini files for "UTF-8;" part of the string and remove semicolon.
/public_html/system/library/facebookcommonutils.php
I don't see anywhere where this file does exist among the core.

Re: facebook ad extension warning utf-8

Posted: Sat Feb 23, 2019 3:31 am
by thekrotek
OSWorX wrote:
Sat Feb 23, 2019 2:15 am
If it would be that, the error would be displayed many times (because used in many files), don't you think?
It displays only when UTF-8 encoding is directly defined in some of the PHP functions. So yes, it is not always displayed. But this is the most common cause of the issue.

Re: facebook ad extension warning utf-8

Posted: Sat Feb 23, 2019 5:32 am
by OSWorX
straightlight wrote:
Sat Feb 23, 2019 3:04 am
/public_html/system/library/facebookcommonutils.php
I don't see anywhere where this file does exist among the core.
Who said that is part of the core?

Re: facebook ad extension warning utf-8

Posted: Sat Feb 23, 2019 9:49 am
by ShariB23
Thank you all for your assistance. It was the user.ini file created by cpanel. I removed the semicolon, and it appears to be working fine.