-
Author
-
December 23, 2017 at 15:20 #183748PlushParticipant
Hi, I updated the theme but now all my text on the site shows funny characters… But the funny thing is, sometimes the text shows ok, and then a couple of seconds later when I change the page, it is wrong again.
I then went into the wp-config file to add // in front of the define character line but that erased all my theme settings, so that does not work.
I also added ‘utf8’) as an additional line as my wp-config showed a different code, but this does not help either.
so the code there now looks like this:
/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8mb4’);
define(‘DB_CHARSET’, ‘utf8’);
/** The Database Collate type. Don’t change this if in doubt. */
define(‘DB_COLLATE’, ”);
Is there something you can tell me how to fix this?
December 23, 2017 at 17:29 #183766Kieran_SQModeratorHi @Plush,
Thanks for contacting us about charset. It seems like a very odd issue indeed for the charset to switch randomly like that. Can you please try the following
– Make a FULL backup of your database locally and remotely
– Disable all caching and CDN
– Login to phpMyAdmin (or the tool your host provides) and update the database to utf8ALTER DATABASE MyDb CHARACTER SET utf8;
– Login to phpMyAdmin (or the tool your host provides) and update each individual table to utf8. Your host may let you check all tables en masse and change the charset, if not you will need to do this manually as below
ALTER TABLE wp_posts CHARACTER SET utf8;
Once you have done these steps please log out of your site, delete all data (except form data and passwords) from your browser, close your browser and then try to log back in and see if the issue is resolved.
Also, by chance are you hosting your site via Cloudways? I have only ever seen this issue once before (not related to theme) via this host.
Thanks,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
December 28, 2017 at 14:53 #184078PlushParticipantHi Kieran, thanks for your answer. I contacted my hosting company and they tell me this below. Is this anything you can fix?
Hello,
We see the following noticies in the debug_log that are in reference to the theme your site is using:
.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
[23-Dec-2017 15:41:50 UTC] PHP Notice: Undefined index: icl_lso_native_lang in /home/castillodemonda/public_html/wp-content/themes/kleo/lib/theme-functions.php on line 956
[23-Dec-2017 15:41:50 UTC] PHP Notice: Undefined index: icl_lso_display_lang in /home/castillodemonda/public_html/wp-content/themes/kleo/lib/theme-functions.php on line 959
[23-Dec-2017 15:41:50 UTC] PHP Notice: Undefined index: icl_lso_display_lang in /home/castillodemonda/public_html/wp-content/themes/kleo/lib/theme-functions.php on line 962
[23-Dec-2017 15:41:50 UTC] PHP Notice: Undefined index: icl_lso_display_lang in /home/castillodemonda/public_html/wp-content/themes/kleo/lib/theme-functions.php on line 965
[23-Dec-2017 15:41:50 UTC] PHP Notice: Undefined index: icl_lso_native_lang in /home/castillodemonda/public_html/wp-content/themes/kleo/lib/theme-functions.php on line 949
[23-Dec-2017 15:41:50 UTC] PHP Notice: Undefined index: icl_lso_flags in /home/castillodemonda/public_html/wp-content/themes/kleo/lib/theme-functions.php on line 953
[23-Dec-2017 15:41:50 UTC] PHP Notice: Undefined index: icl_lso_native_lang in /home/castillodemonda/public_html/wp-content/themes/kleo/lib/theme-functions.php on line 956
[23-Dec-2017 15:41:50 UTC] PHP Notice: Undefined index: icl_lso_display_lang in /home/castillodemonda/public_html/wp-content/themes/kleo/lib/theme-functions.php on line 959
[23-Dec-2017 15:41:50 UTC] PHP Notice: Undefined index: icl_lso_display_lang in /home/castillodemonda/public_html/wp-content/themes/kleo/lib/theme-functions.php on line 962
[23-Dec-2017 15:41:50 UTC] PHP Notice: Undefined index: icl_lso_display_lang in /home/castillodemonda/public_html/wp-content/themes/kleo/lib/theme-functions.php on line 965
.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-Please try a new theme to see if the letters go away, if not, please contact the developers of the theme.
December 28, 2017 at 14:55 #184079PlushParticipantOh and to answer your question, no we host with Hostdime 😉
December 28, 2017 at 18:28 #184108Kieran_SQModeratorHi,
I will assign this ticket to a higher support level to assist you with your issue. They’ll be in touch as soon as they can, Monday to Friday, East European Time.
Thank you for your patience,
Kieran
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionIf you like the theme or the support you've received please consider leaving us a review on Themeforest!
Custom development requests can be sent to dev@seventhqueen.com, one of the development team will be happy to discuss your needs.
December 29, 2017 at 14:49 #184203RaduModeratorHi,
to can fix that notices you will have to replace this file content : wp-content/themes/kleo/lib/theme-functions.php
with content of this one : https://pastebin.com/raw/jFS7UdV6I recommend you to make a theme settings export to have it for later use from wp-admin -> theme options -> import/export
Let me know
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionDecember 30, 2017 at 11:33 #184290PlushParticipantHi Radu,
I did as you asked, but unfortunately the issue of the funny characters keeps appearing.
December 30, 2017 at 19:10 #184338PlushParticipantAlso, when I do a debug on-screen I still see these errors:
Notice: Undefined index: icl_lso_native_lang in /home/castillodemonda/public_html/wp-content/themes/kleo/lib/theme-functions.php on line 949
Notice: Undefined index: icl_lso_native_lang in /home/castillodemonda/public_html/wp-content/themes/kleo/lib/theme-functions.php on line 949
Notice: Undefined index: icl_lso_native_lang in /home/castillodemonda/public_html/wp-content/themes/kleo/lib/theme-functions.php on line 949
January 3, 2018 at 19:16 #184622RaduModeratorHi,
Related to the funny characters i cannot reproduce that, using latest theme version and also older versions the characters are ok, maybe there it’s a issue with your database ?! Or tell me the exact steps to reproduce that, also did you see the same funny characters using a default wp theme ? did you have any screenshot with the funny characters ?
Related to that notices, we will take care of them in future versions , you can set for wp_debug_display false in wp-config.php https://codex.wordpress.org/WP_DEBUG#WP_DEBUG_DISPLAY
Those notices cannot cause the wired encoding “funny characters”
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJanuary 4, 2018 at 13:05 #184715PlushParticipantHi R,
I attach a screenshot of what I see on the website. (this is after clearing cache and incognito) – the thing is that it works sometimes when I go to the site, but then when i look at a few pages, it comes up again.
This started happening after I updated the Theme to the latest version, hence the question if this is something you can give a solution for.
Especially this page is really bad:
http://castillodemonda.com/restaurant-near-marbella/
it seems to not pick up ant hyphens or url’s etc.When I asked the server, they just gave me the above error log file, so I assumed this was the problem.
Attachments:
You must be logged in to view attached files.January 7, 2018 at 14:46 #185006PlushParticipantHi there, sorry for the delay, my hosting company has since fixed the issue which was to do with the charcater encoding in the php.ini that was set to iso-8859-1. They changed it to UFT-8 and now everything works again.
Can you tell me please if this will affect the theme at all, and if I have to be careful when doing future theme updates?January 9, 2018 at 17:46 #185286RaduModeratorHi,
No know advices for this side, until this moment you are the only user that had reported this…
Using any hosting company and install wp + kleo run as it should…
So it’s ok that you had solved
Cheers
RHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
The forum ‘Bugs & Issues’ is closed to new topics and replies.