PHP Warning: htmlspecialchars(): charset `UTF-8;' not supported, assuming utf-8

Posted in: Newspaper
Post count: 10

I have these lines at my error_log
280MB! counting like sheeps :f

[07-Jan-2019 18:17:29 UTC] PHP Warning: htmlspecialchars(): charset `UTF-8;’ not supported, assuming utf-8 in /home/********/public_html/wp-content/plugins/litespeed-cache/inc/utility.class.php on line 586

[07-Jan-2019 18:17:29 UTC] PHP Warning: htmlspecialchars(): charset `UTF-8;’ not supported, assuming utf-8 in /home/********/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_page_generator.php on line 323
[07-Jan-2019 18:17:29 UTC] PHP Warning: htmlspecialchars(): charset `UTF-8;’ not supported, assuming utf-8 in /home/********/public_html/wp-content/themes/Newspaper/includes/wp_booster/td_page_generator.php on line 323

Using 9.2.2 , WP 4.9.9

How can i fix this?

Post count: 10

Can we just replace something to fix it?

321 //child category
322 $breadcrumbs_array [] = array (
323 ‘title_attribute’ => __td(‘View all posts in’, TD_THEME_NAME) . ‘ ‘ . htmlspecialchars($category_1_name),
324 ‘url’ => $category_1_url,
325 ‘display_name’ => $category_1_name
326 );

Post count: 35449

Hi,

If you do not make any changes to the theme files, please deactivate all plugins, clear all cache and please make sure that the theme system status is configured as mentioned in the requirements guide. Please follow the guide carefully
https://forum.tagdiv.com/requirements-for-newspaper/
Please deactivate child theme too, is possible to be some conflicts, or a piece of code to be broken.

Thank you.

  • This reply was modified 7 years by Calin.
Post count: 10

Got same error on litespeed and we have fixed it as below.

https://github.com/litespeedtech/lscache_wp/commit/2f89731e4624fe9adda3af2cbac3ae0475a98044

Cant we just use some code like this?

Post count: 35449

Hi,

If you make changes in theme file after update you will lose all changes; also this worrying is cased by something.
Please check if you set the wp_debug to false -> https://www.screencast.com/t/0KUOvg7opy
Please deactivate all plugins, clear all cache and try again.
Also please check in .htaccess , copy the code from there, clear the .htaccess ( delete all from there ) re-save the permalinks https://www.screencast.com/t/okBaaOOm49I1 and see if the problem is still there.

If the problem persist please provide some more details, some screenshots were I can inspect the problem.

Thank you for your understanding.

  • This reply was modified 7 years by Calin.
Post count: 10

Have tried the things you have wrote.
Deactivated plugins, purged all cache.
.htaccess seems fine.
Flushed permalinks.
Was using 4.9.9 updated to 5.0.2.

All my template settings gone and wasted 30mins fixing it.

Problem still there, nothing on fronted and all i got is the above error in my public_html error_log file.

Post count: 10

Now on frontend getting this error : WP_BOOSTER ERROR:
TD_APİ_BASE::GET_KEY : A COMPONENT WİTH THE ID: TDM_TOP_BAR_TEMPLATE_1 KEY: FİLE İS NOT SET.
/HOME/U7064600/PUBLİC_HTML/WP-CONTENT/THEMES/NEWSPAPER/İNCLUDES/WP_BOOSTER/TD_APİ.PHP

Post count: 35449

Hi,

Please send us an email at contact@tagdiv.com and provide admin login, as well as cPanel or FTP if possible. We will take a look. Include a link to this topic in the email.

Thanks

Post count: 5

I get the same thing basically. On two sites.

Post count: 35449

Hi @QuestsAndChaos,

Please provide some more details, some screenshots or a link were I can inspect your
problem.

Thank you!

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.