This topic has 12 replies, 3 voices, and was last updated 7 years by Radu.

  • Author
  • #183748
     Plush
    Participant

    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?

    #183766
     Kieran_SQ
    Moderator

    Hi @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 utf8

    ALTER 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 solution

    If 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.

    #184078
     Plush
    Participant

    Hi 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.

    #184079
     Plush
    Participant

    Oh and to answer your question, no we host with Hostdime 😉

    #184108
     Kieran_SQ
    Moderator

    Hi,

    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 solution

    If 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.

    #184112
     Plush
    Participant

    Thank you Kieran! Have a happy new year! 🙂

    #184203
     Radu
    Moderator

    Hi,

    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/jFS7UdV6

    I 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 solution
    #184290
     Plush
    Participant

    Hi Radu,

    I did as you asked, but unfortunately the issue of the funny characters keeps appearing.

    #184338
     Plush
    Participant

    Also, 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

    #184622
     Radu
    Moderator

    Hi,

    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 solution
    #184715
     Plush
    Participant

    Hi 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.
    #185006
     Plush
    Participant

    Hi 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?

    #185286
     Radu
    Moderator

    Hi,

    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
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 13 posts - 1 through 13 (of 13 total)

The forum ‘Bugs & Issues’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?